mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-12 13:58:28 -04:00

# Conflicts: # KiwixWebApp.jsproj # www/A/Wikipedia%3AWikiProject_Medicine/Open_Textbook_of_Medicine Former-commit-id: 1433c8fec1950d723b023f99666fca35a34900de [formerly 1377fc96f1d031e6dd04a6636f31dee4f97ea020 [formerly 460a8c555be669dc2e4d5fbfa521d20316fd4d40]] Former-commit-id: 9b12df0fbc5088f1cb95545e7d57578debf775ec Former-commit-id: ef2d81d19e5e4d613f701438f5bc84c97e6424d3
162 lines
2.4 KiB
CSS
162 lines
2.4 KiB
CSS
html {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* *,
|
|
*:before,
|
|
*:after {
|
|
box-sizing: inherit;
|
|
} */
|
|
|
|
body {
|
|
margin: 0;
|
|
border-width: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
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 {
|
|
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;
|
|
}
|
|
} |