Переход на picnicss

This commit is contained in:
Tolstoevsky 2020-09-29 13:21:16 +03:00
parent a85dfc7005
commit 263ded365f
9 changed files with 313 additions and 418 deletions

View file

@ -1,102 +0,0 @@
@font-face {
font-family: 'comfortaa';
src:url('../fonts/comfortaa.ttf');
}
.textblock {
background-color:#1f2833;
border-radius:2px;
border: 1px solid #667;
display:inline-block;
width: auto;
color: #c5c6c7;
padding: 1% 1% 1% 1%;
margin: 1% 1% 1% 1%;
}
.imgblock {
background-color:#1e2832;
border-radius:2px;
border:1px solid #667;
display:inline-block;
width: 96%;
height: 99%;
color: #c5c6c7;
padding: 1% 1% 1% 1%;
margin: 15% 1% 1% 1%;
}
.imgblock img {
margin: 1% 1% 1% 1%;
float: left;
}
body {
font: 100%/150% comfortaa;
width: 60%;
max-width: 80%;
margin: 0 auto;
background-color:#0b0c10;
}
p {
margin: 0 0 20px;
}
a {
color: #45a29e;
text-decoration: none;
}
a:hover {
color: #66fcf1;
}
h1, h2, h3 {
color: #eee;
margin: 20px 0 10px;
}
h1 {
font-size: 1.7em;
color: #bbb;
}
h2 {
font-size: 1.4em;
}
h3 {
font-size: 1.1em;
}
h1, h2, h3 {
color: #999;
margin: 20px 0 10px;
font-family: "comfortaa";
}
.zoom {
transition: transform .2s;
margin: 0 auto;
}
.zoom:hover {
-ms-transform: scale(2); /* IE 9 */
-webkit-transform: scale(2); /* Safari 3-8 */
transform: scale(2);
}
@media screen and (max-width: 900px) {
body {
max-width: 90%;
width: 80%;
}
}
@media screen and (max-width: 716px) {
body {
max-width: 98%;
width: 96%;
}
}

View file

@ -1,47 +0,0 @@
.Button {
box-shadow: 0px 10px 14px -7px #3e7327;
background:linear-gradient(to bottom, #77b55a 5%, #72b352 100%);
background-color:#77b55a;
border-radius:4px;
border:1px solid #4b8f29;
display:flex;
cursor:pointer;
color:#ffffff;
font-size:13px;
font-weight:bold;
padding:1% 2%;
text-decoration:none;
text-shadow:0px 1px 0px #5b8a3c;
}
.Button:hover {
background:linear-gradient(to bottom, #72b352 5%, #77b55a 100%);
background-color:#72b352;
}
.Button:active {
position:relative;
top:1px;
}
.Button2 {
box-shadow:inset 0px -3px 7px 0px #29bbff;
background:linear-gradient(to bottom, #2dabf9 5%, #0688fa 100%);
background-color:#2dabf9;
border-radius:3px;
border:1px solid #0b0e07;
display:flex;
cursor:pointer;
color:#ffffff;
font-size:15px;
padding:1% 2%;
text-decoration:none;
text-shadow:0px 1px 0px #263666;
}
.Button2:hover {
background:linear-gradient(to bottom, #0688fa 5%, #2dabf9 100%);
background-color:#0688fa;
}
.Button2:active {
position:relative;
top:1px;
}

View file

@ -1,174 +0,0 @@
* {
box-sizing: border-box;
}
/* custom scrollbar */
::-webkit-scrollbar {
width: .95em;
}
/* dummy content */
.content {
float: left;
margin: .75em 0 0 0;
transition: margin .3s ease-in-out;
}
.content > p {
margin: .25em 0 .75em 0;
}
/* Advanced Checkbox Hack */
body {
-webkit-animation: bugfix infinite 1s;
}
@-webkit-keyframes bugfix {
from {
padding: 0;
}
to {
padding: 0;
}
}
input[type=checkbox] {
position: absolute;
top: -9999px;
left: -9999px;
}
label {
position: fixed;
left: 0;
display: none;
width: 2em;
height: .5em;
padding: 20px;
font-size: 1.1em;
color: #fff;
transition: color .3s ease-in-out;
cursor: pointer;
user-select: none;
margin: 0;
# background-color:blue;
}
/* big screens */
nav[role="off-canvas"] {
position: relative;
width: 50em;
margin: 0 auto;
transition-duration: .3s, .5s;
transition-timing-function: ease-in-out;
transition-property: left, opacity, box-shadow;
}
nav[role="off-canvas"] a {
color: #fff;
text-decoration: none;
transition: color .3s ease-in-out;
display: table-cell;
vertical-align: middle;
}
nav[role="off-canvas"] ul {
padding: 0;
margin: 0 auto;
width: 100%;
}
nav[role="off-canvas"] ul > li {
float: left;
padding: .55em .55em;
width: 8em;
margin: .5em;
opacity: .8;
text-transform: uppercase;
display: table;
cursor: pointer;
text-align: center;
transition-duration: .3s;
transition-timing-function: ease-in-out;
transition-property: box-shadow, color, opacity, padding-left;
cursor: pointer;
}
nav[role="off-canvas"] ul > li:hover {
color: #fff;
opacity: 1;
box-shadow: 0 0 0 0.5em rgba(255, 255, 255, 0.95);
}
nav[role="off-canvas"] ul > li
.active
{
color: #fff;
opacity: 1;
box-shadow: 0 0 0 0.5em rgba(255, 255, 255, 0.95);
}
/* small screens */
@media screen and (max-width: 44em) {
html,
body {
margin: 0;
overflow-x: hidden;
}
.content {
margin: 2.5em .5em 0 .5em;
}
nav[role="off-canvas"] {
position: absolute;
top: 3em;
left: -20em;
width: 20em;
opacity: 0;
}
nav[role="off-canvas"] ul > li {
height: 100%;
width: 100%;
text-align: left;
margin: 0;
background: black;
}
nav[role="off-canvas"] ul > li:hover {
box-shadow: inset 0 0 0 0.15em rgba(255, 255, 255, 0.45);
}
label {
display: block;
}
label:after {
position: absolute;
right: .25em;
top: 0;
content: "\2261";
font-size: 1.8em;
}
label:hover,
input:checked ~ label {
color: #000;
}
input:checked ~ nav[role="off-canvas"] {
opacity: 1;
left: 0;
box-shadow: -30em 0 0 30em rgba(0, 0, 0, 0.3);
}
input:checked ~ nav[role="off-canvas"] ul > li {
padding: .55em .55em .55em 1.5em;
}
input:checked ~ nav[role="off-canvas"] ul > li:hover {
padding-left: 3.5em;
}
input:checked ~ nav[role="off-canvas"] ul > li:after {
position: absolute;
right: .25em;
content: "\203A";
color: inherit;
}
input:checked ~ .content {
margin-left: 20.5em;
margin-right: -20.5em;
}
}

1
css/picnic.min.css vendored Normal file

File diff suppressed because one or more lines are too long