LoveIt/assets/css/_core/_media.scss

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