iwmlib/css/index.css

160 lines
3.5 KiB
CSS
Raw Normal View History

2019-05-22 16:02:17 +02:00
html {
height: 100%;
width: 100%;
2019-07-05 08:43:23 +02:00
margin: 0;
2019-05-22 16:02:17 +02:00
}
2019-07-05 08:43:23 +02:00
body {
margin: 0;
padding: 0;
2019-05-22 16:02:17 +02:00
width: 100%;
height: 100%;
font-family: sans-serif;
font-size: 22pt;
-webkit-tap-highlight-color: #ccc;
2019-07-05 08:43:23 +02:00
background-color: #ddd;
2019-05-22 16:02:17 +02:00
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-webkit-overflow-scrolling: auto;
user-select: none;
-webkit-hyphens: auto;
hyphens: auto;
2019-07-05 08:43:23 +02:00
2019-05-22 16:02:17 +02:00
/* https://davidwalsh.name/font-smoothing */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
2019-07-05 08:43:23 +02:00
h3 {
2019-05-22 16:02:17 +02:00
color: white;
padding: 4px;
margin: 2px;
2019-07-05 08:43:23 +02:00
background-color: rgba(0, 0, 15, 0.5);
2019-05-22 16:02:17 +02:00
}
a { text-decoration: none; }
2019-07-05 08:43:23 +02:00
div.wrapper {
2019-05-22 16:02:17 +02:00
overflow: hidden;
width: 100%;
height: 100%;
transform-origin: 0% 100%;
transform: scale(0.25);
}
/* Color animation from https://www.tjvantoll.com/2012/02/20/css3-color-animations/ */
@-webkit-keyframes color_change {
2019-07-05 08:43:23 +02:00
from { background-color: rgba(0, 0, 0, 0); }
to { background-color: red; }
2019-05-22 16:02:17 +02:00
}
2019-07-05 08:43:23 +02:00
2019-05-22 16:02:17 +02:00
@-moz-keyframes color_change {
2019-07-05 08:43:23 +02:00
from { background-color: rgba(0, 0, 0, 0); }
to { background-color: red; }
2019-05-22 16:02:17 +02:00
}
2019-07-05 08:43:23 +02:00
2019-05-22 16:02:17 +02:00
@-ms-keyframes color_change {
2019-07-05 08:43:23 +02:00
from { background-color: rgba(0, 0, 0, 0); }
to { background-color: red; }
2019-05-22 16:02:17 +02:00
}
2019-07-05 08:43:23 +02:00
2019-05-22 16:02:17 +02:00
@-o-keyframes color_change {
2019-07-05 08:43:23 +02:00
from { background-color: rgba(0, 0, 0, 0); }
to { background-color: red; }
2019-05-22 16:02:17 +02:00
}
2019-07-05 08:43:23 +02:00
2019-05-22 16:02:17 +02:00
@keyframes color_change {
2019-07-05 08:43:23 +02:00
from { background-color: rgba(0, 0, 0, 0); }
to { background-color: red; }
2019-05-22 16:02:17 +02:00
}
/*** CSS taken from https://medium.com/@jamesfuthey/simulating-the-creation-of-website-thumbnail-screenshots-using-iframes-7145269891db#.7v7fshos5 ***/
2019-07-05 08:43:23 +02:00
.thumbnail {
2019-05-22 16:02:17 +02:00
position: relative;
-ms-zoom: 0.25;
-moz-transform: scale(0.25);
-moz-transform-origin: 0 0;
-o-transform: scale(0.25);
-o-transform-origin: 0 0;
-webkit-transform: scale(0.25);
-webkit-transform-origin: 0 0;
}
2019-07-05 08:43:23 +02:00
.thumbnail::after {
2019-05-22 16:02:17 +02:00
content: "";
display: block;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: -1024px; /*** This is a deviation from the above mentioned
jamesfuthey blog. Otherwise touches would go through on iPad. ***/
}
2019-07-05 08:43:23 +02:00
iframe {
pointer-events: none;
}
.thumbnail iframe {
2019-05-22 16:02:17 +02:00
width: 1024px;
height: 624px;
2019-07-05 08:43:23 +02:00
-webkit-animation-delay: 3s; /* Safari 4.0 - 8.0 */
2019-05-22 16:02:17 +02:00
animation-delay: 3s;
-webkit-animation: color_change 1s infinite alternate;
-moz-animation: color_change 1s infinite alternate;
-ms-animation: color_change 1s infinite alternate;
-o-animation: color_change 1s infinite alternate;
animation: color_change 1s infinite alternate;
}
2019-07-05 08:43:23 +02:00
.thumbnail-container {
2019-05-22 16:02:17 +02:00
width: calc(1024px * 0.25);
height: calc(624px * 0.25);
display: inline-block;
overflow: hidden;
position: relative;
box-shadow: 2px 2px 10px #000;
2019-07-05 08:43:23 +02:00
color: #ddd;
2019-05-22 16:02:17 +02:00
}
2019-07-05 08:43:23 +02:00
div.preview {
2019-05-22 16:02:17 +02:00
display: inline-block;
margin: 22px;
2019-07-05 08:43:23 +02:00
padding: 0;
2019-05-22 16:02:17 +02:00
color: #333;
font-size: 12pt;
text-align: center;
width: 256px;
height: 196px;
}
2019-07-05 08:43:23 +02:00
div.title {
2019-05-22 16:02:17 +02:00
padding-top: 8px;
width: 256px;
height: 20px;
text-overflow: ellipsis;
overflow: hidden;
}
2019-07-05 08:43:23 +02:00
.container {
margin: 0;
padding: 0;
2019-05-22 16:02:17 +02:00
border: 2pt #000;
min-height: 100%;
min-width: 100%;
display: -webkit-flex;
-webkit-align-items: flex-end;
align-items: flex-end;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-align-content: flex-end;
align-content: flex-end;
}
/** See https://github.com/electron/electron/issues/4420 */
::selection {
background: transparent;
}