170 lines
2.5 KiB
SCSS
170 lines
2.5 KiB
SCSS
#toplinks {
|
|
box-sizing: content-box;
|
|
transition: all ease 0.2s;
|
|
left: 79vw;
|
|
top: -1rem;
|
|
font-size: 90%;
|
|
width: 15vw;
|
|
text-align: center;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
font-size: 90%;
|
|
}
|
|
|
|
.site-header {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 100;
|
|
#header {
|
|
transition: all ease 0.2s;
|
|
margin-top: 1rem;
|
|
margin-bottom: 2rem;
|
|
h1 {
|
|
margin-top: 0.4rem;
|
|
a {
|
|
transition: all ease 0.2s;
|
|
padding-left: 100px;
|
|
background: url(img/logo.png) 20px center no-repeat;
|
|
background-size: 60px;
|
|
height: 60px;
|
|
line-height: 60px;
|
|
display: block;
|
|
color: white;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
div#nav {
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
width: 100%;
|
|
max-width: none;
|
|
text-align: right;
|
|
padding-right: 1rem;
|
|
border-bottom: 1px solid #aaa;
|
|
z-index: 10;
|
|
margin-top: 0;
|
|
& > ul {
|
|
transition: all ease 0.2s;
|
|
margin-top: 2rem;
|
|
margin-bottom: 2rem;
|
|
li > a {
|
|
font-weight: normal;
|
|
}
|
|
}
|
|
}
|
|
|
|
div#main-content-wrapper {
|
|
z-index: 0;
|
|
padding-top: 8rem;
|
|
}
|
|
|
|
body.has-picture {
|
|
div#main-content-wrapper {
|
|
padding-top: 1rem;
|
|
}
|
|
|
|
.site-nav::after {
|
|
transition: all ease 0.2s;
|
|
top: -2rem;
|
|
@media screen and ($max-mobile-viewport) {
|
|
top: -16px;
|
|
height: 100px;
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
|
|
body.scrolled {
|
|
#toplinks {
|
|
top: -2rem;
|
|
}
|
|
.site-header #header,
|
|
div#nav > ul {
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
.site-header #header h1 a {
|
|
height: 40px;
|
|
line-height: 40px;
|
|
background-position: 10px center;
|
|
background-size: 40px;
|
|
}
|
|
}
|
|
|
|
#logo a {
|
|
color: $primary-color;
|
|
font-weight: normal;
|
|
}
|
|
|
|
@media screen and ($max-mobile-viewport) {
|
|
div#nav, .site-header {
|
|
background: $darkpink;
|
|
text-align: left;
|
|
position: static;
|
|
width: auto;
|
|
padding-right: 0;
|
|
border-bottom: 0;
|
|
#header h1 {
|
|
margin-top: 0rem;
|
|
}
|
|
#header h1 a {
|
|
padding-left: 0;
|
|
text-indent: -10000px;
|
|
}
|
|
}
|
|
#nav-wrapper {
|
|
margin-top: -68px;
|
|
}
|
|
|
|
.site-header #header,
|
|
div#nav > ul {
|
|
margin-top: 2rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
div#main-content-wrapper {
|
|
padding-top: 0;
|
|
}
|
|
|
|
#toplinks {
|
|
right: 1vw;
|
|
left: auto;
|
|
top: -2rem;
|
|
width: auto;
|
|
}
|
|
}
|
|
|
|
div.cell,
|
|
div.comment-field {
|
|
&.fond-vert, &.fond-marron {
|
|
&.comment-field {
|
|
padding: 0.5rem 0.5rem;
|
|
}
|
|
padding-bottom: 0.5rem;
|
|
color: white;
|
|
h2:first-child, h3:first-child {
|
|
margin-top: 0;
|
|
color: white;
|
|
font-weight: normal;
|
|
border-color: white;
|
|
}
|
|
}
|
|
&.fond-vert {
|
|
background: $darkpink;
|
|
h2:first-child, h3:first-child {
|
|
background: $darkpink;
|
|
}
|
|
}
|
|
&.fond-marron {
|
|
background: #805838;
|
|
h2:first-child, h3:first-child {
|
|
background: #805838;
|
|
}
|
|
}
|
|
}
|