Difference between revisions of "Template:Linkoping Sweden/Style"

 
(30 intermediate revisions by the same user not shown)
Line 26: Line 26:
  
 
.menu {
 
.menu {
     margin: 0 auto;
+
     margin: 30px auto 0;
     width: 1000px;
+
     width: 1100px;
 
+
 
+
    margin-top: 30px;
+
  
 
     background: #fff;
 
     background: #fff;
Line 38: Line 35:
 
     width: 200px;
 
     width: 200px;
 
     height: 141px;
 
     height: 141px;
     padding: 30px;
+
     padding: 10px 30px 30px;
    padding-top: 20px;
+
 
}
 
}
  
 
.menu .head {
 
.menu .head {
    display: flex;
 
 
     position: relative;
 
     position: relative;
 
     #overflow: hidden;
 
     #overflow: hidden;
 
     background: url('https://static.igem.org/mediawiki/2016/b/bf/T--Linkoping_Sweden--LiU_bike_bg.jpg');
 
     background: url('https://static.igem.org/mediawiki/2016/b/bf/T--Linkoping_Sweden--LiU_bike_bg.jpg');
 
     background-size: cover;
 
     background-size: cover;
 +
    padding-top: 10px;
 +
    padding-right: 13px;
 
}
 
}
  
.menu .head div {
+
#bodyContent .menu .head #social-media {
 +
    display: flex;
 +
    justify-content: center;
 +
    float: right;
 +
}
 +
 
 +
#bodyContent .menu .head #social-media a {
 +
    display: block;
 
     align-items: stretch;
 
     align-items: stretch;
 
     text-align: center;
 
     text-align: center;
     width: 90px;
+
    vertical-align: top;
 +
     width: 38px;
 +
    height: 44px;
 +
    cursor: pointer;
 +
    padding-right: 0;
  
    background-size: cover;
 
    background-position: center;
 
 
     transition: all .2s;
 
     transition: all .2s;
 
}
 
}
  
.menu .head div:hover {
+
.menu .head #social-media a:hover {
 
     transform: scale(1.2);
 
     transform: scale(1.2);
    cursor: pointer;
 
 
}
 
}
  
.menu .head div:first-of-type {
+
.menu .head a:first-child {
     margin-left: auto;
+
     #margin-right: auto;
 
}
 
}
  
.menu .head div img {
+
.menu .head #social-media img {
     width: 40px;
+
     width: 24px;
}
+
     height: 24px;
 
+
     padding: 10px 7px;
#menu-facebook {
+
     background-image: url('https://static.igem.org/mediawiki/2016/0/01/T--Linkoping_Sweden--social_fb.jpg');
+
}
+
 
+
#menu-instagram {
+
     background-image: url('https://static.igem.org/mediawiki/2016/d/d0/T--Linkoping_Sweden--social_instagram.jpg');
+
}
+
 
+
#menu-twitter {
+
    background-image: url('https://static.igem.org/mediawiki/2016/2/22/T--Linkoping_Sweden--social_twitter.jpg');
+
 
}
 
}
  
 
.content-container {
 
.content-container {
     width: 1000px;
+
     width: 1100px;
 
     margin: 0 auto;
 
     margin: 0 auto;
 
     background-color: #fff;
 
     background-color: #fff;
Line 104: Line 99:
 
     margin: 0 20px;
 
     margin: 0 20px;
 
     margin-top: 30px;
 
     margin-top: 30px;
    padding: 5px;
 
 
     margin-bottom: 20px;
 
     margin-bottom: 20px;
  
Line 111: Line 105:
 
}
 
}
  
.closed-menu span {
+
.menu-category {
 
     display: inline-block;
 
     display: inline-block;
 +
    position: relative;
 +
 
     text-align: center;
 
     text-align: center;
     width: 19%;
+
     width: 19.5%;
    padding: 10px;
+
 
     box-sizing: border-box;
 
     box-sizing: border-box;
 +
}
 +
 +
.menu-category a, .menu-category span {
 +
    display: block;
 +
    padding: 13px;
 +
 +
    color: #000;
 +
}
 +
 +
.menu-category .menu-items {
 +
    display: none;
 +
    position: absolute;
 +
    background: #fff;
 +
    width: 100%;
 +
    border: 1px solid #888;
 +
    border-top: none;
 +
    z-index: 999;
 +
}
 +
 +
.menu-category .menu-items a {
 +
    display: block;
 +
    padding: 10px 0;
 +
    border-bottom: 1px solid #888;
 +
    margin: 0 15px;
 +
 +
    color: #000;
 +
}
 +
 +
.menu-category .menu-items a:first-child {
 +
    border-top: 1px solid #888;
 +
}
 +
 +
.menu-category .menu-items a:last-child {
 +
    border-bottom: none;
 +
}
 +
 +
.menu-category a:hover {
 +
    color: #019966;
 +
    text-decoration: none;
 +
}
 +
 +
.menu-category:hover .menu-items {
 +
    display: block;
 
}
 
}
  
Line 143: Line 181:
 
}
 
}
  
#HQ_page .content {
+
#HQ_page .content h1, #HQ_page .content h2, #HQ_page .content h3, #HQ_page .content h4, #HQ_page .content h5 {
    font-family: 'Raleway', sans-serif;
+
    font-size: 110%;
+
}
+
 
+
.content h1, .content h2, .content h3, .content h4, .content h5 {
+
 
     font-family: 'Playfair Display', serif;
 
     font-family: 'Playfair Display', serif;
    font-size: 170%;
 
 
     margin-top: 10px;
 
     margin-top: 10px;
 
     font-weight: 700;
 
     font-weight: 700;
 +
}
 +
 +
.content h1 span, .content h2 span, .content h3 span, .content h4 span {
 +
    font-size: 130%;
 +
}
 +
 +
.mw-headline {
 +
    display: inline-block;
 +
    width: 100%;
 +
    padding-top: 40px;
 +
    margin-top: -30px;
 
}
 
}
  
Line 159: Line 202:
 
}
 
}
  
.content p {
+
#HQ_page .content p, #HQ_page .content li {
 +
    font-family: 'Raleway', sans-serif;
 +
    font-size: 110%;
 
     line-height: 22px;
 
     line-height: 22px;
 
}
 
}
Line 173: Line 218:
 
     font-family: 'Open Sans', sans-serif;
 
     font-family: 'Open Sans', sans-serif;
  
 +
    display: flex;
 +
    justify-content: space-between;
 
}
 
}
  
Line 180: Line 227:
 
}
 
}
  
.footer div {
+
.footer > div {
     display: inline-block;
+
     display: flex;
     padding-top: 20px;
+
     padding: 20px;
     margin-right: 60px;
+
     flex-grow: 2;
     margin-left: 60px;
+
     flex-direction: row-reverse;
 +
    justify-content: space-around;
 +
}
 +
 
 +
.footer a {
 +
    color: #fff;
 +
    float: left;
 +
}
 +
 
 +
.footer > div div {
 
     float: right;
 
     float: right;
 +
}
 +
 +
.team-container {
 +
    position: relative;
 +
    margin-top: 30px;
 +
    display: flex;
 +
    width: 100%;
 +
 +
    justify-content: flex-start;
 +
}
 +
 +
.team-container div {
 +
    overflow: hidden;
 +
    position: relative;
 +
 +
 +
    transition: all 0.6s;
 +
}
 +
 +
.team-container.images-3 div {
 +
    max-width: 33.4%;
 +
}
 +
 +
.team-container.images-11 div {
 +
    max-width: 9.1%;
 +
}
 +
 +
.team-container img {
 +
    max-width: initial !important;
 +
    height: 600px;
 +
    margin: auto;
 +
    position: relative;
 +
    left: 50%;
 +
    transform: translate3d(-50%,0,0);
 +
    -webkit-transform: translate3d(-50%,0,0);
 +
    display: block; /* optional */
 +
 +
    cursor: pointer;
 +
 +
    -webkit-filter: grayscale(100%);
 +
    filter: grayscale(100%);
 +
    filter: gray;
 +
 +
    -webkit-transition: -webkit-filter 0.4s;
 +
    -moz-transition: filter 0.4s;
 +
    -ms-transition: filter 0.4s;
 +
    -o-transition: filter 0.4s;
 +
    transition: filter 0.4s;
 +
    transition: -webkit-filter 0.4s;
 +
}
 +
 +
.team-container img:hover, .team-container .active img {
 +
    -webkit-filter: none;
 +
    filter: none;
 +
}
 +
 +
.team-container.displaying div {
 +
    max-width: 0;
 +
}
 +
 +
.team-container.displaying div.active {
 +
    max-width: 400px;
 +
}
 +
 +
.team-container.displaying div.info, .team-container.displaying div.member-info {
 +
    max-width: 100%;
 +
}
 +
 +
.team-container div.info p {
 +
    margin-top: 30px;
 +
}
 +
 +
.team-container div.info {
 +
    position: absolute;
 +
    top: 0;
 +
    left: 400px;
 +
    bottom: 0;
 +
    right: 0;
 +
    margin: 20px;
 +
    max-width: 100%;
 +
}
 +
 +
.team-container div.member-info {
 +
    max-width: 100%;
 +
}
 +
 +
.team-container div.info .info-close {
 +
    float: right;
 +
    margin-top: 17px;
 +
    background: #000;
 +
    padding: 5px 10px;
 +
    color: #fff;
 +
 +
    cursor: pointer;
 +
 +
    -webkit-transition: background 0.4s;
 +
    -moz-transition: background 0.4s;
 +
    -ms-transition: background 0.4s;
 +
    -o-transition: background 0.4s;
 +
    transition: background 0.4s;
 +
}
 +
 +
.team-container div.info .info-close:hover {
 +
    background: #666;
 +
}
 +
 +
#member-info {
 +
    display: none;
 +
}
 +
 +
img.cover {
 +
    width: 100%;
 +
    height: auto;
 +
}
 +
 +
.menu-button {
 +
    display: none;
 +
}
 +
 +
#mobile-menu {
 +
    display: none;
 +
}
 +
 +
#sponsors {
 +
    font-size: 0;
 +
    margin: 10px;
 +
}
 +
 +
#sponsors p {
 +
    margin-left: 20px;
 +
    font-family: 'Raleway', sans-serif;
 +
    margin-bottom: 0;
 +
}
 +
 +
#sponsors a {
 +
    display: inline-block;
 +
    width: 20%;
 +
    box-sizing: border-box;
 +
    padding: 0 20px;
 +
}
 +
 +
#sponsors img {
 +
    width: 100%;
 +
}
 +
 +
.content {
 +
    position: relative;
 +
}
 +
 +
#toc {
 +
    position: absolute;
 +
    display: inline-block;
 +
    border: none;
 +
    border-right: 1px solid #888;
 +
    background: none;
 +
    margin-right: 10px;
 +
    margin-top: -20px;
 +
    padding-right: 10px;
 +
    width: 200px;
 +
    height: 100%;
 +
    left: 30px;
 +
}
 +
 +
#toc #toctitle {
 +
    text-align: left;
 +
    font-size: 18px;
 +
    padding-top: 12px;
 +
}
 +
 +
#toc > ul {
 +
    padding-top: 12px;
 +
    font-family: 'Raleway', sans-serif;
 +
    font-size: 14px;
 +
}
 +
 +
#HQ_page .content #toc > ul li {
 +
    font-size: 14px;
 +
}
 +
 +
#toc a {
 +
    color: #333;
 +
}
 +
 +
#toc a {
 +
    display: inline-block;
 +
    border-left: 3px solid transparent;
 +
    padding-left: 5px;
 +
}
 +
 +
#toc ul {
 +
    margin-left: 10px !important;
 +
}
 +
 +
#toc > ul {
 +
    margin: 0 !important;
 +
    width: 200px;
 +
}
 +
 +
#toc > ul > li > a span {
 +
    font-style: italic;
 +
}
 +
 +
#toc .tocnumber {
 +
    display: none;
 +
}
 +
 +
.toc-fixed #toctitle {
 +
    position: fixed;
 +
    top: 40px;
 +
}
 +
 +
.toc-fixed > ul {
 +
    position: fixed;
 +
    top: 71px;
 +
}
 +
 +
.toc-fixed.toc-restricted #toctitle {
 +
    position: absolute;
 +
    top: inherit;
 +
}
 +
 +
.toc-fixed.toc-restricted > ul {
 +
    position: absolute;
 +
    top: inherit;
 +
    bottom: 0;
 +
}
 +
 +
#toc a.toc-selected {
 +
    border-left: 3px solid #019966;
 +
}
 +
 +
.content.toc-exist {
 +
    padding-left: 260px;
 +
}
 +
 +
img {
 +
    max-width: 100%;
 +
    height: auto;
 +
}
 +
 +
.menu .head {
 +
    height: 192px;
 +
    box-sizing: border-box;
 +
}
 +
 +
#header-video {
 +
    position: absolute;
 +
    top: 0;
 +
    opacity: 0;
 +
    max-width: 100%;
 +
}
 +
 +
#header-content {
 +
    position: absolute;
 +
    top: 0;
 +
    left: 0;
 +
    right: 0;
 +
    height: 192px;
 +
 +
    padding-top: 10px;
 +
    padding-right: 13px;
 +
}
 +
 +
#header-video.playing {
 +
    opacity: 1;
 +
}
 +
 +
#header-content.playing {
 +
    background: rgba(255, 255, 255, 0.8);
 +
}
 +
 +
/** Notebook **/
 +
 +
#notebook-content {
 +
    padding-top: 60px;
 +
}
 +
 +
#notebook-categories {
 +
    position: absolute;
 +
    background: #FFFFFF;
 +
    width: 1040px;
 +
    box-sizing: border-box;
 +
    white-space: nowrap;
 +
    font-size: 0;
 +
    z-index: 100;
 +
    border: 2px solid #000;
 +
}
 +
 +
#notebook-categories.notebook-fixed {
 +
    position: fixed;
 +
    top: 16px;
 +
}
 +
 +
#notebook-categories span{
 +
    display: inline-block;
 +
    width: 23%;
 +
    text-align: center;
 +
    line-height: 48px;
 +
    font-size: 13px;
 +
}
 +
 +
#notebook-categories div {
 +
    display: inline-block;
 +
    width: 8%;
 +
}
 +
 +
#notebook-content {
 +
    font-size: 0;
 +
}
 +
 +
.nb-row {
 +
    height: 48px;
 +
    width: 100%;
 +
}
 +
 +
.nb-row-small {
 +
    height: 14px;
 +
    width: 100%;
 +
}
 +
 +
.nb-month {
 +
    line-height: 34px;
 +
    width: 100%;
 +
    font-size: 14px;
 +
    text-align: center;
 +
}
 +
 +
.nb-empty {
 +
    display: inline-block;
 +
    width: 23%;
 +
    height: 100%;
 +
}
 +
 +
.nb-mid-l {
 +
    display: inline-block;
 +
    width: 4%;
 +
    height: 100%;
 +
    border-right: 1px solid #000;
 +
    box-sizing: border-box;
 +
}
 +
 +
.nb-mid-r {
 +
    display: inline-block;
 +
    width: 4%;
 +
    height: 100%;
 +
    border-left: 1px solid #000;
 +
    box-sizing: border-box;
 +
}
 +
 +
.nb-mid-line-l {
 +
    display: inline-block;
 +
    width: 4%;
 +
    height: 100%;
 +
    border-right: 1px solid #000;
 +
    border-bottom: 2px solid #000;
 +
    box-sizing: border-box;
 +
}
 +
 +
.nb-mid-line-r {
 +
    display: inline-block;
 +
    width: 4%;
 +
    height: 100%;
 +
    border-left: 1px solid #000;
 +
    border-bottom: 2px solid #000;
 +
    box-sizing: border-box;
 +
}
 +
 +
.nb-line, .nb-line-l, .nb-line-r {
 +
    position: relative;
 +
    display: inline-block;
 +
    width: 23%;
 +
    height: 100%;
 +
    border-bottom: 2px solid #000;
 +
    box-sizing: border-box;
 +
}
 +
 +
.nb-line-l > span {
 +
    position: absolute;
 +
    text-align: left;
 +
    font-size: 12px;
 +
    bottom: -10px;
 +
    background: #FFF;
 +
    padding-right: 10px;
 +
    padding-left: 20px;
 +
}
 +
 +
.nb-line-r > span {
 +
    position: absolute;
 +
    text-align: right;
 +
    font-size: 12px;
 +
    right: 0;
 +
    bottom: -10px;
 +
    background: #FFF;
 +
    padding-left: 10px;
 +
    padding-right: 20px;
 +
}
 +
 +
.nb-line-l > span span, .nb-line-r > span span {
 +
    display: inline-block;
 +
    background: #000;
 +
    color: #FFF;
 +
    line-height: 18px;
 +
    width: 18px;
 +
    text-align: center;
 +
    border-radius: 9px;
 +
}
 +
 +
span.with-content {
 +
    cursor: pointer;
 +
}
 +
 +
span.with-content:hover {
 +
    color: #019966;
 +
}
 +
 +
span.with-content:hover span {
 +
    background-color: #019966;
 +
}
 +
 +
.nb-details {
 +
    margin-top: -2px;
 +
    border-top: 2px solid #000;
 +
    border-bottom: 2px solid #000;
 +
    font-size: 12px;
 +
    padding: 20px;
 +
    display: none;
 +
}
 +
 +
.nb-details img {
 +
    float: left;
 +
    max-width: 300px;
 +
    margin-right: 20px;
 +
}
 +
 +
.nb-details > br {
 +
    clear: both;
 +
}
 +
 +
 +
 +
/** Small screen **/
 +
 +
@media screen and (max-width: 1100px) {
 +
    .menu {
 +
        margin-top: 0;
 +
        width: 100%;
 +
    }
 +
 +
    #mw-content-text>p {
 +
        margin: 0;
 +
    }
 +
 +
    #globalWrapper {
 +
        padding-bottom: 0;
 +
    }
 +
 +
    .content-container {
 +
        width: 100%;
 +
    }
 +
 +
    #toc {
 +
        display: none;
 +
    }
 +
 +
    .content.toc-exist {
 +
        padding-left: 30px;
 +
    }
 +
 +
    #header-video {
 +
        display: none;
 +
    }
 +
}
 +
 +
/** Mobile **/
 +
@media screen and (max-width: 768px) {
 +
    .menu .head {
 +
        display: block;
 +
    }
 +
 +
    .menu .head a:first-child {
 +
        width: 100%;
 +
        display: block;
 +
    }
 +
 +
    .menu .head > a:first-child img {
 +
        width: 50%;
 +
        height: auto;
 +
        box-sizing: border-box;
 +
    }
 +
 +
    #bodyContent .menu .head #social-media {
 +
        display: none;
 +
    }
 +
 +
    .menu-button {
 +
        display: block;
 +
        background: none;
 +
        border-color: transparent;
 +
        position: absolute;
 +
        top: 10px;
 +
        right: 10px;
 +
 +
        width: 48px;
 +
        height: 48px;
 +
    }
 +
 +
    .menu .menu-button {
 +
        top: 11px;
 +
    }
 +
 +
    .menu-button span {
 +
        display: block;
 +
        height: 3px;
 +
        width: auto;
 +
        border-radius: 2px;
 +
        background: #000;
 +
        margin-bottom: 4px;
 +
        margin-left: 4px;
 +
        margin-right: 4px;
 +
    }
 +
 +
    .menu-button span:first-child {
 +
        margin-top: 10px;
 +
    }
 +
 +
    .closed-menu {
 +
        display: none;
 +
 +
        position: fixed;
 +
        top: 18px;
 +
        left: 0;
 +
        background: #fff;
 +
        margin: 0;
 +
        width: 100%;
 +
        height: 100%;
 +
        overflow: scroll;
 +
 +
        z-index: 888;
 +
    }
 +
 +
    .closed-menu .menu-category {
 +
        display: block;
 +
        width: 100%;
 +
        text-align: left;
 +
        padding-left: 20px;
 +
    }
 +
 +
    .closed-menu .menu-category:last-child {
 +
        padding-bottom: 30px;
 +
    }
 +
 +
    .menu-category .menu-items {
 +
        display: block;
 +
        position: relative;
 +
 +
        border: none;
 +
    }
 +
 +
    .menu-category .menu-items a {
 +
        border: none !important;
 +
        margin-left: 30px;
 +
    }
 +
 +
    .menu-category > a {
 +
        font-size: 18px;
 +
    }
 +
 +
    #mobile-menu {
 +
        display: block;
 +
        padding: 26px;
 +
        font-size: 24px;
 +
        padding-left: 20px;
 +
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
 +
        margin-bottom: 16px;
 +
    }
 +
 +
    #mobile-menu div {
 +
        display: inline-block;
 +
    }
 +
 +
    #bodyContent #mobile-menu a {
 +
        padding: 0 3px;
 +
        text-decoration: none;
 +
    }
 +
 +
    #mobile-menu img {
 +
        width: 24px;
 +
        height: 24px;
 +
        -webkit-filter: invert(1);
 +
        margin-bottom: 6px;
 +
    }
 +
 +
    .footer {
 +
        flex-wrap: wrap;
 +
        flex-direction: row;
 +
    }
 +
 +
    .footer > div {
 +
        display: flex;
 +
        justify-content: space-around;
 +
    }
 +
 +
    .footer img {
 +
        height: auto;
 +
        width: 100%;
 +
    }
 +
 +
    .footer > div div {
 +
        margin: 0;
 +
        float: none;
 +
    }
 +
 +
    #sponsors a {
 +
        display: block;
 +
        width: 100%;
 +
        padding: 20px;
 +
    }
 
}
 
}
 
</style>
 
</style>
 
</html>
 
</html>

Latest revision as of 18:40, 19 October 2016