2
0
Fork 0
inspin.io/assets/style/pages/article/sidebar.css

58 lines
946 B
CSS

.post .content .sidebar {
grid-column: 1;
grid-row: 1 / span 99;
height: 100%;
padding: 2rem 2rem .55rem .3rem;
.links {
position: sticky;
top: 2rem;
list-style-type: none;
padding: 0;
margin: 0;
.toc {
padding: 1.25rem 0 .75rem 0;
span {
font-size: 1rem;
font-weight: 700;
text-transform: uppercase;
line-height: 1.5rem;
}
}
h4 {
padding: 1.05rem 0 .5rem 0;
margin: 0;
a {
font-size: 1rem;
font-weight: 700;
text-transform: uppercase;
&:hover {
text-decoration: none;
}
}
}
a {
display: inline-block;
font-size: .9rem;
font-weight: 300;
margin: .25rem 1rem .25rem 0;
&:hover {
text-decoration: underline;
}
}
}
}
@media only screen and (--viewport-4) {
.post .content .sidebar {
display: none;
}
}