maggioni.xyz/_sass/_layout.scss

326 lines
5.0 KiB
SCSS
Raw Permalink Normal View History

2021-01-20 14:27:52 +00:00
/* vim: set ts=2 sw=2 et tw=80: */
2018-10-23 14:38:45 +00:00
body {
2021-01-20 14:27:52 +00:00
background-color: $background-color;
2024-01-08 11:04:54 +00:00
font-family: "Radio Canada", sans-serif;
2021-01-20 14:27:52 +00:00
display: flex;
min-height: 100vh;
flex-direction: column;
2016-07-07 19:05:01 +00:00
}
2016-09-13 19:40:45 +00:00
main {
2021-01-20 14:27:52 +00:00
flex: 1 0 auto;
2016-07-07 19:05:01 +00:00
}
2018-10-23 14:38:45 +00:00
.navbar-list .navbar-item {
2021-01-20 14:27:52 +00:00
text-transform: uppercase;
font-weight: 400;
margin: 1em;
2016-07-07 19:05:01 +00:00
}
2018-10-23 14:38:45 +00:00
ul.navbar-list {
2021-01-20 14:27:52 +00:00
margin-bottom: 2rem;
2016-07-07 19:05:01 +00:00
}
2016-09-13 19:40:45 +00:00
.header {
2024-01-08 11:04:54 +00:00
background: $top-col;
color: $top-col;
2016-07-07 19:05:01 +00:00
2021-01-20 14:27:52 +00:00
.head.navbar {
display: flex;
2021-01-26 21:09:05 +00:00
@include media-query($on-palm) {
flex-direction: column;
align-items: center;
}
2021-01-20 14:27:52 +00:00
h1 {
flex: 2;
font-size: 1.5rem;
display: inline;
margin: 0;
2021-01-22 17:49:05 +00:00
padding: 0;
a {
2024-01-08 11:04:54 +00:00
background: $top-col;
2021-01-22 17:49:05 +00:00
color: white;
}
2018-10-23 14:38:45 +00:00
}
2021-01-20 14:27:52 +00:00
.links {
white-space: nowrap;
text-align: right;
a {
text-transform: uppercase;
2021-01-22 17:49:05 +00:00
display: inline-block;
padding: 0.25rem 0.5rem;
2024-01-08 11:04:54 +00:00
background: $top-col;
color: white;
2021-01-22 17:49:05 +00:00
}
a:first-child {
padding-left: 0;
}
a:last-child {
padding-right: 0;
2021-01-20 14:27:52 +00:00
}
2016-07-07 19:05:01 +00:00
}
2021-01-20 14:27:52 +00:00
}
2016-07-07 19:05:01 +00:00
}
2021-01-22 17:49:05 +00:00
.homequote {
display: flex;
2024-01-08 11:04:54 +00:00
color: $text-color;
2021-01-22 17:49:05 +00:00
align-items: stretch;
margin-bottom: 1rem;
figure {
margin: 0;
flex: 0;
2024-01-08 11:04:54 +00:00
background-image: url(/images/claudio.jpg);
background-size: cover;
background-position: center;
}
figure .blur {
width: 100%;
height: 100%;
backdrop-filter: blur(10px) contrast(0.7) brightness(1.3);
2021-01-22 17:49:05 +00:00
display: flex;
align-items: center;
2024-01-08 11:04:54 +00:00
justify-content: center;
2021-01-22 17:49:05 +00:00
min-width: 300px;
2021-01-26 21:09:05 +00:00
}
2021-01-22 17:49:05 +00:00
.quote {
flex: 1;
padding: 1rem 1.5rem;
}
}
2024-01-08 11:04:54 +00:00
@include media-query($on-laptop) {
.homequote {
flex-direction: column;
figure img {
filter: none;
object-fit: cover;
height: 300px;
width: 300px;
object-position: center top;
}
}
}
2021-01-26 22:11:24 +00:00
.portfolio {
position: relative;
padding-top: 2rem;
.line {
position: absolute;
top: 0;
bottom: 0;
left: 1rem;
border: 3px solid #aaa;
2021-01-26 22:11:24 +00:00
z-index: 100;
}
.line-end,
.line-end-bottom {
2021-01-26 22:11:24 +00:00
position: absolute;
2024-01-10 13:31:30 +00:00
left: 0.675rem;
2021-01-26 22:11:24 +00:00
width: 1rem;
height: 1rem;
2024-01-10 13:31:30 +00:00
border-radius: 1rem;
background: #aaa;
2021-01-26 22:11:24 +00:00
z-index: 200;
}
.line-end {
top: 0;
}
.line-end-bottom {
bottom: 0;
}
2021-01-26 22:11:24 +00:00
.port-elem {
display: flex;
width: 100%;
2021-01-26 22:11:24 +00:00
.side > *,
.description {
padding: 0.5rem;
z-index: 200;
}
2021-01-26 22:11:24 +00:00
.side {
width: 12rem;
min-width: 12rem;
display: flex;
flex-grow: 0;
flex-direction: column;
align-items: stretch;
text-align: right;
.date {
2024-01-08 11:04:54 +00:00
background: $top-col;
color: white;
}
.category,
.authors,
.repo,
.languages {
background: white;
2024-01-10 13:31:30 +00:00
border: 3px solid #7cafe4;
border-top: 0px;
}
.authors {
text-align: left;
ul {
2024-01-10 13:31:30 +00:00
margin: 0 0 0 1rem;
list-style-type: square;
2024-01-10 13:31:30 +00:00
font-size: 0.8em;
}
}
2021-01-26 22:11:24 +00:00
}
.description {
2024-01-08 11:04:54 +00:00
border: $border;
flex-grow: 1;
2024-01-10 13:31:30 +00:00
background: $background-color;
2021-01-26 22:11:24 +00:00
.images {
2024-01-08 11:04:54 +00:00
background: $brand-color;
padding: 0.5rem;
margin: -0.5rem -0.5rem 0.5rem -0.5rem;
2021-01-26 22:11:24 +00:00
text-align: center;
2024-01-08 11:04:54 +00:00
a {
background: none;
}
2021-01-26 22:11:24 +00:00
img {
width: 175px;
margin: 0.25rem;
2021-01-26 22:11:24 +00:00
}
}
}
}
}
2024-01-10 13:31:30 +00:00
@include media-query($on-laptop) {
.portfolio {
padding-bottom: 1rem;
.port-elem {
flex-direction: column;
.side {
width: 100%;
text-align: center;
.authors {
text-align: center;
ul {
list-style-type: none;
}
}
}
}
}
}
2018-10-23 14:38:45 +00:00
@media (max-width: 700px) {
2021-01-20 14:27:52 +00:00
.navbar-list .navbar-item {
width: calc(100% - 2em);
}
2016-07-07 19:05:01 +00:00
}
ul.post-list,
ul.navbar-list {
2021-01-20 14:27:52 +00:00
list-style-type: none;
margin-left: 0;
margin-right: 0;
2016-07-07 19:05:01 +00:00
}
2018-10-23 14:38:45 +00:00
ul.post-list li {
padding-top: 2rem;
}
ul.post-list li:first-child {
padding-top: 0;
}
footer {
2021-01-22 17:49:05 +00:00
justify-content: space-between;
2024-01-08 11:04:54 +00:00
background: $brand-color;
2021-01-22 17:49:05 +00:00
.container {
display: flex;
2021-01-26 22:11:24 +00:00
.author {
flex: 1;
font-size: 1rem;
text-align: right;
2024-01-08 11:04:54 +00:00
background: $brand-color;
color: white;
a {
background: $brand-color;
color: white;
}
}
2021-01-26 21:09:05 +00:00
@include media-query($on-palm) {
flex-direction: column;
align-items: center;
2016-07-07 19:05:01 +00:00
.author {
text-align: center;
}
}
.icons {
2021-01-22 17:49:05 +00:00
text-align: center;
flex: 0;
white-space: nowrap;
.icon {
display: inline-table;
2024-01-08 11:04:54 +00:00
color: $brand-color;
background: white;
width: 2.5em;
height: 2.5em;
text-align: center;
line-height: 2.5em;
margin: 0.25em;
cursor: pointer;
}
2021-01-22 17:49:05 +00:00
}
}
2016-07-07 19:05:01 +00:00
}
2018-10-23 14:38:45 +00:00
.container {
2021-01-20 14:27:52 +00:00
padding-top: 1rem;
padding-bottom: 1rem;
2024-01-10 13:31:30 +00:00
max-width: min(1280px, 100%);
margin: 0 auto;
2016-07-07 19:05:01 +00:00
}
2024-01-10 13:31:30 +00:00
@media screen and (max-width: 1280px) {
main.container {
margin: 0 0;
}
}
2018-10-23 15:17:23 +00:00
/* Utility class for centering block elements */
.block-center {
display: block;
margin: auto;
}