Files
cardsforscience/css/style.css
T

368 lines
6.2 KiB
CSS

body {
padding-top: 40px;
}
button, .badge, .modal-content {
border-radius: 0 !important;
}
a, button {
transition:all 0.2s;
-webkit-transition:all 0.2s; }
}
h1 br {
display: none;
}
.pc-icon {
background: url('../assets/pc32sw.png') no-repeat 10px center;
padding-left: 50px;
}
.pc-icon:hover {
background-image: url('../assets/pc32.png');
}
#detector {
cursor: pointer;
margin: 0 auto;
position: relative;
}
#detector-flame{
position: relative;
/* So it looks like the flame it touching the test-tube */
top: -60px;
}
#detector-core {
z-index: 0;
}
#detector-events {
z-index: 1;
}
#detector-info {
z-index: 10;
position: absolute;
}
.scrollable {
overflow: auto;
}
.research-icon {
float: left;
margin-right: 10px;
}
#achievements-container {
position: fixed; bottom: 0px; left: 0px;
}
#messages-container {
position: fixed; bottom: 0px; right: 0px;
}
#achievements-container .alert,
#messages-container .alert {
margin-bottom: 10px; position: relative;
}
#achievements-container .alert-glyph,
#messages-container .alert-glyph {
float:left; font-size: 20px; margin-right: 10px;
}
#achievements-container .alert-text,
#messages-container .alert-text {
font-size: 14px;
}
#achievements-container .alert-text {
font-weight: bold;
}
#messages-container .btn {
float:right; font-weight: bold;
}
#mobile-orientation-container {
position: fixed; top: 0; bottom: 0; left: 0; right: 0;
background: #fff;
display: none;
padding-top: 50%;
z-index: 100;
}
#mobile-orientation-message {
text-align: center;
margin: auto auto;
color: #777;
font-size: 18px;
padding: 15px;
}
.status strong {
color: #666;
}
/* Floating updates */
.update-value {
position: absolute;
right: 1em;
top: 1.42857em;
height: 1.42857em;
}
.update-plus {
color: green;
float: left;
right: 5px;
position: absolute;
}
.update-minus {
color: red;
float: left;
right: 5px;
position: absolute;
}
#labname {
border: 0px;
padding: 0 4px;
margin-top: 20px;
font-weight: 500;
line-height: 1;
width: 99%;
}
.panel {
margin-bottom: 0;
}
.media-list-no-margin {
margin-top: -15px;
}
.col-no-padding {
padding-right: 0;
padding-left: 0;
}
.tab-content {
border-left:1px solid #ddd;
}
.tab-pane.scrollable {
padding:15px;
}
.prevent-select {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
[ng\:cloak], [ng-cloak], .ng-cloak {
display: none !important;
}
/** Annoying blink effect to get user's attention. */
.blink {
animation: blinker 1.0s cubic-bezier(.5, 0, 1, 1) infinite alternate;
-webkit-animation: blinker 1.0s cubic-bezier(.5, 0, 1, 1) infinite alternate;
}
@keyframes blinker {
from { opacity: 1; }
to { opacity: 0.25; }
}
@-webkit-keyframes blinker {
from { opacity: 1; }
to {
opacity: 0.25;
background: #f00;
border-color: #900;
}
}
/** Responsive **/
@media screen and (orientation:portrait) and (max-width: 767px) {
#mobile-orientation-container {
display: block;
}
}
@media screen and (orientation:landscape) and (max-width: 767px) {
}
@media screen and (min-width: 768px) {
#detector-holder {
margin-left: -15px;
margin-right: -15px;
}
.status {
font-size: 18px;
}
#labname {
font-size: 22px;
}
#detector-info {
top: 85px; right: 15px;
}
}
@media screen and (min-width: 992px) {
.panel-stick,
.panel-stick .panel-heading,
.panel-stick .panel-body {
border-right: 0;
}
.status {
font-size: 20px;
}
#labname {
font-size: 24px;
}
}
@media screen and (min-width: 1200px) {
.status {
font-size: 24px;
}
}
@media screen and (min-width: 992px) and (max-width: 1199px){
.col-md-3s {
width:20%;
}
.col-md-5s {
width:40%;
}
}
@media screen and (max-width: 767px) {
h4 {
font-size: 16px;
}
.col-no-padding-xs {
padding-right: 0;
padding-left: 0;
}
.col-no-padding-xs .row {
margin-left: 0;
margin-right: 0;
}
.status .col-xs-4 {
min-width: 75px;
}
#detector-info {
top: 15px; right: 15px;
}
}
/* Retina support */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (min-resolution: 1.5dppx),
only screen and (min-resolution: 144dpi)
{
.pc-icon {
background-image: url('../assets/pc32sw@2x.png');
background-size: 32px 32px;
}
.pc-icon:hover {
background-image: url('../assets/pc32@2x.png');
}
}
/* bubblr http://likeadev.com/show/how-to-make-a-cool-laboratory-tube-with-animated-bubbles.html */
.test-tube-container {
padding-top: 50px;
}
.test-tube {
border-left: 5px solid #949494;
border-right: 5px solid #949494;
border-bottom: 5px solid #949494;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
}
/* science-click custom css */
.panel-body.large {
min-height: 500px;
}
.ui-draggable-handle {
cursor: move;
}
.element {
font-size: 3em;
font-weight: bold;
border: 0px;
padding: 1px;
z-index: 50;
}
#observationsContent {
font-size: 24px;
}
.white-badge {
color: black;
background-color: transparent;
position: relative;
font-weight: bold;
top: -1em;
left: 2em;
}
/* https://github.com/mbostock/d3/blob/master/lib/colorbrewer/colorbrewer.css */
.Paired .q0-12{fill:rgb(166,206,227)}
.Paired .q1-12{fill:rgb(31,120,180)}
.Paired .q2-12{fill:rgb(178,223,138)}
.Paired .q3-12{fill:rgb(51,160,44)}
.Paired .q4-12{fill:rgb(251,154,153)}
.Paired .q5-12{fill:rgb(227,26,28)}
.Paired .q6-12{fill:rgb(253,191,111)}
.Paired .q7-12{fill:rgb(255,127,0)}
.Paired .q8-12{fill:rgb(202,178,214)}
.Paired .q9-12{fill:rgb(106,61,154)}
.Paired .q10-12{fill:rgb(255,255,153)}
.Paired .q11-12{fill:rgb(177,89,40)}
.Paired .q0-12{color:rgb(166,206,227)}
.Paired .q1-12{color:rgb(31,120,180)}
.Paired .q2-12{color:rgb(178,223,138)}
.Paired .q3-12{color:rgb(51,160,44)}
.Paired .q4-12{color:rgb(251,154,153)}
.Paired .q5-12{color:rgb(227,26,28)}
.Paired .q6-12{color:rgb(253,191,111)}
.Paired .q7-12{color:rgb(255,127,0)}
.Paired .q8-12{color:rgb(202,178,214)}
.Paired .q9-12{color:rgb(106,61,154)}
.Paired .q10-12{color:rgb(255,255,153)}
.Paired .q11-12{color:rgb(177,89,40)}