Difference between revisions of "Template:BNU-CHINA/CSS/style-index"

Line 175: Line 175:
 
   }
 
   }
 
   .container-fluid {
 
   .container-fluid {
     margin-bottom: -610px;
+
     margin-bottom: -615px;
 
   }
 
   }
 
}
 
}

Revision as of 06:54, 7 October 2016

/**----------------------------------------------

>>> Table of Contents:
------------------------------------------------
0.0 global
1.0 main-container
2.0 page-heading
3.0 navigation
4.0 page-story
5.0 team-page
------------------------------------------------
  • /

/** -- 0.0 global

  • /

.header-color {

 background: #ffffff;
 color: #646464;

}

/** -- 1.0 main-container

  • /

.main-container {

 top: 0;
 left: 0;
 right: 0;
 margin: 0;
 padding: 0;
 background-color: white;
 overflow: auto;
 position: absolute;

}


/** -- 2.0 page-heading

  • /

.page-heading {

 width: 100%;
 background-repeat: no-repeat;
 background-attachment:fixed;
 background-size: 100%;
 text-align: center !important;
 text-transform: uppercase;

}

.page-heading h3 {

 color: #ffffff;
 font-size: 10vw;
 font-weight: bolder;
 font-family: "Avenir", sans-serif;
 margin: 0;
 padding-top: 35vh;
 padding-bottom: 30vh;

}

@media screen and (min-width: 992px) {

 .page-heading h3 {
   padding-top: 20%;
 }

}

@media screen and (min-width: 768px) and (max-width: 992px) {

 .page-heading h3 {
   padding-top: 40%;
 }

}

@media screen and (max-width: 768px) {

 .page-heading h3 {
   padding-top: 30%;
 }

}

/** -- 3.0 navigation

  • /

.nav-container, .nav-adjust {

 background: url(../img/header-background.png) 0 0 repeat-x;
 border: 0;
 transition: all 0.3s ease-in-out;

}

.nav-adjust .scrolled-down {

 background: black;
 border: 0;
 opacity: 0.9;
 transition: all 0.3s ease-in-out;

}

/*.nav-adjust .scrolled-top:hover {*/

 /*background: black;*/
 /*border: 0;*/
 /*opacity: 0.8;*/
 /*transition: all 0.3s ease-in-out;*/

/*}*/

.nav-adjust > .nav-container div > ul > li > a, .navbar-brand a {

 color: #fff;
 opacity: 0.8;
 transition: all 0.5s ease-in-out;

}

.nav-adjust > .nav-container div > ul > li.focus > a {

 color: white;
 /*background: #0f0f0f;*/
 opacity: 1;
 transition: all 0.5s ease-in-out;

}

.nav-adjust .scrolled-down div > ul > li.focus > a {

 color: white;
 background: #545454;
 opacity: 1;
 transition: all 0.2s ease-in-out;

}

li.dropdown.open ul {

 background: rgba(0, 0, 0, 0.85);
 color: white;
 transition: all 0.2s ease-in-out;

}

li.dropdown.open ul li a {

 color: white;
 transition: all 0.2s ease-in-out;

}

li.dropdown.open ul:hover {

 background: #151515;
 transition: all 0.2s ease-in-out;

}

li.dropdown.open ul:hover li a {

 filter: blur(1px);
 transition: all 0.5s ease-in-out;

}

li.dropdown.open ul li a {

 color: #b0b0b0;
 transition: all 0.2s ease-in-out;

}

li.dropdown.open ul li a:hover {

 background: black;
 color: #e9e9e9;
 text-shadow: none;
 filter: none;
 transition: all 0.2s ease-in-out;

}

/** -- 4.0 page-story

  • /

.page-story {

 padding-bottom: 30px;

}

.page-story > article {

 background-color: white;
 box-shadow: 0 4px 6px rgba(75, 75, 75, 0.5);

}

article {

 margin: 40px;

}

@media screen and (min-width: 768px) and (max-width: 992px) {

 .page-story > article {
   padding: 32px 64px;
 }
 .container-fluid {
   margin-bottom: -615px;
 }

} @media screen and (max-width: 768px) and (min-width: 641px) {

 .page-story > article {
   padding: 16px 10px;
 }
 .container-fluid {
   margin-bottom: -360px;
 }

}

@media screen and (max-width: 640px) {

 .page-story > article {
   padding: 16px 5px;
   margin: -15px;
 }
   .container-fluid {
   margin-bottom: -260px;
 }

}

article > header.page-header {

 text-align: center !important;
 font-family: 'Computer Modern Bright Semibold', sans-serif;
 letter-spacing: -1px;
 font-style: italic;
 border: none;

} .page-header {

 margin: 40px 0;

}

article[id="achievement"] a, article[id="achievement"] h2, article[id="achievement"] h3, article[id="achievement"] h4, article[id="achievement"] h5 {

 color: #604f87;

}

article[id="project"] a, article[id="project"] h2, article[id="project"] h3, article[id="project"] h4, article[id="project"] h5 {

 color: #9c8e11;

}

article[id='modeling'] a, article[id='modeling'] h2, article[id='modeling'] h3, article[id='modeling'] h4, article[id='modeling'] h5 {

 color: #278f45;

}

article[id='practices'] a, article[id='practices'] h2, article[id='practices'] h3, article[id='practices'] h4, article[id='practices'] h5 {

 color: #308276;

}

article[id='safety'] a, article[id='safety'] h2, article[id='safety'] h3, article[id='safety'] h4, article[id='safety'] h5 {

 color: #308276;

}


article[id="modeling"] a, article[id="modeling"] h2, article[id="modeling"] h3, article[id="modeling"] h4, article[id="modeling"] h5 {

 color: #278f45;

}

article h2, article h3, article h4, article h5 {

 font-family: 'Computer Modern Bright Semibold', sans-serif;
 font-weight: 500;

}

article > header.page-header h1 {

 font-weight: 500;
 font-size: 48px;

}

  1. secondary-page-header {
 display: block;
 margin: 12px 0;
 font-size: 24px;
 letter-spacing: 1px;

}

article a {

 font-family:'Computer Modern Sans', sans-serif;
 text-decoration: none;

}


article h2 {

 font-size: 26px;
 padding-bottom: 3px;
 border-bottom: 1px solid #eee;

} article h3 {

 font-size: 20px;
 word-spacing: -2px;

} article p, article blockquote {

 font-family: 'Computer Modern Serif', serif;
 font-size: 16px;
 line-height: 22px;
 margin-bottom: 16px;
 word-spacing: 2px;
 font-weight: 500;

} article ol {

 font-family: 'Computer Modern Serif', serif;
 font-weight: normal;
 margin: 0 0 16px 1.5em;
 list-style: decimal outside;

} article ol li {

 font-family: 'Computer Modern Serif', serif;
 font-weight: normal;

}

figure {

 margin: 20px auto;

}

article video {

 max-width: 100% !important;
 height: auto !important;
 background-color: #000;
 background-size: 100% 100%;
 display: block;
 margin: 25px auto;

}

/** -- 5.0 team-page

  • /
  1. team {
 /*margin: 30px auto;*/
 padding-top: 30px;
 padding-bottom: 30px;
 background: #ffffff;

} .team-header h3 {

 margin: 20px auto 20px auto;
 text-align: center !important;
 font-weight: 100;
 font-size: 46px;

} .team-header p {

 margin-top: 10px;
 margin-bottom: 30px;
 letter-spacing: 1px;
 text-align: center !important;
 color: #adbabb;

}

  1. myTab {
 margin-bottom: 30px;

}

  1. team .team-figure {
 cursor: pointer;
 margin: 0;
 padding: 0 !important;

}

.team-figure .pic {

 background-size: cover;
 min-height: 438px;
 transition: all 1.5s;
 -webkit-animation-fill-mode: both;
 -moz-animation-fill-mode: both;
 -ms-animation-fill-mode: both;
 -o-animation-fill-mode: both;
 animation-fill-mode: both;
 -webkit-animation-duration: 0s;
 -moz-animation-duration: 0s;
 -ms-animation-duration: 0s;
 -o-animation-duration: 0s;
 animation-duration: 0s;
 -webkit-animation-duration: 0.7s;
 -moz-animation-duration: 0.7s;
 -ms-animation-duration: 0.7s;
 -o-animation-duration: 0.7s;
 animation-duration: 0.7s;
 display:block;
 /*margin:5px 0 7px 5px;*/
 /*padding:3px;*/

}

.team-intro {

 min-height: 438px;

} .self-introduction {

 margin-top: 15px;
 margin-bottom: 30px;

} .right {

 padding-right: 30px;
 text-align: left !important;

} .right > p{

 text-align: left !important;

} .left {

 padding-left: 30px;
 text-align: right !important;

} .left > p {

 text-align: right !important;

} .self-introduction h3 {

 margin: 10px auto;
 font-weight: 100;
 font-size: 20px;

} .self-introduction p {

 margin: 10px auto;
 letter-spacing: 1px;
 color: #adbabb;

}

@keyframes swing {

 20%{
   transform: rotate(15deg);
 }
 40% {
   transform: rotate(-10deg);
 }
 60%{
   transform: rotate(5deg);
 }
 80%{
   transform: rotate(-5deg);
 }
 100%{
   transform: rotate(0deg);
 }

}

.team-figure .pic:hover, .team-figure:hover > .pic {

 -webkit-transform-origin: top center;
 -moz-transform-origin: top center;
 -o-transform-origin: top center;
 transform-origin: top center;
 -webkit-animation-name: swing;
 -moz-animation-name: swing;
 -o-animation-name: swing;
 animation-name: swing;

}