orgmode-to-gemini-blog/templates/styles_src/tkblog_responsive.scss
2025-10-05 15:37:55 +02:00

352 lines
No EOL
6.3 KiB
SCSS

@media only screen and (min-width: 768px) and (max-width: 959px) {
.site-header .home-link,
.main-navigation,
.site-main,
.site-footer .sidebar-inner,
.site-info {
width: 768px;
}
.site-main {
.content-area {
padding-right: 20px;
padding-right: 2rem;
width: 556px;
}
.sidebar-container {
width: 172px;
}
}
.single-attachment .content-area,
.full-width .content-area,
.one-footer-sidebar .site-footer .widget-area {
width: 748px;
}
.two-footer-sidebars .site-footer .widget-area {
width: 364px;
}
.three-footer-sidebars .site-footer .widget-area {
width: 236px;
}
}
@media only screen and (max-width: 767px) {
.site-header .home-link,
.main-navigation,
.site-main,
.site-footer .sidebar-inner,
.site-info {
margin-left: auto;
margin-right: auto;
width: 300px;
}
.site-main {
.content-area,
.sidebar-container {
margin-left: auto;
margin-right: auto;
width: 300px;
}
}
.single-attachment .content-area,
.full-width .content-area,
.one-footer-sidebar .site-footer .widget-area,
.two-footer-sidebars .site-footer .widget-area,
.three-footer-sidebars .site-footer .widget-area {
margin-left: auto;
margin-right: auto;
width: 300px;
}
.site-main .content-area {
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
margin-bottom: 46px;
margin-bottom: 4.6rem;
padding-bottom: 46px;
padding-bottom: 4.6rem;
}
.site-title {
font-size: 40px;
font-size: 4rem;
}
.custom-logo {
max-width: 80%;
}
.widget:last-child {
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
margin: 0 0 23px;
margin: 0 0 2.3rem;
padding: 0 0 23px;
padding: 0 0 2.3rem;
}
.menu-toggle {
background-color: #303030;
color: #888;
cursor: pointer;
display: inline-block;
font-family: Lato, sans-serif;
font-size: 11px;
font-size: 1.1rem;
font-weight: 400;
letter-spacing: 2px;
line-height: 1;
margin: 0;
padding: 12px 20px;
padding: 1.2rem 2rem;
text-transform: uppercase;
}
.toggled-on {
.nav-menu {
display: block;
margin-left: 0;
padding: 0;
width: 100%;
>ul {
display: block;
margin-left: 0;
padding: 0;
width: 100%;
}
}
li,
.children {
display: block;
float: none;
}
.nav-menu {
li {
>ul {
background-color: rgba(255, 255, 255, 0.05);
box-shadow: none;
display: block;
float: none;
margin-left: 20px;
opacity: 1;
position: relative;
left: auto;
top: auto;
a {
text-transform: uppercase;
width: auto;
}
}
&:hover>a {
background-color: transparent;
color: #ccc;
}
}
.children a {
background-color: transparent;
color: #ccc;
}
li a:hover,
ul a:hover {
background-color: #303030;
color: #fff;
}
}
}
ul.nav-menu,
div.nav-menu>ul {
display: none;
}
.gallery {
margin-left: 0;
}
.gallery-caption {
display: none;
}
.gallery-columns-2 .gallery-item {
max-width: 49%;
max-width: -webkit-calc(50% - 4px);
max-width: calc(50% - 4px);
}
.gallery-columns-3 .gallery-item {
max-width: 33%;
max-width: -webkit-calc(33% - 4px);
max-width: calc(33% - 4px);
}
}
@media only screen and (min-width: 480px) and (max-width: 767px) {
.site-header .home-link,
.main-navigation,
.site-main,
.site-footer .sidebar-inner,
.site-info {
width: 420px;
}
.site-main {
.content-area,
.sidebar-container {
width: 420px;
}
}
.single-attachment .content-area,
.full-width .content-area,
.one-footer-sidebar .site-footer .widget-area,
.two-footer-sidebars .site-footer .widget-area,
.three-footer-sidebars .site-footer .widget-area {
width: 420px;
}
}
.site-title,
.site-description {
color: #a1bded;
}
.site-title a {
color: #a1bded;
&:hover {
color: #a1bded;
}
}
.bottom-of-post {
margin-top: 2em;
padding-top: 1em;
border-top: solid 1px #ccc;
font-size: 0.8em;
}
blockquote {
padding: 2em;
box-sizing: border-box;
margin: 2rem 0;
font-size: 1.5em;
line-height: normal;
box-shadow: 0 3px 10px #ddd;
}
.bottom-of-post ul {
padding: 0;
margin: 0;
padding-left: 3em;
}
iframe.mastodon-embed {
width: 100%;
margin: 1em auto;
}
.entry-content a {
color: #007bff;
text-decoration: underline;
}
.entry-title {
font-size: 4rem;
}
.entry-content {
font-size: 1.5rem;
line-height: 2.45rem;
}
ul.inline {
list-style-type: none;
clear: both;
float: left;
display: block;
width: 100%;
li {
float: left;
padding: .5em;
cursor: pointer;
&:hover {
font-style: underline;
color: blue;
}
}
}
.support-message p {
margin: 0;
}
.entry-header .entry-thumbnail img {
margin: 2.3rem 0;
width: 100%;
}
@media screen and (max-width: 767px) {
blockquote {
padding: 1.5em 1em;
margin: 2rem 0;
font-size: 1em;
line-height: 2.25rem;
box-shadow: 0 3px 10px #ddd;
}
}
@media screen and (min-width: 767px) {
#main {
max-width: 1200px;
}
.site-main .content-area {
width: 690px;
}
#secondary iframe {
width: 500px;
height: 45em;
}
.site-main .sidebar-container {
width: 400px;
}
}
@media screen and (max-width: 767px) and (min-width: 480px) {
#masthead {
padding: 1rem;
}
.site-main {
width: 90%;
.sidebar-container {
width: 100%;
}
.content-area {
width: 90%;
}
}
}