Howto/themes/grav-theme-howto/css/media-queries.css

234 lines
3.6 KiB
CSS
Raw Normal View History

/* screenwidth less than 1000px
------------------------------------*/
@media only screen and (max-width: 1150px) {
2019-08-13 15:09:25 +02:00
body {
font-size: 85%;
}
/* sidebar */
#sidebar {
display: none;
}
2020-01-20 11:14:45 +01:00
2020-01-20 11:14:45 +01:00
#flex .columns {
width: 50%;
}
2019-08-13 15:09:25 +02:00
}
/* mobile wide/smaller tablets
------------------------------------*/
@media only screen and (max-width: 830px) {
2019-08-13 15:09:25 +02:00
2020-02-12 18:11:10 +01:00
a {
font-size: 85%;
}
2020-02-12 18:12:01 +01:00
strong {
font-size: 85%;
}
2020-02-12 18:00:39 +01:00
.narrow {
2020-02-16 15:12:04 +01:00
max-width: 90%;
2019-08-13 15:09:25 +02:00
margin: 0 auto
}
/* breadcrumbs display improvments */
#breadcrumbs {
height: 1rem;
line-height: 1.2rem;
padding-left: 1rem;
2020-02-16 07:34:27 +01:00
height: auto;
}
#breadcrumbs span {
display: inline-block;
padding: 0 0.2rem;
}
#breadcrumbs i {
width: 10px;
}
2020-02-15 19:05:20 +01:00
/* Simple search plugin
------------------------------------*/
.simplesearch {
width: 90%;
margin: 0 auto;
padding: 20px;
}
2020-02-15 19:05:20 +01:00
.search-item {
margin-left: 10px;
2020-02-15 19:05:20 +01:00
margin-bottom: 10px;
}
.search-image {
}
.search-image img {
display: none;
}
2020-02-15 19:07:27 +01:00
.search-wrapper .search-input {
width: 100%;
}
2020-02-15 19:05:20 +01:00
.search-title h3 {
color: white;
background-color: #1F5C60;
border-radius: 5px;
padding: 0.7% 2%;
}
2019-08-13 15:09:25 +02:00
/* mobile navigation
------------------------------------*/
#main-nav {
font: 12px 'opensans-bold', sans-serif;
background: transparent !important;
letter-spacing: 1.5px;
width: auto;
position: fixed;
top: 0;
right: 0;
}
.main-nav .has-children > a:after {
/*content: '\f107';*/
content: '';
}
.main-nav .has-children .has-children > a:after {
content: '';
}
#main-nav > a {
width: 48px;
height: 48px;
text-align: left;
background: #50162D;
border: none;
float: right;
text-shadow: none;
color: transparent;
position: relative;
top: 0px;
right: 30px;
}
#main-nav > a:before,
#main-nav > a:after {
position: absolute;
border: 2px solid #fff;
top: 35%;
left: 25%;
right: 25%;
content: '';
}
#main-nav > a:after { top: 60%; }
/* toggle buttons */
#main-nav:not( :target ) > a:first-of-type,
#main-nav:target > a:last-of-type {
display: block;
}
/* hide menu panel */
#main-nav ul {
height: auto;
display: none;
clear: both;
width: auto;
float: right;
position: relative;
top: 12px;
right: 0;
}
.main-nav ul li {
display: block;
letter-spacing: normal;
}
/* display menu panels */
#main-nav:target > ul#nav {
display: block;
padding: 30px 20px 20px 20px;
2019-08-13 15:09:25 +02:00
background: #50162D;
margin: -15px 30px 0px 30px;
2019-08-13 15:09:25 +02:00
clear: both;
}
2020-02-12 19:18:18 +01:00
/* Howto: Services */
2020-01-20 11:14:45 +01:00
#flex {
width: 100vw;
left: auto;
2020-02-12 17:03:18 +01:00
}
2020-01-20 11:14:45 +01:00
2020-01-20 08:18:47 +01:00
#flex .columns {
height: auto;
}
2020-01-20 11:14:45 +01:00
#flex .three {
padding-right: 60px;
margin-bottom: 20px;
}
2020-02-12 18:00:39 +01:00
.three {
min-height: auto;
2019-08-13 15:09:25 +02:00
}
.language-selector {
position: fixed;
top: -10px;
2020-01-19 11:18:19 +01:00
right: 80px;
width: 50px;
}
.language-selector .btn {
top: 35px;
font-size: 1.2rem;
padding: 19px 12px;
}
2019-08-13 15:09:25 +02:00
.language-selector ul#langSelectorList {
position: absolute;
top: 50px;
right: 0;
}
2019-08-13 15:09:25 +02:00
.language-selector .btn i {
top: 40px;
right: 20px;
}
.language-selector .dropdown-menu {
right: 150px;
top: 200px;
color: #b9a2ab;
background-color: #50162D;
border-color: #50162D;
font-size: 1.1rem;
}
.language-selector .dropdown-menu>li>a {
padding: 12px 15px;
}
2019-08-13 15:09:25 +02:00
}
/* mobile narrow
------------------------------------*/
@media only screen and (max-width: 600px) {
2019-08-13 15:09:25 +02:00
2020-02-12 18:11:10 +01:00
2019-08-13 15:09:25 +02:00
}