Difference between revisions of "Template:UBonn HBRS/css/main"

m
m
 
(24 intermediate revisions by the same user not shown)
Line 17: Line 17:
 
margin-bottom: 60px !important;
 
margin-bottom: 60px !important;
 
padding-top: 16px !important;
 
padding-top: 16px !important;
font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
 
background-color: #FFF;
 
background-color: #FFF;
 
}
 
}
Line 140: Line 140:
 
#toc {
 
#toc {
 
display: none;
 
display: none;
}
 
 
/**
 
* MEDIA-QUERIES
 
*/
 
@media (max-width: 767px) {
 
#title {
 
margin: 4% 0 0 0;
 
text-align: center;
 
font-size: 4em;
 
}
 
#logo>img {
 
width: 33.3333%;
 
}
 
.img-50, .img-20 {
 
width: 100%;
 
float: none;
 
}
 
}
 
 
@media (min-width: 768px) {
 
#title {
 
margin: 1% 0 0 0;
 
font-size: 1.6em;
 
}
 
}
 
 
@media (min-width: 992px) {
 
#title {
 
margin: 1.4% 0 0 0;
 
font-size: 2em;
 
}
 
}
 
 
@media (min-width: 1200px) {
 
#title {
 
margin: 1.8% 0 0 0;
 
font-size: 2.2em;
 
}
 
 
}
 
}
  
Line 204: Line 165:
 
  */
 
  */
 
#sideNav {margin-top: 20px}
 
#sideNav {margin-top: 20px}
#sideNav li>a {padding: 6px 0 6px 0; text-decoration: none}
+
#sideNav li>a {padding: 6px 0 6px 6px; text-decoration: none}
 
#sideNav li>a:hover {padding-left: 4px;background: transparent;border-left: 2px solid #39C}
 
#sideNav li>a:hover {padding-left: 4px;background: transparent;border-left: 2px solid #39C}
 
#sideNav li.active>a {padding-left: 4px;font-weight: bold;border-left: 2px solid #39C}
 
#sideNav li.active>a {padding-left: 4px;font-weight: bold;border-left: 2px solid #39C}
Line 210: Line 171:
 
.sideNav_h3 {display: none}
 
.sideNav_h3 {display: none}
 
.sideNav_h2.active .sideNav_h3 {display: block}
 
.sideNav_h2.active .sideNav_h3 {display: block}
 +
#sideNav li ul {margin: 0;margin-left:1.5em}
  
 
h1, h2, h3 {margin: 0; padding: 20px 0 10px 0}
 
h1, h2, h3 {margin: 0; padding: 20px 0 10px 0}
Line 334: Line 296:
 
  */
 
  */
 
.no-caption .img-thumbnail {
 
.no-caption .img-thumbnail {
border-color: #DDD;
+
border: none;
border-bottom: 1px solid;
+
border: 1px solid #DDD;
 
border-bottom-right-radius: 4px;
 
border-bottom-right-radius: 4px;
 
border-bottom-left-radius: 4px;
 
border-bottom-left-radius: 4px;
Line 345: Line 307:
  
 
.img-thumbnail {
 
.img-thumbnail {
border-color: #EEE;
+
border: none;
 +
border: 1px solid #EEE;
 
border-bottom: none;
 
border-bottom: none;
 
border-bottom-right-radius: 0;
 
border-bottom-right-radius: 0;
Line 358: Line 321:
 
border-bottom-right-radius: 4px;
 
border-bottom-right-radius: 4px;
 
border-bottom-left-radius: 4px;
 
border-bottom-left-radius: 4px;
 +
}
 +
 +
.table-responsive.with-caption {
 +
border-bottom-left-radius: 0;
 +
border-bottom-right-radius: 0;
 +
margin-bottom: 0;
 +
}
 +
 +
.borderless.with-caption .caption {
 +
border-top-left-radius: 4px;
 +
border-top-right-radius: 4px;
 +
}
 +
 +
/**
 +
* GIANT JAMBOREE RESULTS
 +
*/
 +
.giantJamboreeResults .img-20 {
 +
float: none;
 +
}
 +
 +
.giantJamboreeResults-noPadding {
 +
padding-bottom: 20pt;
 +
text-align: left;
 +
background-image: url(//2016.igem.org/wiki/images/f/f8/T--UBonn_HBRS--cover.jpg);
 +
background-repeat: no-repeat;
 +
background-position: bottom center;
 +
background-size: 100% auto;
 +
background-attachment: scroll;
 +
}
 +
 +
.giantJamboreeResults-text {
 +
float: right;
 +
text-align: right;
 +
}
 +
 +
.dark-title {
 +
color: #222;
 +
}
 +
 +
.bigCheckList li {
 +
padding-bottom: 2px;
 +
list-style: none;
 +
font-size: 1.5em;
 +
}
 +
 +
.bigCheckList li:before {
 +
display: none;
 +
}
 +
 +
.bigCheckList li:after {
 +
content: " ✓";
 +
font-size: 1.5em;
 +
vertical-align: middle;
 +
color: #39C000;
 +
}
 +
 +
.giantJamboreeResults .bigCheckList li {
 +
text-align: right;
 +
}
 +
 +
/**
 +
* MEDIA-QUERIES
 +
*/
 +
@media (min-width: 1200px) {
 +
#title {
 +
margin: 1.8% 0 0 0;
 +
font-size: 2.2em;
 +
}
 +
}
 +
 +
@media (min-width: 992px) {
 +
#title {
 +
margin: 1.4% 0 0 0;
 +
font-size: 2em;
 +
}
 +
}
 +
 +
@media (min-width: 768px) {
 +
#title {
 +
margin: 1% 0 0 0;
 +
font-size: 1.6em;
 +
}
 +
}
 +
 +
@media (max-width: 767px) {
 +
#title {
 +
margin: 4% 0 0 0;
 +
text-align: center;
 +
font-size: 4em;
 +
}
 +
#logo>img {
 +
width: 33.3333%;
 +
}
 +
.img-50, .img-20 {
 +
width: 100%;
 +
float: none;
 +
}
 +
.img-50.img-xs50, .img-20.img-xs50 {
 +
width: 50%;
 +
}
 +
.giantJamboreeResults-noPadding {
 +
text-align: center;
 +
}
 +
.giantJamboreeResults-text {
 +
float: none;
 +
text-align: center;
 +
}
 +
.giantJamboreeResults .bigCheckList li {
 +
text-align: center;
 +
}
 
}
 
}

Latest revision as of 23:36, 30 November 2016

/** Main Styles iGEM-Team Bonn

feel free to use stuff from here but please give credit

  • /

/* * * * * * * * * * * * * * * * * * * * * * * * * Team Bonn Template

  • * * * * * * * * * * * * * * * * * * * * * * * */

html { position: relative; }

body { margin-bottom: 60px !important; padding-top: 16px !important; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; background-color: #FFF; }

header { padding: 12px 0; background: #F8F8F8; border-bottom: 1px solid #EEE; }

.footer { position: absolute; bottom: 0; width: 100%; height: 60px; background-color: #EEE; }

  1. scrollTop img {

display: inline-block; height: 1em; margin-bottom: 4px; vertical-align: middle; transition: 100ms linear; filter: brightness( 90% ); }

  1. scrollTop:hover img, #scrollTop:focus img {

filter: brightness( 70% ); }

.container .text-muted { margin: 20px 0; }

div.container.main { margin: 12px auto; }

.main { margin: 0 auto !important; padding-bottom: 15px; background: #FFF; }

.nav-link-img a { display: block; background: transparent; transition: 200ms linear; }

.nav-link-img:hover a, .nav-link-img:focus a { background: #FFF; }

.nav-link-img img { transition: 200ms linear; filter: grayscale( 100% ); filter: brightness( 68% ); }

.nav-link-img.active img, .nav-link-img:hover img, .nav-link-img:focus img { filter: grayscale( 0% ); filter: brightness( 100% ); }

  1. sideNav a {

color: #337AB7; }

  1. sideNav a:hover {

color: #23527C; }

.blue-title { color: #39C; }

  1. logo, .nav-link-img {

padding: 0.4% !important; }

  1. logo {

text-align: center; }

  1. title {

line-height: 1.1em; color: #222; }

.img-20 { width: 20%; float: left; }

.img-50 { width: 50%; float: left; }

.img-50.right, .img-20.right { float: right; }

.img-100, .img-100 img, .img-50 img, .img-20 img { width: 100%; cursor: default; }

.img-20.margin, .img-50.margin, .img-100.margin { margin-left: 30px; margin-bottom: 15px; }


.img-20.borderless img, .img-50.borderless img, .img-100.borderless img { border: none; box-shadow: none; }

  1. toc {

display: none; }

/**

* CALLOUTS
*/

.callout { border-color: #EEE; border-image: none; border-radius: 3px; border-style: solid; border-width: 1px 1px 1px 5px; margin: 20px 0; padding: 20px; background: #FFF; }

.callout-info { border-left-color: #1b809e; }

/**

* SIDENAV
*/
  1. sideNav {margin-top: 20px}
  2. sideNav li>a {padding: 6px 0 6px 6px; text-decoration: none}
  3. sideNav li>a:hover {padding-left: 4px;background: transparent;border-left: 2px solid #39C}
  4. sideNav li.active>a {padding-left: 4px;font-weight: bold;border-left: 2px solid #39C}

.sideNav_h4 {display: none !important} .sideNav_h3 {display: none} .sideNav_h2.active .sideNav_h3 {display: block}

  1. sideNav li ul {margin: 0;margin-left:1.5em}

h1, h2, h3 {margin: 0; padding: 20px 0 10px 0}

/**

* TEAM PAGE
*/

.team-entry:nth-of-type(3n+1) { padding-left: 40px !important; } .team-entry:nth-of-type(3n+3) { padding-left: 80px !important; }

/**

* LISTS
*/

.main-content li { padding-left: 1em !important; list-style: none !important; } .main-content li:before { content: "• "; font-size: 2em; vertical-align: middle; color: #39C; }

/**

* Links
*/

a, a:visited { color: #337AB7; }

/**

* MEGAMENU STYLES
*/
  1. mainNav {

list-style: none !important; }

  1. mainNav .dropdown-menu {

margin-left: 5px; padding: 5px 0; }

  1. mainNav .dropdown-menu a {

padding: 8px; color: #058; }

  1. mainNav .dropdown-menu .divider {

margin: 5px 0; }

  1. mainNav li:hover .dropdown-menu, .dropdown-menu:hover {

display: block; margin-top: 0px; }

  1. mainNav .dropdown-menu::before {

position: absolute; top: -7px; left: 10px; display: inline-block; border-right: 6px solid transparent; border-bottom: 6px solid #CCC; border-left: 6px solid transparent; border-bottom-color: rgba(0, 0, 0, 0.2); content: ; }

  1. mainNav .dropdown-menu::after {

position: absolute; top: -6px; left: 10px; display: inline-block; border-right: 6px solid transparent; border-bottom: 6px solid white; border-left: 6px solid transparent; content: ; }

header { padding-bottom: 8px !important; }

.nav-link-img { padding-bottom: 9px !important; }

/**

* NOTEBOOK STYLES
*/

.notebook-entry { padding: 10px; border-color: #ddd; box-shadow: 3px 3px 12px 0 rgba( 0, 0, 0, 0.2 ); }

.notebook-entry h2 { padding-top: 0; }

/**

* FEATURES
*/

.featurette, .featurette p { margin: 30px auto; font-size: 16px !important; }

.cyan-title { color: #58C3FF; }

.magenta-title { color: #FF5D8D; }

/**

* IMAGE CAPTIONS
*/

.no-caption .img-thumbnail { border: none; border: 1px solid #DDD; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; }

.no-caption .caption { display: none; }

.img-thumbnail { border: none; border: 1px solid #EEE; border-bottom: none; border-bottom-right-radius: 0; border-bottom-left-radius: 0; box-shadow: none; }

.caption { padding: 5px; color: #222; background: #EEE; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; }

.table-responsive.with-caption { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; }

.borderless.with-caption .caption { border-top-left-radius: 4px; border-top-right-radius: 4px; }

/**

* GIANT JAMBOREE RESULTS
*/

.giantJamboreeResults .img-20 { float: none; }

.giantJamboreeResults-noPadding { padding-bottom: 20pt; text-align: left; background-image: url(//2016.igem.org/wiki/images/f/f8/T--UBonn_HBRS--cover.jpg); background-repeat: no-repeat; background-position: bottom center; background-size: 100% auto; background-attachment: scroll; }

.giantJamboreeResults-text { float: right; text-align: right; }

.dark-title { color: #222; }

.bigCheckList li { padding-bottom: 2px; list-style: none; font-size: 1.5em; }

.bigCheckList li:before { display: none; }

.bigCheckList li:after { content: " ✓"; font-size: 1.5em; vertical-align: middle; color: #39C000; }

.giantJamboreeResults .bigCheckList li { text-align: right; }

/**

* MEDIA-QUERIES
*/

@media (min-width: 1200px) { #title { margin: 1.8% 0 0 0; font-size: 2.2em; } }

@media (min-width: 992px) { #title { margin: 1.4% 0 0 0; font-size: 2em; } }

@media (min-width: 768px) { #title { margin: 1% 0 0 0; font-size: 1.6em; } }

@media (max-width: 767px) { #title { margin: 4% 0 0 0; text-align: center; font-size: 4em; } #logo>img { width: 33.3333%; } .img-50, .img-20 { width: 100%; float: none; } .img-50.img-xs50, .img-20.img-xs50 { width: 50%; } .giantJamboreeResults-noPadding { text-align: center; } .giantJamboreeResults-text { float: none; text-align: center; } .giantJamboreeResults .bigCheckList li { text-align: center; } }