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

204 lines
2.5 KiB
CSS
Raw Normal View History

/* resets */
2017-03-10 22:59:27 -08:00
*,
*::after,
*::before {
box-sizing: border-box;
margin: 0;
padding: 0;
border: 0;
2017-03-10 22:59:27 -08:00
}
/* regions */
body {
2017-03-10 22:59:27 -08:00
display: flex;
color: black;
background-color: white;
align-items: center;
font-family: 'Roboto', sans-serif;
font-size: 1.4rem;
flex-direction: column;
width: 100%;
/* 14px default before jquery scalling */
2017-03-10 22:59:27 -08:00
}
.section {
display: flex;
padding-top: 1em;
padding-bottom: 1em;
align-items: center;
flex-direction: column;
2017-03-10 22:59:27 -08:00
}
/* mobile first column */
2017-03-10 22:59:27 -08:00
.section__container {
display: flex;
width: 95%;
align-items: center;
flex-direction: column;
}
#footer {
min-height: 300px;
2017-03-10 22:59:27 -08:00
}
/* Typography */
body {
font-size: 12px;
}
2017-03-10 22:59:27 -08:00
h1,
h2,
h3,
h4,
h5,
h6 {
text-align: center;
font-weight: bold;
line-height: 1.45;
}
2017-03-10 22:59:27 -08:00
h1 {
font-size: 2em;
}
2017-03-10 22:59:27 -08:00
h2 {
font-size: 1.5em;
}
2017-03-10 22:59:27 -08:00
h3 {
font-size: 1.17em;
2017-03-10 22:59:27 -08:00
}
h4 {
font-size: 1em;
}
2017-03-10 22:59:27 -08:00
h5 {
font-size: 0.83em;
2017-03-10 22:59:27 -08:00
}
h6 {
font-size: 0.67em;
}
2017-03-10 22:59:27 -08:00
p {
text-align: left;
font-size: 1em;
line-height: 1.2;
margin-bottom: 0.5em;
}
2017-03-10 22:59:27 -08:00
/* using ::before for list numbers and icons */
nav,
ul,
ol {
list-style: none;
}
2017-03-10 22:59:27 -08:00
a,
.clickable {
color: inherit;
opacity: 0.8;
outline: 0;
text-decoration: none;
cursor: pointer;
font-weight: bold;
2017-03-10 22:59:27 -08:00
}
a:hover,
.clickable:hover {
opacity: 1;
2017-03-10 22:59:27 -08:00
}
2017-03-11 20:11:20 -08:00
.btn {
padding: 0.3em;
color: white;
background-color: black;
border: 4px solid grey;
border-radius: 10px;
text-transform: uppercase;
font-weight: bold;
cursor: pointer;
2017-03-10 22:59:27 -08:00
}
img {
max-width: 100%;
2017-03-10 22:59:27 -08:00
}
figure {
display: block;
padding: 1em;
2017-03-10 22:59:27 -08:00
}
figcaption {
display: block;
margin: 1em 0;
text-align: center;
font-style: italic;
orphans: 2;
2017-03-10 22:59:27 -08:00
}
/* divider */
2017-03-10 22:59:27 -08:00
hr {
width: 50%;
height: 0;
margin: 4px auto;
border-top-color: white;
border-bottom-color: rgba(0, 0, 0, 0.2);
border-width: 2px;
border-style: solid;
2017-03-10 22:59:27 -08:00
}
.flex-col-center {
display: flex;
align-items: center;
flex-direction: column;
2017-03-10 22:59:27 -08:00
}
.flex-col-left {
display: flex;
align-items: flex-start;
flex-direction: column;
2017-03-10 22:59:27 -08:00
}
.flex-row {
display: flex;
align-content: center;
flex-direction: row;
flex-wrap: wrap;
justify-content: flex-start;
2017-03-10 22:59:27 -08:00
}
.text-center p {
text-align: center;
}
.text-left p {
text-align: left;
}
.text-right p {
text-align: right;
}
/* keeps in the DOM but moves from the page */
.invisible {
position: absolute;
left: -999em;
}
/*keeps in the same location and maintains it's layout space even though hidden*/
.hide {
visibility: hidden;
}
/*completely removes from DOM */
.remove {
display: none;
}