kiwix-js-pwa/www/-/s/css_modules/newstyle_main_page.css
Jaifroid db684283c8 Fix load of masonry-style images in SW mode
Former-commit-id: e4703568bf7362a0fa4bfd6b5df51321fe3a1f47 [formerly 47d30e59bdf0c86659516da06b78d9ac445a0524 [formerly 2f9bb8b502bfb85791951f430537c5faef0ff473]]
Former-commit-id: 96b4d17f20d6a2786f53b70bf250c4f7bd8b57a4
Former-commit-id: f9adb872a9280a98e0221c3a738fdec5a63cac77
2021-01-01 18:28:55 +00:00

166 lines
2.5 KiB
CSS

html {
box-sizing: border-box;
height: 100%;
}
/* *,
*:before,
*:after {
box-sizing: inherit;
} */
body {
margin: 0;
border-width: 0;
padding: 0;
display: flex;
justify-content: center;
}
h1,
h2 {
color: #333;
text-shadow: #1114 1px 1px 1px;
text-align: center;
border-bottom: none;
padding: 0;
}
a {
text-decoration: none;
}
#content {
width: 100%;
overflow: hidden;
font-size: 1em;
background: black;
}
#list {
padding: 40px;
background: white;
}
.nojs #content {
column-count: 4;
column-gap: 0;
}
.item {
display: block;
position: relative;
overflow: hidden;
}
.nojs #content .item {
display: inline-block;
width: 100%;
}
.item img {
width: 100%;
height: auto;
transition: all 0.3s;
transform: scale(1);
}
.item:hover img {
transform: scale(1.1);
}
.item figure {
margin: 0;
}
.item figcaption {
position: absolute;
bottom: 0;
width: 100%;
vertical-align: bottom;
background: rgba(48, 48, 48, 0.5);
color: white;
padding: 0.6em;
font-weight: bold;
transition: all 0.3s;
transform: scale(1);
}
/* .item:hover figcaption {
transform: scale(1);
bottom: 50%;
} */
#footer {
margin: 0;
}
#footer ul {
margin: 0;
margin-left: 10%;
}
@media only screen and (min-width: 1024px) {
h1 {
font-size: 6vw;
}
h2 {
font-size: 4vw;
}
#content .item {
width: 25%;
}
.nojs #content {
column-count: 4;
}
ul {
column-count: 4;
}
}
@media only screen and (max-width: 1023px) and (min-width: 768px) {
h1 {
font-size: 6vw;
}
h2 {
font-size: 4vw;
}
#content {
font-size: 1em;
}
#content .item {
width: 33.3333%;
}
.nojs #content {
column-count: 3;
}
ul {
column-count: 2;
}
#footer ul li {
font-size: 0.9em;
}
}
@media only screen and (max-width: 767px) {
h1 {
font-size: 7vw;
}
h2 {
font-size: 5vw;
}
#content {
font-size: 1.2em;
}
#content .item {
width: 50%
}
.nojs #content {
column-count: 2;
}
ul {
column-count: 1;
}
#footer ul li {
font-size: 1em;
}
}