Skip to content

Instantly share code, notes, and snippets.

@shreyasminocha
Created July 24, 2017 06:06
Show Gist options
  • Save shreyasminocha/c6e73185f48f6a852f456e408953696c to your computer and use it in GitHub Desktop.
Save shreyasminocha/c6e73185f48f6a852f456e408953696c to your computer and use it in GitHub Desktop.
dsmun17.com stylesheet
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background: url(/images/bg.jpg) center fixed;
background-size: cover;
color: #222222;
font: 16px "Source Sans Pro", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
line-height: 1;
}
.container {
margin-left: auto;
margin-right: auto;
max-width: 1000px;
}
a {
color: #1086d6;
text-decoration: none;
}
p {
line-height: 1.45;
margin-bottom: 1.5em;
}
h1 {
font-weight: 600;
}
h1 {
font-size: 2em;
text-align: center;
}
h3 {
font-family: "Montserrat", "Roboto", "Source Sans Pro", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: bold;
letter-spacing: 0.1em;
text-transform: uppercase;
}
h4 {
font-size: 1.5em;
font-weight: 400;
}
hr {
border-color: #1086d6;
margin: 1em 0;
width: 2em;
}
.btn {
border: 1px solid #1086d6;
border-radius: 0.25em;
color: #1086d6;
cursor: pointer;
padding: 0.65em 1.5em;
}
.clear-header {
margin-top: 10em !important;
}
nav {
left: auto;
position: absolute;
right: 3em;
top: 2em;
}
nav ul {
list-style: none;
}
nav ul li {
display: inline;
}
nav a {
color: white;
font-family: "Montserrat", "Roboto", "Source Sans Pro", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 0.75em;
font-weight: bold;
letter-spacing: 0.1em;
margin-left: 2em;
padding-bottom: 2.5px;
text-transform: uppercase;
}
.nav-toggle {
display: none;
position: fixed;
right: 1em;
top: 2em;
z-index: 2;
}
.nav-line {
background: white;
display: block;
height: 2.5px;
margin-bottom: 4px;
width: 20px;
}
.nav-open {
transform: translateX(0);
}
@media only screen and (max-width: 950px) {
.nav-toggle {
display: inline-block;
}
nav {
background: #383838;
display: block;
height: 100%;
max-width: 180px;
padding-top: 4em;
position: fixed;
right: 0;
top: 0;
transform: translateX(100%);
transition: transform 200ms ease-in-out;
width: 100%;
z-index: 1;
}
nav li a {
display: block;
font-family: "Source Sans Pro", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 1em;
letter-spacing: initial;
margin-left: 0;
padding: 1em 0 1em 1em;
text-transform: none;
transition: background 200ms ease-in-out;
}
nav li a:hover {
background: #444444
}
}
.nav-wrapper {
color: white;
position: relative;
}
.logo {
height: auto;
left: 3em;
position: absolute;
top: 1em;
width: 65px;
}
.panel {
background: rgba(255, 255, 255, 0.825);
margin-bottom: 4em;
margin-top: 4em;
padding: 4em;
width: 92.5%;
}
.feature:after {
clear: both;
content: "";
display: table;
}
.feature-item {
float: left;
margin-right: 1%;
padding: 3em 1.5em;
text-align: center;
width: 32.5%;
}
.feature-item:last-child {
margin-right: 0;
}
@media only screen and (max-width: 800px) {
.feature-item {
margin-bottom: 1em;
margin-left: 0;
width: 100%;
}
.feature-item:last-child {
margin-bottom: 0;
}
}
.feature-item hr {
margin: 1em auto;
}
.feature-item svg {
height: auto;
margin-bottom: 1em;
width: 2em;
}
.feature-item p {
color: #666666;
}
.feature-item path {
fill: #1086d6;
}
.grid-item {
cursor: pointer;
float: left;
height: 176px;
position: relative;
width: 33%;
}
@media only screen and (max-width: 960px) {
.grid-item {
height: 256px;
width: 50%;
}
}
@media only screen and (max-width: 660px) {
.grid-item {
height: 256px;
width: 100%;
}
}
#committees .grid-item:after {
align-items: center;
background: rgba(34, 34, 34, 0.8);
bottom: 0;
color: #cccfd2;
display: flex;
font-family: "Montserrat", "Roboto", "Source Sans Pro", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 0.75em;
font-weight: bold;
justify-content: center;
left: 0;
letter-spacing: 0.1em;
line-height: 1.3;
opacity: 1;
padding: 0 0.25em;
position: absolute;
right: 0;
text-align: center;
text-transform: uppercase;
top: 0;
transition: all 200ms;
}
#committees .grid-item:hover:after {
opacity: 0.5;
}
.grid:after {
clear: both;
content: "";
display: table;
}
/**
* Footer styles
*/
footer {
background: #222222;
color: white;
padding: 5em 0;
}
footer a {
color: #40c4ff;
}
footer .container {
position: relative;
}
footer .social {
bottom: 0;
position: absolute;
right: 20px;
}
footer .social a {
display: inline-block;
margin-left: 1em;
}
footer .social a:first-child {
margin-left: 0;
}
footer .social svg {
height: 1em;
opacity: 0.5;
transition: opacity 200ms;
width: 1em;
}
footer .social svg:hover {
opacity: 1;
}
footer .social svg path {
fill: white;
}
/**
* Home styles
*/
html#Home, html#Home body {
height: 100%;
}
.landing {
color: white;
height: 100%;
}
.landing .hero-intro {
position: relative;
top: 50%;
transform: translateY(-50%);
}
.landing .hero-intro h1 {
line-height: 1.1;
}
blockquote {
font-family: "Georgia", serif;
font-style: italic;
margin-top: 1em;
text-align: center;
width: 100%;
}
#committees a:nth-child(1) .grid-item {
background: url(/images/committee_thumbs/bg1.jpg) center;
background-size: cover;
}
#committees a:nth-child(1) .grid-item:after {
content: "united nations security council";
}
#committees a:nth-child(2) .grid-item {
background: url(/images/committee_thumbs/bg2.jpg) center;
background-size: cover;
}
#committees a:nth-child(2) .grid-item:after {
content: "disarmament and international security committee";
}
#committees a:nth-child(3) .grid-item {
background: url(/images/committee_thumbs/bg3.jpg) center;
background-size: cover;
}
#committees a:nth-child(3) .grid-item:after {
content: "International Press Corps";
}
#committees a:nth-child(4) .grid-item {
background: url(/images/committee_thumbs/bg4.jpg) center;
background-size: cover;
}
#committees a:nth-child(4) .grid-item:after {
content: "Lok Sabha";
}
#committees a:nth-child(5) .grid-item {
background: url(/images/committee_thumbs/bg5.jpg) center;
background-size: cover;
}
#committees a:nth-child(5) .grid-item:after {
content: "Special convention on religion and terror";
}
#committees a:nth-child(6) .grid-item {
background: url(/images/committee_thumbs/bg6.jpg) center;
background-size: cover;
}
#committees a:nth-child(6) .grid-item:after {
content: "special political and decolonization committee";
}
#committees a:nth-child(7) .grid-item {
background: url(/images/committee_thumbs/bg7.jpg) center;
background-size: cover;
}
#committees a:nth-child(7) .grid-item:after {
content: "united nations framework convention on climate change";
}
#committees a:nth-child(8) .grid-item {
background: url(/images/committee_thumbs/bg8.jpg) center;
background-size: cover;
}
#committees a:nth-child(8) .grid-item:after {
content: "united nations high commission for refugees";
}
#committees a:nth-child(9) .grid-item {
background: url(/images/committee_thumbs/bg9.jpg) center;
background-size: cover;
}
#committees a:nth-child(9) .grid-item:after {
content: "united nations human rights council";
}
#committees a:nth-child(10) .grid-item {
background: url(/images/committee_thumbs/bg10.jpg) center;
background-size: cover;
}
#committees a:nth-child(10) .grid-item:after {
content: "united nations historical security council";
}
#committees a:nth-child(11) .grid-item {
background: url(/images/committee_thumbs/bg11.jpg) center;
background-size: cover;
}
#committees a:nth-child(11) .grid-item:after {
content: "united nations military staff committee";
}
#committees a:nth-child(12) .grid-item {
background: url(/images/committee_thumbs/bg12.jpg) center;
background-size: cover;
}
#committees a:nth-child(12) .grid-item:after {
content: "united states national security council";
}
#committees a:nth-child(13) .grid-item {
background: url(/images/committee_thumbs/bg13.jpg) center;
background-size: cover;
}
#committees a:nth-child(13) .grid-item:after {
content: "United nations women";
}
#committees a:nth-child(14) .grid-item {
background: url(/images/committee_thumbs/bg14.jpg) center;
background-size: cover;
}
#committees a:nth-child(14) .grid-item:after {
content: "all india political parties meet 2002";
}
/**
* Gallery styles
*/
#gallery .grid-item:nth-child(1) {
background: url(/images/gallery/pic1.JPG) center;
background-size: cover;
}
#gallery .grid-item:nth-child(2) {
background: url(/images/gallery/pic2.JPG) center;
background-size: cover;
}
#gallery .grid-item:nth-child(3) {
background: url(/images/gallery/pic3.JPG) center;
background-size: cover;
}
#gallery .grid-item:nth-child(4) {
background: url(/images/gallery/pic4.JPG) center;
background-size: cover;
}
#gallery .grid-item:nth-child(5) {
background: url(/images/gallery/pic5.JPG) center;
background-size: cover;
}
#gallery .grid-item:nth-child(6) {
background: url(/images/gallery/pic6.JPG) center;
background-size: cover;
}
#gallery .grid-item:nth-child(7) {
background: url(/images/gallery/pic7.JPG) center;
background-size: cover;
}
#gallery .grid-item:nth-child(8) {
background: url(/images/gallery/pic8.jpg) center;
background-size: cover;
}
#gallery .grid-item:nth-child(9) {
background: url(/images/gallery/pic9.jpg) center;
background-size: cover;
}
#gallery .grid-item:nth-child(10) {
background: url(/images/gallery/pic10.jpg) center;
background-size: cover;
}
#gallery .grid-item:nth-child(11) {
background: url(/images/gallery/pic11.jpg) center;
background-size: cover;
}
#gallery .grid-item:nth-child(12) {
background: url(/images/gallery/pic12.jpg) center;
background-size: cover;
}
#gallery .grid-item:nth-child(13) {
background: url(/images/gallery/pic13.jpg) center;
background-size: cover;
}
#gallery .grid-item:nth-child(14) {
background: url(/images/gallery/pic14.jpg) center;
background-size: cover;
}
#gallery .grid-item:nth-child(15) {
background: url(/images/gallery/pic15.jpg) center;
background-size: cover;
}
#gallery .grid-item:nth-child(16) {
background: url(/images/gallery/pic16.jpg) center;
background-size: cover;
}
/**
* Contact styles
*/
#contact ul {
list-style-type: none;
}
#contact li {
margin-bottom: 0.5em;
}
#contact form {
max-width: 600px;
}
#contact form input,
#contact form textarea {
background: none;
border: none;
border-bottom: 1.5px solid #1086d6;
border-radius: 0;
color: black;
display: block;
font: inherit;
margin-bottom: 2em;
opacity: 0.70;
padding: 0.5em 0;
transition: opacity 200ms;
}
#contact form input:focus,
#contact form textarea:focus {
opacity: 1;
outline: none;
}
#contact form input:hover,
#contact form input:active,
#contact form textarea:hover,
#contact form textarea:active {
opacity: 1;
}
#contact form input {
float: left;
width: 47.5%;
}
#contact form input[name="name"] {
margin-right: 5%;
}
#contact form textarea {
height: 100px;
width: 100%;
}
#contact form .btn {
border: 1px solid #1086d6;
border-radius: 0.25em;
color: #1086d6;
cursor: pointer;
display: inline-block;
float: none;
padding: 0.5em 1.5em;
width: auto;
}
/**
* Committee page styles
*/
#committee hr + ul {
list-style-type: none;
}
#committee li {
line-height: 1.45;
margin-bottom: 0.5em;
}
#committee ul {
margin-bottom: 1.5em;
}
#deputy-chairpersons {
margin-top: 2em;
}
.chair_img {
float: right;
margin-bottom: 1em;
margin-left: 1em;
max-width: 400px;
width: 100%;
}
#about_others .chair_img {
display: inline-block;
float: none;
margin: 0;
max-width: none;
width: 48%;
}
#about_others .chair_img:first-child {
margin-right: 2%;
}
@media only screen and (max-width: 800px) {
#about_others .chair_img {
width: 100%;
}
#about_others .chair_img:first-child {
margin-bottom: 1em;
margin-right: 0;
}
}
.chair_img img {
height: auto;
width: 100%;
}
@media only screen and (max-width: 416px) {
.chair_img {
margin-left: 0;
}
}
.chair_img figcaption {
color: gray;
margin-top: 0.5em;
text-align: center;
}
/**
* Thanks page styles
*/
#thanks + footer {
bottom: 0;
position: absolute;
width: 100%;
}
/**
* Updates page styles
*/
#updates li {
line-height: 1.45;
margin-bottom: 1em;
}
/**
* Countdown styles
*/
@media screen and (max-width: 631px) {
.landing #countdown {
font-size: 1.5rem;
top: 65%;
}
}
@media screen and (max-width: 328px) {
.landing #countdown {
display: none;
}
}
#countdown {
display: inline-block;
font-family: inherit;
font-size: 2rem;
font-weight: 100;
position: absolute;
text-align: center;
top: 57%;
width: 100%;
}
#countdown > div {
display: inline-block;
padding: 10px;
}
#countdown div > span:first-child {
display: inline-block;
padding: 15px;
}
#countdown .small {
display: block;
font-size: 1rem;
padding-top: 0.25rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment