mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
add custom variables
This commit is contained in:
parent
01e5936671
commit
3e8bd022e2
202
css/main.css
202
css/main.css
@ -1,8 +1,24 @@
|
|||||||
|
@import url("https://fonts.googleapis.com/css?family=Quicksand:300,400,500,700&display=swap");
|
||||||
|
:root {
|
||||||
|
--text-xs: 0.667rem;
|
||||||
|
--text-sm: 1rem;
|
||||||
|
--text-md: 1.5rem;
|
||||||
|
--text-lg: 2.25rem;
|
||||||
|
--text-xl: 3.375rem;
|
||||||
|
--text-xxl: 5.063rem;
|
||||||
|
--text-lh: 1.5;
|
||||||
|
|
||||||
|
--grid-gap: 2rem;
|
||||||
|
--color-text-body: #aaa;
|
||||||
|
--color-text-bright: #fff;
|
||||||
|
--color-text-normal: #999;
|
||||||
|
--color-text-dimmed: #666;
|
||||||
|
--color-background: #000;
|
||||||
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
cursor: none;
|
cursor: none;
|
||||||
overflow: hidden;
|
font-size: 24px;
|
||||||
background: #000;
|
|
||||||
user-select: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar {
|
::-webkit-scrollbar {
|
||||||
@ -10,13 +26,14 @@ html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 60px;
|
background-color: var(--color-background);
|
||||||
position: absolute;
|
box-sizing: border-box;
|
||||||
height: calc(100% - 120px);
|
margin: 0;
|
||||||
width: calc(100% - 120px);
|
padding: 6vh 4vw 4vh;
|
||||||
background: #000;
|
height: 100vh;
|
||||||
color: #aaa;
|
width: 100vw;
|
||||||
font-family: "Roboto Condensed", sans-serif;
|
color: var(--color-text-body);
|
||||||
|
font-family: "Quicksand", sans-serif;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
@ -28,41 +45,40 @@ body {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
.dimmed {
|
.dimmed {
|
||||||
color: #666;
|
color: var(--color-text-dimmed);
|
||||||
}
|
}
|
||||||
|
|
||||||
.normal {
|
.normal {
|
||||||
color: #999;
|
color: var(--color-text-normal);
|
||||||
}
|
}
|
||||||
|
|
||||||
.bright {
|
.bright {
|
||||||
color: #fff;
|
color: var(--color-text-bright);
|
||||||
}
|
}
|
||||||
|
|
||||||
.xsmall {
|
.xsmall {
|
||||||
font-size: 15px;
|
font-size: var(--text-xs);
|
||||||
line-height: 20px;
|
line-height: var(--text-lh);
|
||||||
}
|
}
|
||||||
|
|
||||||
.small {
|
.small {
|
||||||
font-size: 20px;
|
font-size: var(--text-sm);
|
||||||
line-height: 25px;
|
line-height: var(--text-lh);
|
||||||
}
|
}
|
||||||
|
|
||||||
.medium {
|
.medium {
|
||||||
font-size: 30px;
|
font-size: var(--text-md);
|
||||||
line-height: 35px;
|
line-height: var(--text-lh);
|
||||||
}
|
}
|
||||||
|
|
||||||
.large {
|
.large {
|
||||||
font-size: 65px;
|
font-size: var(--text-lg);
|
||||||
line-height: 65px;
|
line-height: var(--text-lh);
|
||||||
}
|
}
|
||||||
|
|
||||||
.xlarge {
|
.xlarge {
|
||||||
font-size: 75px;
|
font-size: var(--text-xl);
|
||||||
line-height: 75px;
|
line-height: var(--text-lh);
|
||||||
letter-spacing: -3px;
|
}
|
||||||
|
.xxlarge {
|
||||||
|
font-size: var(--text-xxl);
|
||||||
|
line-height: var(--text-lh);
|
||||||
}
|
}
|
||||||
|
|
||||||
.thin {
|
.thin {
|
||||||
@ -71,17 +87,17 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.light {
|
.light {
|
||||||
font-family: "Roboto Condensed", sans-serif;
|
font-family: "Quicksand", sans-serif;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
}
|
}
|
||||||
|
|
||||||
.regular {
|
.regular {
|
||||||
font-family: "Roboto Condensed", sans-serif;
|
font-family: "Quicksand", sans-serif;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bold {
|
.bold {
|
||||||
font-family: "Roboto Condensed", sans-serif;
|
font-family: "Quicksand", sans-serif;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -96,7 +112,7 @@ body {
|
|||||||
header {
|
header {
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
font-family: "Roboto Condensed", Arial, Helvetica, sans-serif;
|
font-family: "Quicksand", Arial, Helvetica, sans-serif;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
border-bottom: 1px solid #666;
|
border-bottom: 1px solid #666;
|
||||||
line-height: 15px;
|
line-height: 15px;
|
||||||
@ -134,103 +150,55 @@ sup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Region Definitions.
|
*
|
||||||
|
* LAYOUT STUFF
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.region {
|
|
||||||
position: absolute;
|
|
||||||
}
|
|
||||||
|
|
||||||
.region.fullscreen {
|
.region.fullscreen {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -60px;
|
height: 100vh;
|
||||||
left: -60px;
|
width: 100vw;
|
||||||
right: -60px;
|
top: 0;
|
||||||
bottom: -60px;
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
z-index: -1;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.region.fullscreen * {
|
.region.fullscreen * {
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.region.right {
|
|
||||||
right: 0;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.region.top {
|
|
||||||
top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.region.top .container {
|
|
||||||
margin-bottom: 25px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.region.bottom .container {
|
|
||||||
margin-top: 25px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.region.top .container:empty {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.region.top.center,
|
|
||||||
.region.bottom.center {
|
|
||||||
left: 50%;
|
|
||||||
transform: translateX(-50%);
|
|
||||||
}
|
|
||||||
|
|
||||||
.region.top.right,
|
|
||||||
.region.top.left,
|
|
||||||
.region.top.center {
|
|
||||||
top: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.region.bottom {
|
|
||||||
bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.region.bottom .container:empty {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.region.bottom.right,
|
|
||||||
.region.bottom.center,
|
|
||||||
.region.bottom.left {
|
|
||||||
bottom: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.region.bar {
|
|
||||||
width: 100%;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.region.third,
|
|
||||||
.region.middle.center {
|
|
||||||
width: 100%;
|
|
||||||
text-align: center;
|
|
||||||
transform: translateY(-50%);
|
|
||||||
}
|
|
||||||
|
|
||||||
.region.upper.third {
|
|
||||||
top: 33%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.region.middle.center {
|
|
||||||
top: 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.region.lower.third {
|
|
||||||
top: 66%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.region.left {
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.region table {
|
.region table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-spacing: 0;
|
border-spacing: 0;
|
||||||
border-collapse: separate;
|
border-collapse: separate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
display: grid;
|
||||||
|
grid-gap: var(--grid-gap);
|
||||||
|
grid-template-rows: repeat(5, 1fr);
|
||||||
|
}
|
||||||
|
|
||||||
|
.top.bar {
|
||||||
|
display: grid;
|
||||||
|
grid-gap: var(--grid-gap);
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
}
|
||||||
|
|
||||||
|
.top.bar > .container {
|
||||||
|
grid-column: 1 / -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bottom.bar {
|
||||||
|
display: grid;
|
||||||
|
grid-gap: var(--grid-gap);
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
}
|
||||||
|
|
||||||
|
.region {
|
||||||
|
/* for testing */
|
||||||
|
/* border: 1px solid white; */
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user