towardstj/css/index.css
2021-08-11 15:56:00 -04:00

243 lines
3.6 KiB
CSS

html {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
overflow-x: hidden;
}
body {
background-color: #fafafa;
padding: 0;
margin: 0;
}
main {
display: flex;
flex-direction: column;
width: 100%;
align-items: center;
max-width: 50rem;
margin: 1rem auto;
padding: 0.5rem;
font-size: 1.5rem;
}
nav {
background: transparent;
padding: 1rem;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}
.scrolled {
background: #fafafa;
}
.banner {
position: fixed;
width: 100%;
top: 0;
z-index: 1;
height: 70px;
background-color: #24B8E9;
}
.wrapper {
position: fixed;
width: 100%;
top: 70px;
z-index: 1;
}
.nav-link {
display: inline-block;
padding: 0.5rem 2rem;
line-height: 1.5;
text-decoration: none;
color: #4a4a4a;
text-transform: uppercase;
letter-spacing: 0.02em;
border-radius: 0.25rem;
}
.bold {
font-weight: bold;
}
.hero {
position: relative;
height: 100vh;
}
.important {
font-size: 4rem;
font-weight: normal;
}
.quote {
display: flex;
flex-direction: row;
align-items: center;
width: 100%;
margin-top: 1rem;
margin-bottom: 1rem;
padding: 0.5rem;
font-size: 1.5rem;
}
.quote-col {
flex: 1;
padding: 2rem calc(min(4rem, 100vw));
}
.introduction {
width: 100%;
display: flex;
flex-direction: column;
padding-top: 2.5rem;
padding-bottom: 2.5rem;
align-items: center;
justify-content: center;
}
.subheader {
max-width: 50%;
font-style: italic;
}
table {
border: 1px solid black;
width: 100%;
}
.button {
border-radius: 0.5rem;
padding: 0.5em 1em;
margin: 0.5rem 0.5rem;
cursor: pointer;
user-select: none;
color: inherit;
text-decoration: none;
transition: all 0.3s ease;
}
.button:visited {
color: inherit;
}
.hover-1:hover {
background-image: linear-gradient(
to right,
#e7484f,
#e7484f 16.65%,
#f68b1d 16.65%,
#f68b1d 33.3%,
#fced00 33.3%,
#fced00 49.95%,
#009e4f 49.95%,
#009e4f 66.6%,
#00aac3 66.6%,
#00aac3 83.25%,
#732982 83.25%,
#732982 100%,
#e7484f 100%
);
animation: slidebg 2s reverse linear infinite;
}
.hover-2:hover {
background-image: linear-gradient(
to left,
#e7484f,
#e7484f 16.65%,
#f68b1d 16.65%,
#f68b1d 33.3%,
#fced00 33.3%,
#fced00 49.95%,
#009e4f 49.95%,
#009e4f 66.6%,
#00aac3 66.6%,
#00aac3 83.25%,
#732982 83.25%,
#732982 100%,
#e7484f 100%
);
animation: slidebg 2s linear infinite;
}
@keyframes slidebg {
to {
background-position: 20vw;
}
}
.whitesmoke {
background-color: #e7e7e7;
}
.inline {
display: inline;
}
.signup-button {
display: inline-block;
font-size: 1.25rem;
font-weight: 600;
text-transform: uppercase;
}
.materials-table {
border-spacing: 0;
text-align: left;
padding: 1rem 0.5rem;
background-color: white;
border: 0px;
border-radius: 0.5rem;
margin-bottom: 2em;
}
.materials-table > thead > tr > th,
.materials-table > tbody > tr > td {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}
.materials-table > thead > tr > th:nth-child(1) {
text-align: right;
padding-right: 1rem;
width: 15%;
}
.materials-table > thead > tr > th:nth-child(2) {
text-align: left;
padding-left: 1rem;
}
/* Day number */
.materials-table > tbody > tr > td:nth-child(1) {
text-align: right;
padding-right: 1rem;
}
/* Topics */
.materials-table > tbody > tr > td:nth-child(2) {
text-align: left;
padding-left: 1rem;
}
.materials-table td {
vertical-align: text-top;
}
span.materials-table-title {
font-weight: bold;
display: inline-block;
margin-bottom: 1em;
}
.footer {
font-size: 0.75rem;
}