maggioni.xyz/_sass/_layout.scss

248 lines
3.9 KiB
SCSS
Raw 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;
font-family: 'IBM Plex Mono', monospace;
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 {
2021-01-22 17:49:05 +00:00
border-bottom: $border;
background: $nav-bg;
color: $nav-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 {
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: .25rem .5rem;
}
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;
background: $nav-bg;
color: $nav-col;
align-items: stretch;
margin-bottom: 1rem;
figure {
margin: 0;
flex: 0;
display: flex;
align-items: center;
min-width: 300px;
background: black;
}
2021-01-26 21:09:05 +00:00
@include media-query($on-palm) {
figure { display: none; }
}
2021-01-22 17:49:05 +00:00
.quote {
border-left: 3px dotted $brand-color;
flex: 1;
padding: 1rem 1.5rem;
}
}
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;
z-index: 100;
}
.line-end, .line-end-bottom {
position: absolute;
left: .75rem;
width: 1rem;
height: 1rem;
border-radius: .25rem;
background: #AAA;
z-index: 200;
}
.line-end { top: 0 }
.line-end-bottom { bottom: 0 }
.port-elem {
display: flex;
align-items: flex-start;
.side > *, .description { padding: .5rem; z-index: 200 }
2021-01-26 22:11:24 +00:00
.side {
width: 12rem;
min-width: 12rem;
display: flex;
flex-direction: column;
align-items: stretch;
text-align: right;
.date {
background: $nav-bg;
color: $nav-col;
}
.category, .authors, .repo, .languages {
background: white;
border-left: 3px solid $nav-bg;
border-bottom: 3px solid $nav-bg;
}
.authors {
text-align: left;
ul {
margin-left: 1rem;
list-style-type: square;
}
}
2021-01-26 22:11:24 +00:00
}
.description {
border: 2px solid $nav-bg;
.images {
background: $nav-bg;
padding: .5rem;
margin: -.5rem -.5rem .5rem -.5rem;
text-align: center;
img {
width: 175px;
margin: .25rem;
border: 3px solid $nav-col;
}
}
}
}
}
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
}
2018-10-23 14:38:45 +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
padding: .5rem;
display: flex;
justify-content: space-between;
border-top: $border;
background: $nav-bg;
color: $nav-col;
2021-01-26 22:11:24 +00:00
.author {
font-size: 1rem;
text-align: right;
}
2021-01-26 21:09:05 +00:00
@include media-query($on-palm) {
flex-direction: column;
align-items: center;
2021-01-26 22:11:24 +00:00
.author { text-align: center }
2021-01-22 17:49:05 +00:00
}
2016-07-07 19:05:01 +00:00
2021-01-22 17:49:05 +00:00
.icons {
text-align: center;
flex: 0;
white-space: nowrap;
.icon {
display: inline-table;
background: $nav-col;
color: $nav-bg;
width: 2.5em;
height: 2.5em;
text-align: center;
line-height: 2.5em;
margin: .25em;
cursor: pointer;
}
}
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;
2016-07-07 19:05:01 +00:00
}
2018-10-23 15:17:23 +00:00
/* Utility class for centering block elements */
.block-center {
display: block;
margin: auto;
}