tale/_sass/_layout.scss

92 lines
1.2 KiB
SCSS
Raw Normal View History

.container {
margin: 0 auto;
max-width: 800px;
width: 80%;
}
2017-03-11 05:09:18 +00:00
2017-03-22 07:47:40 +00:00
main,
footer,
.nav-container {
margin: 0 auto;
max-width: 800px;
width: 80%;
}
2017-03-11 05:09:18 +00:00
2017-03-22 07:47:40 +00:00
.nav {
2017-03-24 03:10:58 +00:00
box-shadow: 0 2px 2px -2px $shadow-color;
2017-03-22 07:47:40 +00:00
overflow: auto;
&-container {
margin: 1rem auto;
position: relative;
text-align: center;
2017-03-11 05:09:18 +00:00
}
2017-03-22 07:47:40 +00:00
&-title {
@include transition(all .2s ease-out);
2017-03-11 05:09:18 +00:00
color: $default-color;
display: inline-block;
2017-03-22 07:47:40 +00:00
margin: 0;
padding-right: .2rem;
2017-03-11 05:09:18 +00:00
2017-03-12 10:44:45 +00:00
&:hover,
&:focus {
2017-03-11 05:09:18 +00:00
opacity: .6;
}
}
2017-03-22 07:47:40 +00:00
ul {
list-style-type: none;
margin: 1rem 0 0;
padding: 0;
text-align: center;
}
2017-03-22 07:47:40 +00:00
li {
@include transition(all .2s ease-out);
color: $default-color;
display: inline-block;
opacity: .6;
padding: 0 2rem 0 0;
&:last-child {
padding-right: 0;
}
&:hover,
&:focus {
opacity: 1;
}
}
2017-03-22 07:47:40 +00:00
a {
color: $default-color;
font-family: $sans-font;
}
2017-03-22 07:47:40 +00:00
}
2017-03-22 07:47:40 +00:00
@media (min-width: 600px) {
.nav {
&-container {
text-align: left;
}
2017-03-22 07:47:40 +00:00
ul {
bottom: 0;
position: absolute;
right: 0;
}
2017-03-11 05:09:18 +00:00
}
}
2017-03-12 10:44:45 +00:00
footer {
font-family: $palatino;
padding: 2rem 0;
2017-03-15 04:27:59 +00:00
text-align: center;
2017-03-12 10:44:45 +00:00
span {
color: $default-color;
2017-03-15 04:27:59 +00:00
font-size: .8rem;
2017-03-12 10:44:45 +00:00
}
}