uci-hugo-landingpage/assets/css/base.css

151 lines
2.2 KiB
CSS
Raw Normal View History

2017-03-10 22:59:27 -08:00
/* resets */
*,
*:before,
*:after {
box-sizing: border-box;
margin: 0;
padding: 0;
border: 0;
}
/* regions */
body{
display: flex;
flex-direction: column;
align-items: center;
font-family: 'Roboto', sans-serif;
font-size: 1.4rem; /* 14px default before jquery scalling */
color: black;
background-color: white;
}
.section {
display: flex;
flex-direction: column;
align-items: center;
}
/* mobile first column */
.section__container {
width:95%;
display: flex;
flex-direction: column;
align-items: center;
}
/* Typography */
body {
font-size: 12px;
}
h1, h2, h3, h4, h5, h6 {
/* display: block; */
font-weight: bold;
line-height: 1.45;
text-align: center;
}
h1 {font-size: 2em;}
h2 {font-size: 1.5em;}
h3 {font-size: 1.17em;}
h4 {font-size: 1em;}
h5 {font-size: .83em;}
h6 {font-size: .67em;}
p {font-size: 1em;
text-align: left;
line-height: 1.2;
}
li { font-size: 1em}
/* elements */
ul, nav {
list-style: none;
}
a {
text-decoration: none;
color: inherit;
cursor: pointer;
opacity: 0.9;
}
a:hover {
opacity: 1;
}
.btn>a {
color: white;
background-color: darkslategrey;
text-transform: uppercase;
padding: .5em;
border-radius: 5px;
border: 3px solid #566963;
cursor: pointer;
font-weight: bold;
text-shadow: 0 1px 0 grey;
}
img {
max-width: 100%;
}
figure {
display: block;
padding: 1em;
}
figcaption {
display: block;
text-align: center;
margin: 1em 0;
font-style: italic;
orphans: 2;
}
/* html5 video tag, override any iframe width */
/*video, iframe {
width: 100%!important;
height: auto!important;/
}*/
hr {
margin: 4px auto 4px auto;
height: 0;
width: 50%;
border-style: solid;
border-width: 2px;
border-top-color: white;
border-bottom-color: rgba(0, 0, 0, 0.2);
}
.flex-col-center {
display: flex;
flex-direction: column;
align-items: center;
}
.flex-col-left {
display: flex;
flex-direction: column;
align-items: flex-start;
}
.flex-row {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: flex-start;
align-content: center;
}