mirror of
https://github.com/FunKey-Project/FunKey-Project.github.io.git
synced 2025-12-12 18:28:51 +01:00
161 lines
3.3 KiB
CSS
161 lines
3.3 KiB
CSS
@CHARSET "UTF-8";
|
|
body {
|
|
font-family: Helvetica;
|
|
font-size: 12px;
|
|
color: #63665F
|
|
}
|
|
|
|
.step {
|
|
display: grid;
|
|
grid-template-areas:
|
|
"step-title step-title"
|
|
"step-picture step-thumbs"
|
|
"step-picture step-contents";
|
|
grid-template-rows: auto auto 1fr;
|
|
grid-template-columns: 50% 50%;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Stack the layout on small devices/viewports. */
|
|
@media all and (max-width: 479px) {
|
|
.step {
|
|
grid-template-areas:
|
|
"step-title"
|
|
"step-picture"
|
|
"step-thumbs"
|
|
"step-contents";
|
|
grid-template-rows: auto 1fr 90px auto;
|
|
grid-template-columns: auto;
|
|
}
|
|
}
|
|
|
|
.step-title {
|
|
grid-area: step-title;
|
|
}
|
|
|
|
.step-picture {
|
|
grid-area: step-picture;
|
|
max-width: 100%;
|
|
}
|
|
|
|
/* Make the picture fill width on small devices/viewports. */
|
|
@media only screen and (max-width: 479px) {
|
|
.step-picture {
|
|
margin-bottom: 10px;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.step-thumbs {
|
|
grid-area: step-thumbs;
|
|
}
|
|
|
|
.step-contents {
|
|
grid-area: step-contents;
|
|
padding: 10px;
|
|
}
|
|
|
|
.step-thumb {
|
|
border-radius: 3px;
|
|
box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
|
|
margin: 10px 10px 0px 10px;
|
|
display: inline-block;
|
|
max-width: 27%!important;
|
|
max-height: 90px;
|
|
opacity: .7;
|
|
transition: box-shadow .2s, border-color .2s, opacity .2s;
|
|
}
|
|
|
|
/* Make thumbnails on a separate row on small devices/viewports.*/
|
|
@media only screen and (max-width: 479px) {
|
|
.step-thumb {
|
|
width: 30%;
|
|
max-height: 180px;
|
|
}
|
|
}
|
|
|
|
.step-thumb.active,
|
|
.step-thumb:hover {
|
|
transform: translateY(-4px);
|
|
opacity: 1;
|
|
box-shadow: 0 4px 10px rgba(0, 0, 0, .5)
|
|
}
|
|
|
|
/* No translation and smaller shadow on small devices/viewports. */
|
|
@media all and (max-width: 479px) {
|
|
.step-thumb.active,
|
|
.step-thumb:hover {
|
|
transform: translateY(0);
|
|
box-shadow: 0 0 2px rgba(0, 0, 0, .75)
|
|
}
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'FunKey-S-Keys';
|
|
src: url('/assets/fonts/FunKey-S-Keys.eot?b52ver');
|
|
src: url('/assets/fonts/FunKey-S-Keys.eot?b52ver#iefix') format('embedded-opentype'),
|
|
url('/assets/fonts/FunKey-S-Keys.ttf?b52ver') format('truetype'),
|
|
url('/assets/fonts/FunKey-S-Keys.woff?b52ver') format('woff'),
|
|
url('/assets/fonts/FunKey-S-Keys.svg?b52ver#FunKey-S-Keys') format('svg');
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
font-display: block;
|
|
}
|
|
|
|
[class^="funkey-"], [class*=" funkey-"] {
|
|
/* use !important to prevent issues with browser extensions that change fonts */
|
|
font-family: 'FunKey-S-Keys' !important;
|
|
speak: never;
|
|
font-style: normal;
|
|
font-weight: normal;
|
|
font-variant: normal;
|
|
text-transform: none;
|
|
font-size: 1rem;
|
|
line-height: 1;
|
|
|
|
/* Better Font Rendering =========== */
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
.funkey-A:before {
|
|
content: "\e900";
|
|
}
|
|
|
|
.funkey-B:before {
|
|
content: "\e902";
|
|
}
|
|
.funkey-X:before {
|
|
content: "\e904";
|
|
}
|
|
.funkey-Y:before {
|
|
content: "\e906";
|
|
}
|
|
.funkey-up:before {
|
|
content: "\e908";
|
|
}
|
|
.funkey-down:before {
|
|
content: "\e909";
|
|
}
|
|
.funkey-left:before {
|
|
content: "\e90a";
|
|
}
|
|
.funkey-right:before {
|
|
content: "\e90b";
|
|
}
|
|
.funkey-L:before {
|
|
content: "\e90c";
|
|
}
|
|
.funkey-R:before {
|
|
content: "\e90d";
|
|
}
|
|
.funkey-start:before {
|
|
content: "\e90e";
|
|
}
|
|
.funkey-fn:before {
|
|
content: "\e90f";
|
|
}
|
|
.funkey-menu:before {
|
|
content: "\e912";
|
|
}
|