Common.css: Difference between revisions
From NoSQLZoo
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
/* MongoDB */ | /* MongoDB */ | ||
body.ns-0, body.ns-1{ | body.ns-0, body.ns-1{ | ||
background-color: #EBF3EA; | |||
} | } | ||
body.ns-0 #mw-page-base, body.ns-1 #mw-page-base{ | body.ns-0 #mw-page-base, body.ns-1 #mw-page-base{ | ||
background-image: linear-gradient(#FFF 50%, #EBF3EA 100%); | |||
} | } | ||
body.ns-0 div.guidelist div, body.ns-1 div.guidelist div{ | body.ns-0 div.guidelist div, body.ns-1 div.guidelist div{ | ||
background: #DAE5D9; | |||
} | } | ||
body.ns-0 div.guidelist div.fc, body.ns-1 div.guidelist div.fc{ | body.ns-0 div.guidelist div.fc, body.ns-1 div.guidelist div.fc{ | ||
background: linear-gradient(#4fa94c , #439945); | |||
border-color: #aeaf91; | |||
border: thin solid black; | |||
} | } | ||
body.ns-0 .mw-body, body.ns-1 .mw-body{ | body.ns-0 .mw-body, body.ns-1 .mw-body{ | ||
border-color: #4fa94c; | |||
} | } | ||
body.ns-0 .q{ | body.ns-0 .q{ | ||
border-top: thin solid #439945; | |||
} | } | ||
body.ns-0 .q .res{ | body.ns-0 .q .res{ | ||
background: #dae5d9; | |||
} | } | ||
/* Neo4j */ | /* Neo4j */ | ||
body.ns-200, body.ns-201{ | body.ns-200, body.ns-201{ | ||
background-color: #EAEAF3; | |||
} | } | ||
body.ns-200 #mw-page-base, body.ns-201 #mw-page-base{ | body.ns-200 #mw-page-base, body.ns-201 #mw-page-base{ | ||
background-image: linear-gradient(#FFF 50%, #EBEAF3 100%); | |||
} | } | ||
body.ns-200 div.guidelist div, body.ns-201 div.guidelist div{ | body.ns-200 div.guidelist div, body.ns-201 div.guidelist div{ | ||
background: #DAD9E5; | |||
} | } | ||
body.ns-200 div.guidelist div.fc, body.ns-201 div.guidelist div.fc{ | body.ns-200 div.guidelist div.fc, body.ns-201 div.guidelist div.fc{ | ||
background: linear-gradient(#4c4fa9, #434599); | |||
border-color: #91aeaf; | |||
border: thin solid black; | |||
} | } | ||
body.ns-200 .mw-body, body.ns-201 .mw-body{ | body.ns-200 .mw-body, body.ns-201 .mw-body{ | ||
border-color: #4f4ca9; | |||
} | } | ||
body.ns-200 .q{ | body.ns-200 .q{ | ||
border-top: thin solid #434599; | |||
} | } | ||
body.ns-200 .q .res{ | body.ns-200 .q .res{ | ||
background: #dae5d9; | |||
} | } | ||
/* CodeMirror */ | |||
/* | /*---------------------------------------------------------------*/ | ||
. | /* BASICS */ | ||
.CodeMirror { | |||
/* Set height, width, borders, and global font properties here */ | |||
font-family: monospace; | |||
height: 300px; | |||
color: black; | |||
direction: ltr; | |||
} | } | ||
/* PADDING */ | |||
.CodeMirror-lines { | |||
padding: 4px 0; | |||
/* Vertical padding around content */ | |||
} | |||
.CodeMirror pre { | |||
padding: 0 4px; | |||
/* Horizontal padding of content */ | |||
} | |||
.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { | |||
background-color: white; | |||
/* The little square between H and V scrollbars */ | |||
} | |||
/* GUTTER */ | |||
.CodeMirror-gutters { | |||
border-right: 1px solid #ddd; | |||
background-color: #f7f7f7; | |||
white-space: nowrap; | |||
} | |||
.CodeMirror-linenumbers { | |||
} | |||
.CodeMirror-linenumber { | |||
padding: 0 3px 0 5px; | |||
min-width: 20px; | |||
text-align: right; | |||
color: #999; | |||
white-space: nowrap; | |||
} | |||
.CodeMirror-guttermarker { | |||
color: black; | |||
} | |||
.CodeMirror-guttermarker-subtle { | |||
color: #999; | |||
} | |||
/** CodeMirror **/ | |||
/* CURSOR */ | |||
.CodeMirror-cursor { | |||
border-left: 1px solid black; | |||
border-right: none; | |||
width: 0; | |||
} | |||
/* Shown when moving in bi-directional text */ | |||
.CodeMirror div.CodeMirror-secondarycursor { | |||
border-left: 1px solid silver; | |||
} | |||
.cm-fat-cursor .CodeMirror-cursor { | |||
width: auto; | |||
border: 0 !important; | |||
background: #7e7; | |||
} | |||
.cm-fat-cursor div.CodeMirror-cursors { | |||
z-index: 1; | |||
} | |||
.cm-fat-cursor-mark { | |||
background-color: rgba(20, 255, 20, 0.5); | |||
-webkit-animation: blink 1.06s steps(1) infinite; | |||
-moz-animation: blink 1.06s steps(1) infinite; | |||
animation: blink 1.06s steps(1) infinite; | |||
} | |||
.cm-animate-fat-cursor { | |||
width: auto; | |||
border: 0; | |||
-webkit-animation: blink 1.06s steps(1) infinite; | |||
-moz-animation: blink 1.06s steps(1) infinite; | |||
animation: blink 1.06s steps(1) infinite; | |||
background-color: #7e7; | |||
} | |||
@-moz-keyframes blink { | |||
0% { | |||
} | |||
50% { | |||
background-color: transparent; | |||
} | |||
100% { | |||
} | |||
} | |||
@-webkit-keyframes blink { | |||
0% { | |||
} | |||
50% { | |||
background-color: transparent; | |||
} | |||
100% { | |||
} | |||
} | |||
@keyframes blink { | |||
0% { | |||
} | |||
50% { | |||
background-color: transparent; | |||
} | |||
100% { | |||
} | |||
} | |||
/* Can style cursor different in overwrite (non-insert) mode */ | |||
.CodeMirror-overwrite .CodeMirror-cursor { | |||
} | |||
.cm-tab { | |||
display: inline-block; | |||
text-decoration: inherit; | |||
} | |||
.CodeMirror-rulers { | |||
position: absolute; | |||
left: 0; | |||
right: 0; | |||
top: -50px; | |||
bottom: -20px; | |||
overflow: hidden; | |||
} | |||
.CodeMirror-ruler { | |||
border-left: 1px solid #ccc; | |||
top: 0; | |||
bottom: 0; | |||
position: absolute; | |||
} | |||
/** CodeMirror **/ | |||
/* DEFAULT THEME */ | |||
.cm-s-default .cm-header { | |||
color: blue; | |||
} | |||
.cm-s-default .cm-quote { | |||
color: #090; | |||
} | |||
.cm-negative { | |||
color: #d44; | |||
} | |||
.cm-positive { | |||
color: #292; | |||
} | |||
.cm-header, .cm-strong { | |||
font-weight: bold; | |||
} | |||
.cm-em { | |||
font-style: italic; | |||
} | |||
.cm-link { | |||
text-decoration: underline; | |||
} | |||
.cm-strikethrough { | |||
text-decoration: line-through; | |||
} | |||
.cm-s-default .cm-keyword { | |||
color: #708; | |||
} | |||
.cm-s-default .cm-atom { | |||
color: #219; | |||
} | |||
.cm-s-default .cm-number { | |||
color: #164; | |||
} | |||
.cm-s-default .cm-def { | |||
color: #00f; | |||
} | |||
.cm-s-default .cm-variable, .cm-s-default .cm-punctuation, .cm-s-default .cm-property, .cm-s-default .cm-operator { | |||
} | |||
.cm-s-default .cm-variable-2 { | |||
color: #05a; | |||
} | |||
.cm-s-default .cm-variable-3, .cm-s-default .cm-type { | |||
color: #085; | |||
} | |||
.cm-s-default .cm-comment { | |||
color: #a50; | |||
} | |||
.cm-s-default .cm-string { | |||
color: #a11; | |||
} | |||
.cm-s-default .cm-string-2 { | |||
color: #f50; | |||
} | |||
.cm-s-default .cm-meta { | |||
color: #555; | |||
} | |||
.cm-s-default .cm-qualifier { | |||
color: #555; | |||
} | |||
.cm-s-default .cm-builtin { | |||
color: #30a; | |||
} | |||
.cm-s-default .cm-bracket { | |||
color: #997; | |||
} | |||
.cm-s-default .cm-tag { | |||
color: #170; | |||
} | |||
.cm-s-default .cm-attribute { | |||
color: #00c; | |||
} | |||
.cm-s-default .cm-hr { | |||
color: #999; | |||
} | |||
.cm-s-default .cm-link { | |||
color: #00c; | |||
} | |||
.cm-s-default .cm-error { | |||
color: #f00; | |||
} | |||
.cm-invalidchar { | |||
color: #f00; | |||
} | |||
.CodeMirror-composing { | |||
border-bottom: 2px solid; | |||
} | |||
/* Default styles for common addons */ | |||
div.CodeMirror span.CodeMirror-matchingbracket { | |||
color: #0b0; | |||
} | |||
div.CodeMirror span.CodeMirror-nonmatchingbracket { | |||
color: #a22; | |||
} | |||
.CodeMirror-matchingtag { | |||
background: rgba(255, 150, 0, .3); | |||
} | |||
.CodeMirror-activeline-background { | |||
background: #e8f2ff; | |||
} | |||
/* STOP */ | |||
/* The rest of this file contains styles related to the mechanics of the editor. You probably shouldn't touch them. */ | |||
.CodeMirror { | |||
position: relative; | |||
overflow: hidden; | |||
background: white; | |||
} | |||
.CodeMirror-scroll { | |||
overflow: scroll !important; | |||
/* Things will break if this is overridden */ | |||
/* 30px is the magic margin used to hide the element's real scrollbars */ | |||
/* See overflow: hidden in .CodeMirror */ | |||
margin-bottom: -30px; | |||
margin-right: -30px; | |||
padding-bottom: 30px; | |||
height: 100%; | |||
outline: none; | |||
/* Prevent dragging from highlighting the element */ | |||
position: relative; | |||
} | |||
.CodeMirror-sizer { | |||
position: relative; | |||
border-right: 30px solid transparent; | |||
} | |||
/* The fake, visible scrollbars. Used to force redraw during scrolling before actual scrolling happens, thus preventing shaking and flickering artifacts. */ | |||
.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { | |||
position: absolute; | |||
z-index: 6; | |||
display: none; | |||
} | |||
.CodeMirror-vscrollbar { | |||
right: 0; | |||
top: 0; | |||
overflow-x: hidden; | |||
overflow-y: scroll; | |||
} | |||
.CodeMirror-hscrollbar { | |||
bottom: 0; | |||
left: 0; | |||
overflow-y: hidden; | |||
overflow-x: scroll; | |||
} | |||
.CodeMirror-scrollbar-filler { | |||
right: 0; | |||
bottom: 0; | |||
} | |||
.CodeMirror-gutter-filler { | |||
left: 0; | |||
bottom: 0; | |||
} | |||
.CodeMirror-gutters { | |||
position: absolute; | |||
left: 0; | |||
top: 0; | |||
min-height: 100%; | |||
z-index: 3; | |||
} | |||
.CodeMirror-gutter { | |||
white-space: normal; | |||
height: 100%; | |||
display: inline-block; | |||
vertical-align: top; | |||
margin-bottom: -30px; | |||
} | |||
.CodeMirror-gutter-wrapper { | |||
position: absolute; | |||
z-index: 4; | |||
background: none !important; | |||
border: none !important; | |||
} | |||
.CodeMirror-gutter-background { | |||
position: absolute; | |||
top: 0; | |||
bottom: 0; | |||
z-index: 4; | |||
} | |||
.CodeMirror-gutter-elt { | |||
position: absolute; | |||
cursor: default; | |||
z-index: 4; | |||
} | |||
.CodeMirror-gutter-wrapper ::selection { | |||
background-color: transparent | |||
} | |||
.CodeMirror-gutter-wrapper ::-moz-selection { | |||
background-color: transparent | |||
} | |||
.CodeMirror-lines { | |||
cursor: text; | |||
min-height: 1px; | |||
/* prevents collapsing before first draw */ | |||
} | |||
.CodeMirror pre { | |||
/* Reset some styles that the rest of the page might have set */ | |||
-moz-border-radius: 0; | |||
-webkit-border-radius: 0; | |||
border-radius: 0; | |||
border-width: 0; | |||
background: transparent; | |||
font-family: inherit; | |||
font-size: inherit; | |||
margin: 0; | |||
white-space: pre; | |||
word-wrap: normal; | |||
line-height: inherit; | |||
color: inherit; | |||
z-index: 2; | |||
position: relative; | |||
overflow: visible; | |||
-webkit-tap-highlight-color: transparent; | |||
-webkit-font-variant-ligatures: contextual; | |||
font-variant-ligatures: contextual; | |||
} | |||
.CodeMirror-wrap pre { | |||
word-wrap: break-word; | |||
white-space: pre-wrap; | |||
word-break: normal; | |||
} | |||
.CodeMirror-linebackground { | |||
position: absolute; | |||
left: 0; | |||
right: 0; | |||
top: 0; | |||
bottom: 0; | |||
z-index: 0; | |||
} | |||
.CodeMirror-linewidget { | |||
position: relative; | |||
z-index: 2; | |||
padding: 0.1px; | |||
/* Force widget margins to stay inside of the container */ | |||
} | |||
.CodeMirror-widget { | |||
} | |||
.CodeMirror-rtl pre { | |||
direction: rtl; | |||
} | |||
.CodeMirror-code { | |||
outline: none; | |||
} | |||
/* Force content-box sizing for the elements where we expect it */ | |||
.CodeMirror-scroll, .CodeMirror-sizer, .CodeMirror-gutter, .CodeMirror-gutters, .CodeMirror-linenumber { | |||
-moz-box-sizing: content-box; | |||
box-sizing: content-box; | |||
} | |||
.CodeMirror-measure { | |||
position: absolute; | |||
width: 100%; | |||
height: 0; | |||
overflow: hidden; | |||
visibility: hidden; | |||
} | |||
.CodeMirror-cursor { | |||
position: absolute; | |||
pointer-events: none; | |||
} | |||
.CodeMirror-measure pre { | |||
position: static; | |||
} | |||
div.CodeMirror-cursors { | |||
visibility: hidden; | |||
position: relative; | |||
z-index: 3; | |||
} | |||
div.CodeMirror-dragcursors { | |||
visibility: visible; | |||
} | |||
.CodeMirror-focused div.CodeMirror-cursors { | |||
visibility: visible; | |||
} | |||
.CodeMirror-selected { | |||
background: #d9d9d9; | |||
} | |||
.CodeMirror-focused .CodeMirror-selected { | |||
background: #d7d4f0; | |||
} | |||
.CodeMirror-crosshair { | |||
cursor: crosshair; | |||
} | |||
.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { | |||
background: #d7d4f0; | |||
} | |||
.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { | |||
background: #d7d4f0; | |||
} | |||
.cm-searching { | |||
background-color: #ffa; | |||
background-color: rgba(255, 255, 0, .4); | |||
} | |||
/* Used to force a border model for a node */ | |||
.cm-force-border { | |||
padding-right: .1px; | |||
} | |||
@media print { | |||
/* Hide the cursor when printing */ | |||
.CodeMirror div.CodeMirror-cursors { | |||
visibility: hidden; | |||
} | |||
} | |||
/* See issue #2901 */ | |||
.cm-tab-wrap-hack:after { | |||
content: ''; | |||
} | |||
/* Help users use markselection to safely style text background */ | |||
span.CodeMirror-selectedtext { | |||
background: none; | |||
} | |||
/*---------------------------------------------------------------*/ | |||
/* Universal */ | /* Universal */ | ||
button{ | button{ | ||
float: left; | |||
line-height: 1.3; | |||
padding: 5px 8px; | |||
} | |||
button.run { | |||
background-image: linear-gradient(to bottom, #337AB7 0px, #265A88 100%); | |||
background-color: #306AA0; | |||
border-radius: 6px; | |||
border-color: #245580; | |||
border-width: 1px; | |||
color: #FFF; | |||
cursor: pointer; | |||
font-size: 18px; | |||
} | } | ||
button. | button.other { | ||
border-radius: 0.5ex; | |||
cursor: pointer; | |||
display: inline; | |||
border: 1px solid; | |||
float: right; | |||
font-size: 14px; | |||
margin-left: 0.25em; | |||
} | } | ||
code { | |||
background-color: #e6e6e6; | |||
} | } | ||
div.guidelist{ | |||
float: right; | |||
width: 32ex; | |||
border-left: 1px solid; | |||
border-right: 1px solid; | |||
background-color: #F0F0FF; | |||
border-collapse: collapse; | |||
border-bottom: 1px solid; | |||
margin-bottom: 2%; | |||
padding-left: 0px; | |||
} | } | ||
div.guidelist{ | div.guidelist div.fc { | ||
padding: 1em; | |||
background-color: #000; | |||
color: #FFF; | |||
} | } | ||
div.guidelist div | div.guidelist div { | ||
padding: 0ex 1em; | |||
border-bottom: 1px solid; | |||
} | } | ||
div. | body.ns-0 div.res.waiting, body.ns-100 div.res.waiting{ | ||
background-image: url(//sqlzoo.net/design/ajax-loader-2.gif); | |||
background-repeat: no-repeat; | |||
background-position: center center; | |||
height: 180px; | |||
} | } | ||
h1#firstHeading{ | |||
overflow-x: hidden; | |||
} | } | ||
pre{ | |||
border-color: #949494; | |||
white-space: pre-wrap; | |||
/* CSS 3 */ | |||
white-space: -moz-pre-wrap; | |||
/* Mozilla, since 1999 */ | |||
white-space: -pre-wrap; | |||
/* Opera 4-6 */ | |||
white-space: -o-pre-wrap; | |||
/* Opera 7 */ | |||
word-wrap: break-word; | |||
/* Internet Explorer 5.5+ */ | |||
} | } | ||
span.id{ | |||
font-size:300%; | |||
padding-right:1ex | |||
} | } | ||
textarea{ | |||
textarea{ | background: #F9F9F9; | ||
font-family: "Lucida Console", "Lucida Sans Typewriter", monospace; | |||
font-size: 16px; | |||
margin: 1em 0; | |||
min-height: 150px; | |||
resize: vertical; | |||
} | } | ||
.strong{ | .strong{ | ||
font-weight:bold; | |||
} | } | ||
.tease { | .tease { | ||
color: #1D365D; | |||
font-style: italic; | |||
cursor: pointer; | |||
padding: 0.2ex; | |||
} | } | ||
.q{ | .q{ | ||
border-top: thin solid #ee8301; | |||
margin-bottom: 9em; | |||
width: 100%; | |||
} | } | ||
.q .ans, .q .def, .q .res{ | .q .ans, .q .def, .q .res{ | ||
font-weight: normal; | |||
display: none; | |||
} | } | ||
.q .res{ | .q .res{ | ||
background: #dae5d9; | |||
border: solid thin black; | |||
border-radius: 0.5ex; | |||
border-style: inset; | |||
border-width: 1px; | |||
box-shadow: 1px 1px 3px #3b434e; | |||
color: #3b434e; | |||
clear:both; | |||
height: auto; | |||
margin-top: 1ex; | |||
max-width: 100%; | |||
overflow: auto; | |||
padding: 1em; | |||
resize: both; | |||
} | } | ||
.setup{ | .setup{ | ||
display: none; | |||
} | } | ||
.tease{ | .tease{ | ||
color:#1d365d; | |||
font-style:italic; | |||
cursor:pointer; | |||
padding: 0.2ex; | |||
} | } | ||
@media all and (max-width: 768px){ | @media all and (max-width: 768px){ | ||
div.vectorTabs{ | |||
padding: 0; | |||
} | |||
.guidelist{ | |||
display: none; | |||
} | |||
.mw-body{ | |||
border-left: 0; | |||
margin-left: 0; | |||
} | |||
div#footer{ | |||
margin-left: 0; | |||
} | |||
#mw-panel{ | |||
display:none; | |||
} | |||
} | } | ||
#ca-watch.icon a, #ca-unwatch.icon a { | #ca-watch.icon a, #ca-unwatch.icon a { | ||
background-repeat: no-repeat; | |||
margin: 0px; | |||
padding: 3.1em 0px 0px; | |||
display: block; | |||
width: 26px; | |||
height: 0px; | |||
overflow: hidden; | |||
background-position: 5px 60%; | |||
} | } | ||
#cog-cont ul{ | #cog-cont ul{ | ||
position: absolute; | |||
background-color: #FFF; | |||
border: thin solid #000; | |||
padding: 1em; | |||
right: 1em; | |||
top: 32px; | |||
list-style: none; | |||
} | } | ||
#p-personal{ | #p-personal{ | ||
right:50px; | |||
} | } | ||
#p-search{ | #p-search{ | ||
float:none; | |||
} | } | ||
.qcorrect{ | |||
.qcorrect{ | background-image: url(//sqlzoo.net/design/done9.png); | ||
} | } | ||
.qincorrect { | .qincorrect { | ||
background-image:url(//sqlzoo.net/design/undone9.png); | |||
} | } | ||
.qcorrect, .qincorrect { | .qcorrect, .qincorrect { | ||
width: 3em; | |||
height: 3em; | |||
position: absolute; | |||
margin: 0em 0 0 5em; | |||
background-size: 3em; | |||
background-repeat: no-repeat; | |||
background-position: center; | |||
} | } |
Revision as of 12:42, 21 June 2018
/* MongoDB */
body.ns-0, body.ns-1{
background-color: #EBF3EA;
}
body.ns-0 #mw-page-base, body.ns-1 #mw-page-base{
background-image: linear-gradient(#FFF 50%, #EBF3EA 100%);
}
body.ns-0 div.guidelist div, body.ns-1 div.guidelist div{
background: #DAE5D9;
}
body.ns-0 div.guidelist div.fc, body.ns-1 div.guidelist div.fc{
background: linear-gradient(#4fa94c , #439945);
border-color: #aeaf91;
border: thin solid black;
}
body.ns-0 .mw-body, body.ns-1 .mw-body{
border-color: #4fa94c;
}
body.ns-0 .q{
border-top: thin solid #439945;
}
body.ns-0 .q .res{
background: #dae5d9;
}
/* Neo4j */
body.ns-200, body.ns-201{
background-color: #EAEAF3;
}
body.ns-200 #mw-page-base, body.ns-201 #mw-page-base{
background-image: linear-gradient(#FFF 50%, #EBEAF3 100%);
}
body.ns-200 div.guidelist div, body.ns-201 div.guidelist div{
background: #DAD9E5;
}
body.ns-200 div.guidelist div.fc, body.ns-201 div.guidelist div.fc{
background: linear-gradient(#4c4fa9, #434599);
border-color: #91aeaf;
border: thin solid black;
}
body.ns-200 .mw-body, body.ns-201 .mw-body{
border-color: #4f4ca9;
}
body.ns-200 .q{
border-top: thin solid #434599;
}
body.ns-200 .q .res{
background: #dae5d9;
}
/* CodeMirror */
/*---------------------------------------------------------------*/
/* BASICS */
.CodeMirror {
/* Set height, width, borders, and global font properties here */
font-family: monospace;
height: 300px;
color: black;
direction: ltr;
}
/* PADDING */
.CodeMirror-lines {
padding: 4px 0;
/* Vertical padding around content */
}
.CodeMirror pre {
padding: 0 4px;
/* Horizontal padding of content */
}
.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
background-color: white;
/* The little square between H and V scrollbars */
}
/* GUTTER */
.CodeMirror-gutters {
border-right: 1px solid #ddd;
background-color: #f7f7f7;
white-space: nowrap;
}
.CodeMirror-linenumbers {
}
.CodeMirror-linenumber {
padding: 0 3px 0 5px;
min-width: 20px;
text-align: right;
color: #999;
white-space: nowrap;
}
.CodeMirror-guttermarker {
color: black;
}
.CodeMirror-guttermarker-subtle {
color: #999;
}
/** CodeMirror **/
/* CURSOR */
.CodeMirror-cursor {
border-left: 1px solid black;
border-right: none;
width: 0;
}
/* Shown when moving in bi-directional text */
.CodeMirror div.CodeMirror-secondarycursor {
border-left: 1px solid silver;
}
.cm-fat-cursor .CodeMirror-cursor {
width: auto;
border: 0 !important;
background: #7e7;
}
.cm-fat-cursor div.CodeMirror-cursors {
z-index: 1;
}
.cm-fat-cursor-mark {
background-color: rgba(20, 255, 20, 0.5);
-webkit-animation: blink 1.06s steps(1) infinite;
-moz-animation: blink 1.06s steps(1) infinite;
animation: blink 1.06s steps(1) infinite;
}
.cm-animate-fat-cursor {
width: auto;
border: 0;
-webkit-animation: blink 1.06s steps(1) infinite;
-moz-animation: blink 1.06s steps(1) infinite;
animation: blink 1.06s steps(1) infinite;
background-color: #7e7;
}
@-moz-keyframes blink {
0% {
}
50% {
background-color: transparent;
}
100% {
}
}
@-webkit-keyframes blink {
0% {
}
50% {
background-color: transparent;
}
100% {
}
}
@keyframes blink {
0% {
}
50% {
background-color: transparent;
}
100% {
}
}
/* Can style cursor different in overwrite (non-insert) mode */
.CodeMirror-overwrite .CodeMirror-cursor {
}
.cm-tab {
display: inline-block;
text-decoration: inherit;
}
.CodeMirror-rulers {
position: absolute;
left: 0;
right: 0;
top: -50px;
bottom: -20px;
overflow: hidden;
}
.CodeMirror-ruler {
border-left: 1px solid #ccc;
top: 0;
bottom: 0;
position: absolute;
}
/** CodeMirror **/
/* DEFAULT THEME */
.cm-s-default .cm-header {
color: blue;
}
.cm-s-default .cm-quote {
color: #090;
}
.cm-negative {
color: #d44;
}
.cm-positive {
color: #292;
}
.cm-header, .cm-strong {
font-weight: bold;
}
.cm-em {
font-style: italic;
}
.cm-link {
text-decoration: underline;
}
.cm-strikethrough {
text-decoration: line-through;
}
.cm-s-default .cm-keyword {
color: #708;
}
.cm-s-default .cm-atom {
color: #219;
}
.cm-s-default .cm-number {
color: #164;
}
.cm-s-default .cm-def {
color: #00f;
}
.cm-s-default .cm-variable, .cm-s-default .cm-punctuation, .cm-s-default .cm-property, .cm-s-default .cm-operator {
}
.cm-s-default .cm-variable-2 {
color: #05a;
}
.cm-s-default .cm-variable-3, .cm-s-default .cm-type {
color: #085;
}
.cm-s-default .cm-comment {
color: #a50;
}
.cm-s-default .cm-string {
color: #a11;
}
.cm-s-default .cm-string-2 {
color: #f50;
}
.cm-s-default .cm-meta {
color: #555;
}
.cm-s-default .cm-qualifier {
color: #555;
}
.cm-s-default .cm-builtin {
color: #30a;
}
.cm-s-default .cm-bracket {
color: #997;
}
.cm-s-default .cm-tag {
color: #170;
}
.cm-s-default .cm-attribute {
color: #00c;
}
.cm-s-default .cm-hr {
color: #999;
}
.cm-s-default .cm-link {
color: #00c;
}
.cm-s-default .cm-error {
color: #f00;
}
.cm-invalidchar {
color: #f00;
}
.CodeMirror-composing {
border-bottom: 2px solid;
}
/* Default styles for common addons */
div.CodeMirror span.CodeMirror-matchingbracket {
color: #0b0;
}
div.CodeMirror span.CodeMirror-nonmatchingbracket {
color: #a22;
}
.CodeMirror-matchingtag {
background: rgba(255, 150, 0, .3);
}
.CodeMirror-activeline-background {
background: #e8f2ff;
}
/* STOP */
/* The rest of this file contains styles related to the mechanics of the editor. You probably shouldn't touch them. */
.CodeMirror {
position: relative;
overflow: hidden;
background: white;
}
.CodeMirror-scroll {
overflow: scroll !important;
/* Things will break if this is overridden */
/* 30px is the magic margin used to hide the element's real scrollbars */
/* See overflow: hidden in .CodeMirror */
margin-bottom: -30px;
margin-right: -30px;
padding-bottom: 30px;
height: 100%;
outline: none;
/* Prevent dragging from highlighting the element */
position: relative;
}
.CodeMirror-sizer {
position: relative;
border-right: 30px solid transparent;
}
/* The fake, visible scrollbars. Used to force redraw during scrolling before actual scrolling happens, thus preventing shaking and flickering artifacts. */
.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
position: absolute;
z-index: 6;
display: none;
}
.CodeMirror-vscrollbar {
right: 0;
top: 0;
overflow-x: hidden;
overflow-y: scroll;
}
.CodeMirror-hscrollbar {
bottom: 0;
left: 0;
overflow-y: hidden;
overflow-x: scroll;
}
.CodeMirror-scrollbar-filler {
right: 0;
bottom: 0;
}
.CodeMirror-gutter-filler {
left: 0;
bottom: 0;
}
.CodeMirror-gutters {
position: absolute;
left: 0;
top: 0;
min-height: 100%;
z-index: 3;
}
.CodeMirror-gutter {
white-space: normal;
height: 100%;
display: inline-block;
vertical-align: top;
margin-bottom: -30px;
}
.CodeMirror-gutter-wrapper {
position: absolute;
z-index: 4;
background: none !important;
border: none !important;
}
.CodeMirror-gutter-background {
position: absolute;
top: 0;
bottom: 0;
z-index: 4;
}
.CodeMirror-gutter-elt {
position: absolute;
cursor: default;
z-index: 4;
}
.CodeMirror-gutter-wrapper ::selection {
background-color: transparent
}
.CodeMirror-gutter-wrapper ::-moz-selection {
background-color: transparent
}
.CodeMirror-lines {
cursor: text;
min-height: 1px;
/* prevents collapsing before first draw */
}
.CodeMirror pre {
/* Reset some styles that the rest of the page might have set */
-moz-border-radius: 0;
-webkit-border-radius: 0;
border-radius: 0;
border-width: 0;
background: transparent;
font-family: inherit;
font-size: inherit;
margin: 0;
white-space: pre;
word-wrap: normal;
line-height: inherit;
color: inherit;
z-index: 2;
position: relative;
overflow: visible;
-webkit-tap-highlight-color: transparent;
-webkit-font-variant-ligatures: contextual;
font-variant-ligatures: contextual;
}
.CodeMirror-wrap pre {
word-wrap: break-word;
white-space: pre-wrap;
word-break: normal;
}
.CodeMirror-linebackground {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
z-index: 0;
}
.CodeMirror-linewidget {
position: relative;
z-index: 2;
padding: 0.1px;
/* Force widget margins to stay inside of the container */
}
.CodeMirror-widget {
}
.CodeMirror-rtl pre {
direction: rtl;
}
.CodeMirror-code {
outline: none;
}
/* Force content-box sizing for the elements where we expect it */
.CodeMirror-scroll, .CodeMirror-sizer, .CodeMirror-gutter, .CodeMirror-gutters, .CodeMirror-linenumber {
-moz-box-sizing: content-box;
box-sizing: content-box;
}
.CodeMirror-measure {
position: absolute;
width: 100%;
height: 0;
overflow: hidden;
visibility: hidden;
}
.CodeMirror-cursor {
position: absolute;
pointer-events: none;
}
.CodeMirror-measure pre {
position: static;
}
div.CodeMirror-cursors {
visibility: hidden;
position: relative;
z-index: 3;
}
div.CodeMirror-dragcursors {
visibility: visible;
}
.CodeMirror-focused div.CodeMirror-cursors {
visibility: visible;
}
.CodeMirror-selected {
background: #d9d9d9;
}
.CodeMirror-focused .CodeMirror-selected {
background: #d7d4f0;
}
.CodeMirror-crosshair {
cursor: crosshair;
}
.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection {
background: #d7d4f0;
}
.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection {
background: #d7d4f0;
}
.cm-searching {
background-color: #ffa;
background-color: rgba(255, 255, 0, .4);
}
/* Used to force a border model for a node */
.cm-force-border {
padding-right: .1px;
}
@media print {
/* Hide the cursor when printing */
.CodeMirror div.CodeMirror-cursors {
visibility: hidden;
}
}
/* See issue #2901 */
.cm-tab-wrap-hack:after {
content: '';
}
/* Help users use markselection to safely style text background */
span.CodeMirror-selectedtext {
background: none;
}
/*---------------------------------------------------------------*/
/* Universal */
button{
float: left;
line-height: 1.3;
padding: 5px 8px;
}
button.run {
background-image: linear-gradient(to bottom, #337AB7 0px, #265A88 100%);
background-color: #306AA0;
border-radius: 6px;
border-color: #245580;
border-width: 1px;
color: #FFF;
cursor: pointer;
font-size: 18px;
}
button.other {
border-radius: 0.5ex;
cursor: pointer;
display: inline;
border: 1px solid;
float: right;
font-size: 14px;
margin-left: 0.25em;
}
code {
background-color: #e6e6e6;
}
div.guidelist{
float: right;
width: 32ex;
border-left: 1px solid;
border-right: 1px solid;
background-color: #F0F0FF;
border-collapse: collapse;
border-bottom: 1px solid;
margin-bottom: 2%;
padding-left: 0px;
}
div.guidelist div.fc {
padding: 1em;
background-color: #000;
color: #FFF;
}
div.guidelist div {
padding: 0ex 1em;
border-bottom: 1px solid;
}
body.ns-0 div.res.waiting, body.ns-100 div.res.waiting{
background-image: url(//sqlzoo.net/design/ajax-loader-2.gif);
background-repeat: no-repeat;
background-position: center center;
height: 180px;
}
h1#firstHeading{
overflow-x: hidden;
}
pre{
border-color: #949494;
white-space: pre-wrap;
/* CSS 3 */
white-space: -moz-pre-wrap;
/* Mozilla, since 1999 */
white-space: -pre-wrap;
/* Opera 4-6 */
white-space: -o-pre-wrap;
/* Opera 7 */
word-wrap: break-word;
/* Internet Explorer 5.5+ */
}
span.id{
font-size:300%;
padding-right:1ex
}
textarea{
background: #F9F9F9;
font-family: "Lucida Console", "Lucida Sans Typewriter", monospace;
font-size: 16px;
margin: 1em 0;
min-height: 150px;
resize: vertical;
}
.strong{
font-weight:bold;
}
.tease {
color: #1D365D;
font-style: italic;
cursor: pointer;
padding: 0.2ex;
}
.q{
border-top: thin solid #ee8301;
margin-bottom: 9em;
width: 100%;
}
.q .ans, .q .def, .q .res{
font-weight: normal;
display: none;
}
.q .res{
background: #dae5d9;
border: solid thin black;
border-radius: 0.5ex;
border-style: inset;
border-width: 1px;
box-shadow: 1px 1px 3px #3b434e;
color: #3b434e;
clear:both;
height: auto;
margin-top: 1ex;
max-width: 100%;
overflow: auto;
padding: 1em;
resize: both;
}
.setup{
display: none;
}
.tease{
color:#1d365d;
font-style:italic;
cursor:pointer;
padding: 0.2ex;
}
@media all and (max-width: 768px){
div.vectorTabs{
padding: 0;
}
.guidelist{
display: none;
}
.mw-body{
border-left: 0;
margin-left: 0;
}
div#footer{
margin-left: 0;
}
#mw-panel{
display:none;
}
}
#ca-watch.icon a, #ca-unwatch.icon a {
background-repeat: no-repeat;
margin: 0px;
padding: 3.1em 0px 0px;
display: block;
width: 26px;
height: 0px;
overflow: hidden;
background-position: 5px 60%;
}
#cog-cont ul{
position: absolute;
background-color: #FFF;
border: thin solid #000;
padding: 1em;
right: 1em;
top: 32px;
list-style: none;
}
#p-personal{
right:50px;
}
#p-search{
float:none;
}
.qcorrect{
background-image: url(//sqlzoo.net/design/done9.png);
}
.qincorrect {
background-image:url(//sqlzoo.net/design/undone9.png);
}
.qcorrect, .qincorrect {
width: 3em;
height: 3em;
position: absolute;
margin: 0em 0 0 5em;
background-size: 3em;
background-repeat: no-repeat;
background-position: center;
}