jonnybarnes.uk/resources/assets/sass/layout.scss

209 lines
2.6 KiB
SCSS
Raw Normal View History

2016-05-19 15:01:28 +01:00
//layout.scss
//boxes
html {
box-sizing: border-box;
2016-05-19 15:01:28 +01:00
}
*,
*::before,
*::after {
box-sizing: inherit;
2016-05-19 15:01:28 +01:00
}
#topheader {
display: flex;
flex-flow: row;
2016-05-19 15:01:28 +01:00
}
#topheader a {
padding: 0.5em 1em;
2016-05-19 15:01:28 +01:00
}
#topheader h1 {
font-size: 1em;
margin: 0;
}
2016-05-19 15:01:28 +01:00
nav {
padding-top: 0.5em;
2016-05-19 15:01:28 +01:00
}
.social-list {
padding-left: 2em;
2016-05-19 15:01:28 +01:00
}
.note {
background-color: $base2;
box-shadow: 0 0 10px 2px $base1;
padding: 0.5em;
margin-top: 1em;
2016-05-19 15:01:28 +01:00
}
.note::after {
content: " ";
display: block;
height: 0;
clear: both;
2016-05-19 15:01:28 +01:00
}
.note a {
word-wrap: break-word;
2016-05-19 15:01:28 +01:00
}
.note .e-content p:first-child {
margin-top: 0;
2016-05-19 15:01:28 +01:00
}
.note-metadata {
width: 100%;
2016-05-19 15:01:28 +01:00
}
.social-links {
float: right;
2016-05-19 15:01:28 +01:00
}
.social-links a {
text-decoration: none;
2016-05-19 15:01:28 +01:00
}
.icon {
width: auto;
height: 1em;
fill: $blue;
2016-05-19 15:01:28 +01:00
}
.reply {
margin-left: 2em;
margin-right: 2em;
font-size: 0.8em;
padding: 0.5em;
2016-05-19 15:01:28 +01:00
}
.reply-to {
margin-left: 2em;
margin-right: 2em;
font-size: 0.8em;
padding-top: 2em;
2016-05-19 15:01:28 +01:00
}
.reply-to + .note {
margin-top: 0.3em;
2016-05-19 15:01:28 +01:00
}
.mini-h-card {
border-radius: 2px;
border: 1px solid $base01;
padding: 0 0.2em;
text-decoration: none;
margin-right: 5px;
white-space: nowrap;
2016-05-19 15:01:28 +01:00
}
.mini-h-card img {
height: 1em;
border-radius: 2px;
vertical-align: text-bottom;
2016-05-19 15:01:28 +01:00
}
.like-photo {
height: 1.26em;
2016-05-19 15:01:28 +01:00
}
.reply .e-content {
margin-top: 0.5em;
padding-left: 0.5em;
2016-05-19 15:01:28 +01:00
}
.notes-subtitle {
font-size: 1em;
2016-05-19 15:01:28 +01:00
}
.note-photo {
width: 100%;
height: auto;
image-orientation: from-image;
2016-05-19 15:01:28 +01:00
}
//articles
article header {
margin-top: 0.5em;
margin-bottom: 0.8em;
2016-05-19 15:01:28 +01:00
}
article h1 {
font-size: 1.2em;
margin-bottom: 0;
}
2016-05-19 15:01:28 +01:00
.post-info {
font-size: 0.8em;
font-style: italic;
margin-top: -0.8em;
2016-05-19 15:01:28 +01:00
}
//contacts
.contact {
position: relative;
2016-05-19 15:01:28 +01:00
}
.contact-links {
list-style-type: none;
2016-05-19 15:01:28 +01:00
}
.contact img {
height: auto;
width: 2em;
position: absolute;
top: 0;
left: 0;
2016-05-19 15:01:28 +01:00
}
.contact-info {
margin-left: 2em;
2016-05-19 15:01:28 +01:00
}
#map {
height: 300px;
2016-05-19 15:01:28 +01:00
}
/* media queries */
@media (min-width: 700px) {
main {
margin-left: 10em;
margin-right: 10em;
}
2016-05-19 15:01:28 +01:00
footer {
margin-left: 13em;
margin-right: 13em;
}
2016-05-19 15:01:28 +01:00
.youtube {
width: 640px;
height: 360px;
}
2016-05-19 15:01:28 +01:00
}
@media (max-width: 699px) {
main {
margin-left: 10px;
margin-right: 10px;
}
article {
word-wrap: break-word;
}
footer {
margin-left: 15px;
margin-right: 15px;
}
.youtube {
width: 100%;
height: auto;
}
2016-05-19 15:01:28 +01:00
}