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

349 lines
5.3 KiB
CSS
Raw Normal View History

2017-03-10 22:59:27 -08:00
/* sections */
.section__headline {
2017-03-10 22:59:27 -08:00
text-align: center;
}
2017-03-10 22:59:27 -08:00
.section__content {
display: flex;
flex-direction: column;
align-items: center;
}
2017-03-11 20:11:20 -08:00
.section__content ul {
display: flex;
flex-direction: column;
align-items: flex-start;
max-width: 80%;
padding-top: 0.3em;
2017-03-11 20:11:20 -08:00
padding-bottom: 1em;
padding-left: 0.5em;
padding-right: 0.5em;
2017-03-11 20:11:20 -08:00
}
.section__content li {
padding-bottom: 0.7em;
2017-03-11 20:11:20 -08:00
}
/* lists in section content */
.section__content li {
font-size: 1em;
list-style-type: none;
2017-04-07 17:02:17 -07:00
line-height: 1.1em;
}
.section__content ul,
.section__content ol {
margin-left: 2em;
list-style-position: inside;
padding-top: 0.5em;
}
.section__content ul > li::before {
font-family: FontAwesome;
content: "\f18e";
padding-right: 1.1em;
margin-left: -2em;
2017-03-11 20:11:20 -08:00
}
.section__content ol {
counter-reset: foo;
}
.section__content ol > li {
counter-increment: foo;
}
.section__content ol > li::before {
content: counter(foo) ".";
padding-right: 0.8em;
margin-left: -1.4em;
2017-03-11 20:11:20 -08:00
}
2017-04-07 01:40:29 -07:00
.section--odd {
color: white;
background-color: black;
2017-03-11 20:11:20 -08:00
}
.section--hero {
color: white;
background-color: grey;
}
2017-04-07 01:40:29 -07:00
.section--odd .btn {
color: black;
background-color: white;
text-transform: uppercase;
2017-03-04 20:02:56 -08:00
}
2017-03-10 22:59:27 -08:00
.section--footer {
color: white;
background-color: darkgrey;
min-height: 4000px;
}
2017-04-07 01:40:29 -07:00
/* modal */
.section--modal {
display: none;
2017-04-07 01:40:29 -07:00
color: white;
justify-content: center;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
}
.section__container--modal {
margin: 0.5em;
margin-top: 2em;
background-color: black;
color: white;
max-height: 85%;
border-radius: 1em;
width: auto;
padding-bottom: 1em;
2017-04-07 17:02:17 -07:00
border-style: solid;
border-width: medium;
2017-04-07 01:40:29 -07:00
}
.section__headline--modal {
padding-top: 0.5em;
position: relative;
width: 100%;
padding-right: 1.2em;
}
.section__headline--modal > h1 {
font-size: 1.2em;
}
.section__headline--modal > a[modal-close] {
position: absolute;
font-size: 1em;
top: 0.4em;
right: 0.4em;
}
.section__content--modal {
overflow-y: auto;
position: relative;
align-items: flex-start;
font-size: 0.9em;
2017-04-07 01:40:29 -07:00
padding: 1em;
}
/*fix for fucking google chrome pushing up overflow content */
.section__content--modal * {
flex-shrink: 0;
}
/* ----------------
2017-03-10 22:59:27 -08:00
Hero Section
---------------- */
2017-03-10 22:59:27 -08:00
#hero {
background-size: cover;
background-position: center;
display: flex;
align-items: center;
justify-content: center;
width: 100vw;
}
#hero .section-content--hero {
text-align: center;
2017-04-07 01:40:29 -07:00
line-height: 1;
}
/*mobile first*/
#hero h1,
#hero h2,
#hero h3,
#hero h4,
#hero h5,
#hero h6 {
line-height: 1;
}
/* ----------------
2017-03-10 22:59:27 -08:00
Components/Shortcodes Styling
---------------- */
/* box creates a flexbox wrapper, row default */
2017-03-10 22:59:27 -08:00
.box {
display: flex;
flex-flow: wrap;
align-content: center;
justify-content: center;
padding-bottom: 0.5em;
}
.box--column {
flex-direction: column;
align-items: center;
}
.box--image {
max-width: 450px;
padding: 0.5em;
}
.box--headline {
}
.box--text {
}
2017-03-10 22:59:27 -08:00
.box--btn {
padding: 0.5rem;
margin-bottom: 0.5rem;
}
.box--btn-bar > .box--btn {
margin-right: 0.2em;
margin-bottom: 0.5em;
}
.btn__text {
align-self: center;
}
.btn__icon {
align-self: center;
padding-right: 0.2em;
}
.btn--large .btn__text,
.btn--large .btn__icon {
font-size: 3rem;
}
.btn--circle {
border-radius: 50%;
padding: 0.5em;
}
.highlight {
font-size: 0.7em;
align-items: left;
color: red;
background-color: white;
padding: 0.5em;
border-color: black;
border-width: 3px;
border-radius: 1em;
}
.highlight > ul > li::before {
font-family: FontAwesome;
content: "\f054"; /* chevron-right */
padding-right: 1.1em;
margin-left: -2em;
}
.box--avatar > a {
opacity: 1;
}
/*may get rid of thise*/
2017-03-10 22:59:27 -08:00
.box__embed {
width: 100%;
2017-03-10 22:59:27 -08:00
display: flex;
flex-direction: column;
flex-wrap: nowrap;
justify-content: center;
2017-03-10 22:59:27 -08:00
align-items: center;
}
.box--embed {
flex-direction: column;
flex-wrap: nowrap;
}
.thumb--yt {
display: flex;
align-items: center;
justify-content: center;
background-repeat: no-repeat;
background-size: cover;
}
.thumb--yt:hover {
-webkit-filter: brightness(1.2);
cursor: pointer;
}
.thumb--yt > .play-button {
font-size: 4em;
}
2017-04-03 06:59:44 -07:00
.box__caption {
2017-04-07 01:40:29 -07:00
text-transform: capitalize;
font-style: italic;
2017-04-03 06:59:44 -07:00
}
.box__title {
2017-04-07 01:40:29 -07:00
text-transform: uppercase;
font-weight: bold;
padding-top: 0.75em;
2017-04-03 06:59:44 -07:00
}
.box__embed--disqus {
width: 90vw;
max-width: 800px;
}
.box__contact-info > * {
padding: 0.1em;
align-self: center;
}
.box__contact-info > * > * {
margin: 0.2em;
align-self: center;
}
/*turn off default bullets*/
2017-03-10 22:59:27 -08:00
.box--gallery {
list-style: none;
}
.box--gallery li,
.box--gallery__item {
padding: 0.2em;
}
/*turn off fontawesome bullets*/
.box--gallery li::before,
.box--gallery__item li::before {
display: none;
}
2017-04-03 06:59:44 -07:00
code {
font-size: 0.8em;
font-family: Inconsolata;
2017-04-07 17:02:17 -07:00
background-color: black;
2017-04-03 06:59:44 -07:00
border-radius: 0.2em;
color: white;
padding-left: 0.2em;
padding-right: 0.2em;
padding-top: 0.05em;
2017-04-07 17:02:17 -07:00
padding-bottom: 0.3em;
overflow-x: scroll;
}
2017-04-03 06:59:44 -07:00
code.hljs {
2017-04-07 01:40:29 -07:00
font-size: 0.75em;
border-radius: 0.2em;
2017-04-07 17:02:17 -07:00
background-color: black;
color: white;
padding: 1em;
margin-bottom: 0.7em;
width: inherit;
max-width: 90vw;
2017-04-07 17:02:17 -07:00
border-style: solid;
border-width: 3px;
border-color: dimgrey;
2017-04-03 06:59:44 -07:00
}