You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
web/sass/main.scss

475 lines
7.3 KiB
SCSS

4 years ago
@import "minireset";
4 years ago
@import "fonts";
4 years ago
a {
text-decoration: none;
color: inherit;
}
4 years ago
body {
min-height: 100vh;
display: flex;
flex-direction: column;
4 years ago
font-family: "roboto", sans-serif;
font-size: 16px;
color: #2E3440;
4 years ago
}
header {
padding: 4rem 0;
border-top: 8px solid;
border-image: linear-gradient(to right, #8FBCBB 25%, #88C0D0 25%, #88C0D0 50%, #81A1C1 50%, #81A1C1 75%, #5E81AC 75%, #5E81AC 100%) 1;
&.compact {
padding: 1.3rem 0;
.wrap { height: 4rem }
}
.wrap {
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
height: 6rem;
max-width: 1200px;
width: 100%;
}
a.logo {
height: 100%;
img { height: inherit; }
}
section {
height: 100%;
display: flex;
flex-direction:column;
justify-content: space-between;
padding: .3rem 0 .1rem 0;
}
nav {
4 years ago
ul {
display: flex;
position: relative;
a { padding: .9rem }
li:hover { color: var(--color) }
li:hover ul { display: grid }
ul {
grid-template-columns: auto auto;
display: none;
position: absolute;
left: 0;
top: 100%;
width: 100%;
margin-top: .9rem;
padding: 1rem;
background-color: #FFF;
border-top: 5px solid var(--color);
box-shadow: 0px 1px 9px #00000033;
font-size: 1rem;
font-weight: normal;
color: #2E3440;
a {
display: flex;
align-items: center;
padding: .5em;
[class^="icon-"], [class*=" icon-"] {
color: var(--color);
margin-right: .4em;
}
}
}
}
}
nav.secondary {
font-size: .9rem;
color: #4C566A;
a:hover {
text-decoration: underline;
}
}
nav.primary {
font-weight: bold;
font-size: 1.2em;
&>ul>li>a::after {
content: "\e921";
font-family: icomoon;
font-size: .8em;
margin-left: .5em;
color: #5E81AC;
}
&>ul>li:hover>a::after { color: inherit }
}
4 years ago
}
main {
max-width: 900px;
width: 100%;
margin: 0 auto;
padding: 1rem;
4 years ago
&.index {
max-width: 1200px;
h1 { margin: 2em 0 1em 0 }
}
h1, h2, h3, h4, h5, h6 {
font-weight: bold;
margin: 1em 0;
}
h1 { font-size: 2em }
h2 { font-size: 1.6em }
h3 { font-size: 1.2em }
ul {
list-style: disc;
margin-left: 1em;
}
p { margin: 1em 0 }
p, ul { line-height: 1.5 }
a {
font-weight: bold;
color: #5E81AC;
}
a:hover { text-decoration: underline }
a[rel~="noreferrer"]::after {
content: "\e907";
font-family: icomoon;
font-size: .8em;
font-weight: normal;
margin-left: .2em;
}
section {
margin-bottom: 5rem;
}
.blocks {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(12em, 1fr));
grid-column-gap: 1rem;
grid-row-gap: 2rem;
align-items: stretch;
justify-items: center;
a {
font-weight: normal;
color: inherit;
}
a:hover { text-decoration: none }
article {
display: flex;
flex-direction: column;
max-width: 50em;
height: 100%;
padding: 1em;
border-top: 5px solid #5E81AC;
font-size: .85em;
a { font-weight: bold }
a:hover { text-decoration: underline }
&:hover {
box-shadow: 0px 1px 9px #00000033;
}
.title {
font-weight: bold;
font-size: 1.3em;
margin: .5em 0;
a { display: block }
}
.date {
display: block;
width: 100%;
margin-top: auto;
text-align: right;
font-size: 0.8em;
color: #81A1C1;
}
}
}
.blocks.noshadow article { box-shadow: none }
.websites {
grid-template-columns: 1fr 1fr 1fr 1fr;
text-align: center;
.title {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 3rem;
margin: .4em 0;
img {
max-width: 64%;
max-height: 100%;
}
}
}
.people-profile, .people-list {
display: flex;
flex-direction: column;
.role { color: #81A1C1 }
.other {
display: flex;
div { margin-right: 2em }
}
.info {
a {
font-weight: normal;
color: inherit;
}
a:hover { text-decoration: underline }
}
.mail, .tel, .cal, .homepage {
display: flex;
align-items: center;
&::before {
font-family: icomoon;
font-size: 1.2em;
margin-right: .4em;
}
}
.mail::before { content: "\e90e" }
.tel::before { content: "\e913" }
.cal::before { content: "\e905" }
.homepage::before { content: "\e907" }
}
.people-profile .info {
text-align: center;
img {
border-radius: 50%;
width: 8em;
margin-top: 2em;
}
h1 {
margin: 1em 0 .5em 0;
font-size: 1.6rem;
}
.role {
font-weight: bold;
}
.other {
justify-content: center;
margin: 2rem 0 1rem 0;
div { margin: 0 1em }
}
}
.people-list {
h1 { margin-bottom: 0 }
h2 {
margin: 3rem 0;
font-size: 1.4rem;
text-align: center;
color: #4C566A;
}
article {
display: flex;
align-items: center;
height: 8em;
margin-bottom: 3em;
text-align: left;
img {
display: block;
height: 100%;
margin-right: 2.5em;
border-radius: 50%;
}
.info {
height: 70%;
display: flex;
flex-direction: column;
justify-content: space-between;
.name a {
display: block;
font-weight: bold;
font-size: 1.5em;
margin-bottom: .3em;
}
}
}
}
.button {
display: inline-block;
padding: 1rem 4rem;
margin-top: 2rem;
outline: none;
border: 0;
border-top: 5px solid #D8DEE9;
background: none;
text-transform: uppercase;
font-size: .9rem;
font-weight: bold;
color: inherit;
&:hover {
text-decoration: none;
box-shadow: 0px 1px 9px #00000033;
}
}
.centering {
text-align: center;
}
4 years ago
}
footer {
4 years ago
margin-top: auto;
padding: 3em;
text-align: center;
color: #FFF;
4 years ago
background-color: #2E3440;
border-top: 5px solid;
border-image: linear-gradient(to right, #BF616A 20%, #D08770 20%, #D08770 40%, #EBCB8B 40%, #EBCB8B 60%, #A3BE8C 60%, #A3BE8C 80%, #B48EAD 80%) 5;
p {
font-size: .9em;
color: #D8DEE9;
}
p:last-child { margin-top: .5em }
nav {
margin-bottom: 3em;
font-size: 1rem;
ul {
display: flex;
justify-content: center;
a { padding: 1em }
a:hover{ text-decoration: underline }
li::after {
content: "\007C";
color: #4C566A;
}
li:last-child::after {
display: none;
}
}
4 years ago
}
4 years ago
}
4 years ago
div.rambotron {
width: 100%;
text-align: center;
color: #ECEFF4;
background: linear-gradient(rgba(94, 129, 172, 0.95), rgba(94, 129, 172, 0.95)), url("rambotron.jpg") center center no-repeat;
background-size: cover;
h1 {
font-size: 2em;
font-weight: bold;
margin: 1em 0 .8em 0;
}
p {
max-width: 40em;
margin: 0 auto;
line-height: 1.5;
font-size: .9rem;
}
.links {
background-color: #3B4252;
margin-top: 2.5rem;
ul {
display: flex;
justify-content: center;
a {
display: block;
padding: 1.1rem;
margin: 0 1rem;
&:hover {
background-color: #2E3440;
}
}
}
}
}
div.breadcrumbs {
border-top: 1px solid #D8DEE9;
font-size: .9em;
.wrap {
margin: 0 auto;
display: flex;
max-width: 1200px;
width: 100%;
}
a {
display: inline-block;
padding: 1rem;
&.home {
display: flex; // vertical center
font-size: 1.5em;
color: #88c0d0;
&:hover { color: #000 }
}
}
ul {
display: flex;
li {
display: flex;
align-items: center;
&::before {
content: "\203A";
margin: 0 1em;
font-weight: bold;
color: #D8DEE9;
}
&:last-child { font-weight: bold }
a:hover { text-decoration: underline }
}
}
}