1
0
Fork 0
2punny/styles/main.css

414 lines
7.4 KiB
CSS

/* Reset.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}
*, *:before, *:after {
box-sizing: border-box;
-moz-box-sizing: border-box;
}
*:focus {
outline: none;
}
body {
line-height: 1.35em;
/*line-height: 1em;*/
font-size: 20px;
font-family: "Coming Soon", sans-serif;
background-color: #fff;
color: #444;
-webkit-font-smoothing: antialiased;
-webkit-tap-highlight-color: transparent;
}
main {
margin: 0 auto;
max-width: 920px;
/*padding: 5vh 5vw;*/
min-width: 240px;
padding: 6vw;
/*padding-bottom: 10vh;*/
font-size: 17px;
font-size: calc(0.8vw + 12px);
line-height: 1.4em;
/*padding-top: 20vh;*/
padding-top: 4em;
}
main.pun {
padding: 0;
margin: 0;
max-width: none;
}
.puncontent {
font-size: 2.2em;
line-height: 1.2em;
padding: 10vh 10vw;
min-height: 80vh;
/*padding-top: 25vh;*/
padding-top: 2.7em;
}
a:not(.btn) {
color: inherit;
text-decoration: inherit;
box-shadow: 0 10px 0 -8px #444;/*
box-shadow: 0 12px 0 -10px #444;*/
/*text-shadow:
1px 0 #fff, 0 1px #fff, -1px 0 #fff, 0 -1px #fff;*//*,
1px 1px #fff, -1px 1px #fff, -1px 1px #fff, -1px -1px #fff*/
-webkit-transition: 0.5s box-shadow;
}
a:hover, a:focus, a.tapped {
box-shadow: 0 2px 0 0 #444;
}
.btn {
color: #444;
line-height: 1.2em;
color: inherit;
text-decoration: none;
display: inline-block;
border-radius: 4px;
background-color: #fff;
box-shadow: 0 0 0 0 #444 inset;
border: 2px solid #444;
padding: 0.3em;
text-align: center;
transition: 0.25s box-shadow, 0.25s color;
font-size: 1.2em;
line-height: 1em;
font-family: "Shadows Into Light Two", sans-serif;
}
.btn:hover, .btn.tapped {
box-shadow: 0 2em 0 0 #444 inset;
color: #fff;
}
.btn.disabled {
opacity: 0.8;
}
.btn.disabled:hover, .btn.disabled.tapped {
box-shadow: 0 0 0 0 #444 inset;
color: #444;
}
.noclick {
pointer-events: none;
}
.share {
padding: 20px;
text-align: center;/*
position: absolute;
bottom: 5vh;
width: 80vw;
left: 10vw;*/
}
.btn * {
vertical-align: bottom;
}
.btn i {
margin: 0 0.1em;
}
.btn span {
margin: 0 0.3em;
}
.btn[href="#facebook"] {
border-color: #3b5998 !important;
color: #3b5998;
box-shadow: 0 0 0 0 #3b5998 inset;
}
.btn[href="#facebook"]:hover, .btn[href="#facebook"].tapped {
box-shadow: 0 2em 0 0 #3b5998 inset;
color: #fff;
}
.btn[href="#twitter"] {
border-color: #00aced !important;
color: #00aced;
box-shadow: 0 0 0 0 #00aced inset;
}
.btn[href="#twitter"]:hover, .btn[href="#twitter"].tapped {
box-shadow: 0 2em 0 0 #00aced inset;
color: #fff;
}
.previous {
float: left;
}
.next {
float: right;
}
.btn.next, .btn.previous {
opacity: 0;
}
.opaque, .btn.opaque {
opacity: 1;
}
.center {
text-align: center;
}
[class^="icon-"]:before, [class*=" icon-"]:before {
width: 1em;
height: 1em;
display: inline-block;
text-align: center;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 300;
line-height: 1.4em;
padding: 0.666em 0 0.444em 0;
}
h1 {
font-size: 2em;
}
h2 {
font-size: 1.7em;
}
h3 {
font-size: 1.5em;
}
h4 {
font-size: 1.4em;
}
h5 {
font-size: 1.3em;
}
h6 {
font-size: 1.2em;
}
p {
padding: 8px 0;
}
small {
font-size: 0.8em;
line-height: 1.35em;
}
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;*/
border-bottom: 2px solid #444;
}/*
pre, code {
font-family: "Monaco";
background-color: #eee;
border: 1px solid #ddd;
font-size: 0.8em;
line-height: 1.3em;
padding: 0 2px;
border-radius: 2px;
}
pre {
background-color: #eee;
border: 1px solid #ddd;
padding: 10px;
margin: 10px;
word-wrap: break-word;
}
pre > code {
border: none;
background-color: transparent;
}*/
strong {
font-weight: 700;
}
em {
font-style: italic;
}
blockquote {
padding: 30px;
font-style: italic;
}
img {
width: 100%;
border-radius: 4px;
}
table {
margin: 20px;
}
th, td {
padding: 1px 12px;
}
th {
font-weight: 700;
}
.site-header {
position: fixed;
top: 0;
width: 100%;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;/*
height: 96px;*/
color: #fff;
background-color: #e74c3c;
/*background: -webkit-linear-gradient(-90deg, rgb(255, 165, 0), rgba(255, 165, 0, 0));*/
background-repeat: no-repeat;
font-size: 24px;
font-family: "Shadows Into Light Two", sans-serif;
}
.site-header * {
padding: 0;
margin: 0;
}
.site-header h1 {
display: inline-block;
font-weight: 400;
font-size: 1.25em;
line-height: 1em;
-webkit-box-flex: 1;
-moz-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.site-header h1 .circle {
box-shadow: none;
text-shadow: none;
height: 4em;
width: 4em;
border-radius: 2em;
position: absolute;
top: -1em;
left: 1em;
background-color: #e74c3c;
color: #fff;
text-align: center;
padding: 1.5em 0;
font-weight: 900;
transition: 0.25s color, 0.25s background-color, 0.4s box-shadow;
}
.site-header h1 .circle:hover, .site-header h1 .circle.tapped {
color: #e74c3c;
background-color: #fff;
box-shadow: 2px 2px 10px #e74c3c;
}
/*
.site-header h1 .logo {
height: 3em;
width: 3em;
background-image: url("/images/logo.png");
background-repeat: no-repeat;
background-size: 100%;
background-position: center 16px;
border-radius: 1.6em;
position: absolute;
top: -1.15em;
background-color: #e74c3c;
color: #fff;
padding: 1em;
font-weight: 900;
}*/
.site-header nav {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-align-items: center;
-moz-align-items: center;
-ms-align-items: center;
align-items: center;
/*padding-right: 5%;*/
font-size: 1em;
font-weight: 300;
line-height: 1em;
/*height: 100%;*/
padding: 0.3em 5vw;
}
.site-header nav a {
box-shadow: none !important;
text-shadow: none !important;
display: inline-block;
/*height: 44px;*/
padding: 0.4em;
transition: 0.25s color, 0.25s background-color;
}
.site-header nav > a > span {
display: block;
height: 100%;
}
.site-header nav a:hover, .site-header nav a.tapped {
background-color: #fff;
color: #e74c3c;
}
.site-header nav a.active {
font-weight: 400;
}
.punnylisting {
text-align: center;
list-style: decimal;
/*padding: 0;*/
font-size: 1.1em;
line-height: 1.7em;
}
.punnylisting li {
padding: 0.25em 0;
}
footer {
width: 100%;
padding: 2em 10vw;
background-color: #fff;
color: #444;
font-weight: 300;
font-size: 16px;
line-height: 1.2em;
text-align: right;
}
/* Breakpoint 1 */
@media (max-width: 720px) {
.site-header {
font-size: 20px;
}
footer {
font-size: 14px;
}
}
/* Breakpoint 2 */
@media (max-width: 600px) {
footer {
font-size: 14px;
}
}
/* Breakpoint 3 */
@media (max-width: 540px) {
.site-header {
font-size: 18px;
}
.hidewhensmall {
display: none;
}
}