cityuni-webserver/base.css

325 lines
6.8 KiB
CSS
Raw Permalink Normal View History

/*
This file is (C) Captain ALM
Under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License
*/
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
main{
2022-07-29 21:55:32 +01:00
padding-top: 70px;
padding-left: 6px;
}
.no-dec{
text-decoration: none;
}
.no-lst-style{
list-style: none;
}
.centered{
text-align: center;
}
.content > p{
word-break: break-word;
-ms-word-wrap: break-word;
word-wrap: break-word;
margin-top: 0.5em;
margin-bottom: 0.5em;
}
.header{
position: fixed;
top: 0;
width: 100%;
z-index: 100;
2022-07-29 22:12:38 +01:00
border-style: solid;
border-width: 0 0 2px;
}
.home-button, .sort-button{
display: inline-block;
width: 64px;
2022-07-29 21:55:32 +01:00
height: 62px;
overflow: hidden;
text-align: center;
}
.sort-button{
cursor: pointer;
}
.home-button > div, .sort-button > div{
display: inline;
2022-07-29 21:55:32 +01:00
font-size: 48px;
padding: 10px;
vertical-align: middle;
}
.nav{
width: 100%;
height: 100%;
overflow: hidden;
max-height: 0;
}
.so-pane{
display: none;
overflow: hidden;
position: fixed;
max-height: 0;
}
2022-07-29 21:09:48 +01:00
.so-pane > form > div{
2022-07-29 20:15:31 +01:00
display: table-row;
background-color: transparent;
box-sizing: inherit;
max-width: 100%;
width: 100%;
}
2022-07-29 21:09:48 +01:00
.so-pane > form > div > div, .so-pane > form > div > span{
2022-07-29 20:15:31 +01:00
background-color: transparent;
2022-07-29 21:09:48 +01:00
box-sizing: inherit;
2022-07-29 19:50:52 +01:00
padding: 2px;
2022-07-29 20:15:31 +01:00
text-align: center;
vertical-align: middle;
2022-07-29 19:50:52 +01:00
}
2022-07-29 21:09:48 +01:00
.so-pane > form > div > div{
2022-07-29 20:45:09 +01:00
display: table-cell;
max-width: 50%;
width: 50%;
}
2022-07-29 21:35:51 +01:00
.so-pane > form > div > span{
2022-07-29 20:45:09 +01:00
display: block;
max-width: 100%;
width: 100%;
}
2022-07-29 20:22:07 +01:00
.so-pane-full{
2022-07-29 20:29:08 +01:00
display: table-caption !important;
caption-side: bottom;
}
2022-07-29 21:35:51 +01:00
.so-pane > form > div > * > *{
2022-07-29 21:44:21 +01:00
max-width: 100%;
width: 100%;
2022-07-29 20:15:31 +01:00
vertical-align: middle;
font-size: 16px;
2022-07-29 20:29:08 +01:00
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
2022-07-29 21:35:51 +01:00
.so-pane > form > div > div > *{
text-align: left;
}
2022-07-29 21:09:48 +01:00
.so-pane > form > div > div > label{
2022-07-29 20:22:07 +01:00
background-color: transparent;
text-align: center;
}
.nav-menu, .sort-menu{
display: none;
}
.menu a{
display: block;
2022-07-29 21:55:32 +01:00
padding: 22px 18px;
}
.hmb{
cursor: pointer;
float: right;
background-color: transparent;
2022-07-29 21:55:32 +01:00
padding: 30px 20px;
}
.hmb-line{
display: block;
height: 2px;
position: relative;
width: 24px;
}
.hmb-line::before, .hmb-line::after{
content: '';
display: block;
height: 100%;
position: absolute;
transition: all .1s ease-out;
width: 100%;
}
.hmb-line::before{
top: 5px;
}
.hmb-line::after{
top: -5px;
}
.nav-menu:checked ~ nav, .nav-open{
max-height: 100%;
}
.nav-menu:checked ~ .hmb .hmb-line, .nav-open-hmb .hmb-line{
background: transparent;
}
.nav-menu:checked ~ .hmb .hmb-line::before, .nav-open-hmb .hmb-line::before{
transform: rotate(-45deg);
top:0;
}
.nav-menu:checked ~ .hmb .hmb-line::after, .nav-open-hmb .hmb-line::after{
transform: rotate(45deg);
top:0;
}
.sort-menu:checked ~ .so-pane, .so-pane-open{
2022-07-29 21:19:21 +01:00
display: block;
2022-07-29 21:55:32 +01:00
z-index: 101;
box-sizing: content-box;
position: fixed;
2022-07-29 21:19:21 +01:00
text-align: center;
2022-07-29 22:20:44 +01:00
top: 66px;
2022-07-29 21:28:18 +01:00
left: 136px;
max-height: 100%;
2022-07-29 21:48:08 +01:00
width: 230px;
height: auto;
2022-07-29 21:43:06 +01:00
-webkit-border-bottom-left-radius: 8px;
-webkit-border-bottom-right-radius: 8px;
-moz-border-radius-bottomleft: 8px;
-moz-border-radius-bottomright: 8px;
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
2022-07-29 21:28:18 +01:00
padding: 4px;
2022-07-29 21:23:35 +01:00
border-style: solid;
2022-07-29 21:43:06 +01:00
border-width: 0 2px 2px;
2022-07-29 21:23:35 +01:00
overflow: hidden;
2022-07-29 21:19:21 +01:00
}
.sort-menu:checked ~ .so-pane > form, .so-pane-open > form{
display: table;
box-sizing: inherit;
}
2022-07-29 16:09:24 +01:00
.main-box > div, footer > p{
2022-07-29 17:00:50 +01:00
max-width: 100%;
2022-07-29 16:09:24 +01:00
margin: 3px 0;
padding: 2px;
box-sizing: content-box;
}
.item-table{
display: table;
box-sizing: content-box;
background-color: transparent;
2022-07-29 19:15:16 +01:00
-webkit-border-radius: 32px;
-moz-border-radius: 32px;
border-radius: 32px;
border-width: 1px;
border-style: solid;
2022-07-29 16:09:24 +01:00
}
2022-07-29 16:16:22 +01:00
.flex-col{
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-box-orient: vertical;
-moz-box-orient: vertical;
-webkit-box-direction: normal;
-moz-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-align-content: center;
align-content: center;
2022-07-29 17:00:50 +01:00
max-width: 100%;
2022-07-29 16:16:22 +01:00
width: 100%;
2022-07-29 19:50:52 +01:00
overflow: hidden;
2022-07-29 16:16:22 +01:00
}
.item-table > div{
display: table-row;
box-sizing: inherit;
2022-07-29 18:56:46 +01:00
max-width: 100%;
2022-07-29 20:15:31 +01:00
width: 100%;
}
2022-07-29 16:16:22 +01:00
.flex-row, .item-table > div{
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-box-orient: horizontal;
-moz-box-orient: horizontal;
-webkit-box-direction: normal;
-moz-box-direction: normal;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
2022-07-29 16:21:18 +01:00
-ms-flex-wrap: wrap;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
2022-07-29 16:16:22 +01:00
-webkit-justify-content: center;
justify-content: center;
2022-07-29 18:56:46 +01:00
max-width: 100%;
2022-07-29 20:15:31 +01:00
width: 100%;
2022-07-29 19:50:52 +01:00
overflow: hidden;
2022-07-29 16:16:22 +01:00
}
.item-table > div > div > div{
padding: 2px;
}
2022-07-29 20:15:31 +01:00
.item-table-caption, .so-pane-caption{
display: table-caption !important;
caption-side: bottom;
}
2022-07-29 20:15:31 +01:00
.item-table-full, .item-table-360, .item-table-caption, .so-pane-caption{
background-color: transparent;
box-sizing: inherit;
}
.item-table-full{
display: table-cell;
vertical-align: top;
width: 100%;
}
.item-table-360{
display: table-cell;
vertical-align: middle;
2022-07-29 17:00:50 +01:00
max-width: 360px;
width: 360px;
overflow: hidden;
text-align: center;
}
.image-box > a{
border-style: solid;
border-width: 1px;
margin: 2px;
}
@media (min-width: 560px){
2022-07-29 22:12:38 +01:00
.main-box > div{
padding: 12px;
}
footer > p{
padding: 4px;
}
2022-07-29 16:19:52 +01:00
.item-table > div{
2022-07-29 16:21:18 +01:00
-ms-flex-wrap: nowrap;
-webkit-flex-wrap: nowrap;
flex-wrap: nowrap;
2022-07-29 16:19:52 +01:00
}
.item-table-full{
2022-07-29 17:00:50 +01:00
max-width: -webkit-calc(100% - 361px);
max-width: -moz-calc(100% - 361px);
max-width: calc(100% - 361px);
2022-07-29 16:19:52 +01:00
width: -webkit-calc(100% - 361px);
width: -moz-calc(100% - 361px);
width: calc(100% - 361px);
}
.image-box > a{
border-width: 4px;
margin: 10px;
}
}
@media (min-width: 640px){
.nav{
max-height: none;
top: 0;
position: relative;
float: right;
width: auto;
}
.menu li{
float: left;
}
.menu a:hover{
background-color: transparent;
}
.hmb{
display: none;
}
2022-07-29 18:56:46 +01:00
}
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
.item-table-full, .item-table-360 {
display: block !important;
}
.item-table-caption{
display: block !important;
}
}