LoveIt/assets/css/_core/_media.scss

197 lines
4.1 KiB
SCSS
Raw Normal View History

2019-08-11 19:36:19 +02:00
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
.navbar {
display: none;
2019-08-11 19:36:19 +02:00
}
.post-toc {
display: none;
}
2019-08-11 19:36:19 +02:00
.navbar-mobile {
display: block;
2019-08-11 19:36:19 +02:00
position: fixed;
width: 100%;
z-index: 100;
transition: all 0.3s ease 0s;
2019-08-11 19:36:19 +02:00
.container {
padding: 0;
margin: 0;
height: 4.5em;
line-height: 4.5em;
background: $global-background-color;
2019-08-11 19:36:19 +02:00
.navbar-header {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
font-size: 18px;
2019-08-11 19:36:19 +02:00
padding-right: 1em;
padding-left: 1em;
box-sizing: border-box;
.menu-toggle {
cursor: pointer;
line-height: 4.5em;
2019-08-11 19:36:19 +02:00
span {
display: block;
background: #000;
width: 36px;
height: 2px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-transition: .2s margin .2s, .2s transform;
-moz-transition: .2s margin .2s, .2s transform;
transition: .2s margin .2s, .2s transform;
2019-08-11 19:36:19 +02:00
.dark-theme & {
background: $global-font-color-dark;
2019-08-11 19:36:19 +02:00
}
}
span:nth-child(1) {
margin-bottom: 8px;
}
span:nth-child(3) {
margin-top: 8px;
}
&.active {
span {
-webkit-transition: .2s margin, .2s transform .2s;
-moz-transition: .2s margin, .2s transform .2s;
transition: .2s margin, .2s transform .2s;
2019-08-11 19:36:19 +02:00
}
span:nth-child(1) {
-moz-transform: rotate(45deg) translate(4px, 6px);
-ms-transform: rotate(45deg) translate(4px, 6px);
-webkit-transform: rotate(45deg) translate(4px, 6px);
transform: rotate(45deg) translate(4px, 6px);
}
span:nth-child(2) {
opacity: 0
}
span:nth-child(3) {
-moz-transform: rotate(-45deg) translate(8px, -10px);
-ms-transform: rotate(-45deg) translate(8px, -10px);
-webkit-transform: rotate(-45deg) translate(8px, -10px);
transform: rotate(-45deg) translate(8px, -10px);
}
}
}
}
.menu {
text-align: center;
background: $global-background-color;
border-top: 2px solid $global-font-color;
2019-08-11 19:36:19 +02:00
display: none;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1), 0px 4px 8px rgba(0, 0, 0, 0.1);
a {
display: block;
line-height: 2.5em;
}
&.active {
display: block;
}
.dark-theme & {
background: $global-background-color-dark;
border-top: 2px solid $global-font-color-dark;
2019-08-11 19:36:19 +02:00
}
}
.dark-theme & {
background: $global-background-color-dark;
}
2019-08-11 19:36:19 +02:00
}
}
#dynamic-to-top {
display: none;
2019-08-11 19:36:19 +02:00
}
.post-warp {
.categories-card {
.card-item {
width: 95%;
}
}
}
}
/* iPads (portrait) ----------- */
2019-08-11 19:36:19 +02:00
2019-08-21 18:32:52 +02:00
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation:portrait) {
.post-warp {
max-width: 600px;
2019-08-21 18:32:52 +02:00
}
.navbar-mobile {
display: none;
2019-08-21 18:32:52 +02:00
}
.post-toc {
display: none;
}
.post-toc-mobile {
display: block;
2019-08-21 18:32:52 +02:00
}
}
/* iPads (landscape) ----------- */
2019-08-21 18:32:52 +02:00
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation:landscape) {
.post-warp {
max-width: 560px;
}
.post-toc {
display: block;
margin-left: 580px;
}
2019-08-19 21:01:15 +02:00
.navbar-mobile {
display: none;
2019-08-19 21:01:15 +02:00
}
.post-toc-mobile {
display: none;
2019-08-19 21:01:15 +02:00
}
}
2019-08-11 19:36:19 +02:00
/* Desktops and laptops ----------- */
@media only screen and (min-width: 1224px) {
.navbar-mobile {
display: none;
2019-08-19 21:01:15 +02:00
}
.post-toc-mobile {
display: none;
2019-08-11 19:36:19 +02:00
}
}
/* Large screens ----------- */
@media only screen and (min-width: 1824px) {
/* Styles */
2019-08-19 21:01:15 +02:00
.navbar-mobile {
display: none;
2019-08-19 21:01:15 +02:00
}
.post-toc-mobile {
display: none;
2019-08-19 21:01:15 +02:00
}
2019-08-11 19:36:19 +02:00
}