unofficialxkcdviewer/assets/html/styles.css

214 lines
4.4 KiB
CSS

html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 400;
src: local('Lato Regular'), local('Lato-Regular'), url(Lato400.woff) format('woff');
}
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 700;
src: local('Lato Bold'), local('Lato-Bold'), url(Lato700.woff) format('woff');
}
*, *:before, *:after {
box-sizing: border-box;
}
*:focus {
outline: none;
}
body {
-webkit-user-select: none;
line-height: 1.35em;
font-size: 20px;
font-family: "Lato", "Roboto", sans-serif;
background-color: #fff;
color: #444;
-webkit-font-smoothing: subpixel-antialiased;
overflow: hidden;
-webkit-transform: translateZ(0);
}
#loading {
text-align: center;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
padding: 200px 0;
line-height: 3em;
}
.loadingdots {
width: 54px;
height: 36px;
display: inline-block;
}
.loadingdots:after {
content: '';
display: inline-block;
margin: 0 5px 0 -46px;
width: 8px;
height: 8px;
background-color: transparent;
border-radius: 10px;
box-shadow: 10px 0 0 rgba(68, 68, 68, 1), 25px 0 0 rgba(68, 68, 68, 1), 40px 0 0 rgba(68, 68, 68, 1);
-webkit-animation: 0.75s loadingdots infinite;
}
@-webkit-keyframes loadingdots {
0% {
box-shadow: 10px 0 0 1px rgba(68, 68, 68, 1), 25px 0 0 rgba(68, 68, 68, 0.2), 40px 0 0 rgba(68, 68, 68, 0.2);
}
33.33% {
box-shadow: 10px 0 0 rgba(68, 68, 68, 0.2), 25px 0 0 1px rgba(68, 68, 68, 1), 40px 0 0 rgba(68, 68, 68, 0.2);
}
66.66% {
box-shadow: 10px 0 0 rgba(68, 68, 68, 0.2), 25px 0 0 rgba(68, 68, 68, 0.2), 40px 0 0 1px rgba(68, 68, 68, 1);
}
100% {
box-shadow: 10px 0 0 1px rgba(68, 68, 68, 1), 25px 0 0 rgba(68, 68, 68, 0.2), 40px 0 0 rgba(68, 68, 68, 0.2);
}
}
a {
color: #44e;
text-decoration: inherit;/*
-webkit-transition: 0.5s color;*/
}/*
a:hover, a:focus {
color: #449;
}*/
a:active {
color: #449;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 900;
font-size: 30px;
line-height: 1.4em;
padding: 0.222em 0 0.222em 0;
}
h1 {
font-size: 30px;
}
h2 {
font-size: 26px;
}
h3 {
font-size: 24px;
}
h4 {
font-size: 28px;
}
h5 {
font-size: 26px;
}
h6 {
font-size: 24px;
}
p {
padding: 8px 0;
}
/*
ol, ul {
list-style: decimal;
padding: 10px 30px;
}
ul {
list-style: disc;
}
*/
hr {
height: 2px;
margin: 40px auto;
max-width: 180px;
border: none;
background-color: #444;
}
pre, code {
font-family: "Monaco";
}
pre {
padding: 20px;
word-wrap: break-word;
}
strong {
font-weight: 700;
}
em {
font-style: italic;
}
blockquote {
padding: 30px;
font-style: italic;
}
/*
img {
width: 100%;
border-radius: 4px;
}
*/
/* Derp code */
/*
.swiper-slide {
width: 360px;
height: 360px;
}
*/
#wrapper {
position: relative;
width: 300px;
height: 300px;
overflow: hidden;
/* Prevent the callout on tap-hold and text selection */
-webkit-touch-callout: none;
-webkit-user-select: none;
user-select: none;
/* Prevent text resize on orientation change, useful for web-apps */
-webkit-text-size-adjust: none;
text-size-adjust: none;
}
#scroller {
position: absolute;
/* Prevent elements to be highlighted on tap */
-webkit-tap-highlight-color: rgba(0,0,0,0);
/* Put the scroller into the HW Compositing layer right from the start */
-webkit-transform: translateZ(0);
transform: translateZ(0);
}
#scroller {
/*height: 100%;*/
}
#wrapper ul {
list-style: none;
font-size: 0;
/*height: 100%;*/
}
#wrapper li {
/*display: inline-block;*/
float: left;
width: 100%;
font-size: 20px;
height: 100%;
}
#wrapper li .iwrapper {
height: 440px;
padding: 30px;
}
#wrapper li .iwrapper .image {
width: 100%;
height: 100%;
background-position: center;
background-repeat: no-repeat;
background-size: contain;
}