mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
234 lines
3.3 KiB
CSS
234 lines
3.3 KiB
CSS
:root {
|
|
--color-text: #999;
|
|
--color-text-dimmed: #666;
|
|
--color-text-bright: #fff;
|
|
--color-background: black;
|
|
--font-size: 20px;
|
|
--font-primary: "Roboto Condensed";
|
|
--font-secondary: "Roboto";
|
|
|
|
--gap-body: 60px;
|
|
--gap-modules: calc(var(--gap-body) / 2);
|
|
}
|
|
|
|
html {
|
|
cursor: none;
|
|
overflow: hidden;
|
|
background: var(--color-background);
|
|
user-select: none;
|
|
font-size: var(--font-size);
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
body {
|
|
margin: var(--gap-body);
|
|
position: absolute;
|
|
height: calc(100% - 2 * var(--gap-body));
|
|
width: calc(100% - 2 * var(--gap-body));
|
|
background: var(--color-background);
|
|
color: var(--color-text);
|
|
font-family: var(--font-primary), sans-serif;
|
|
font-weight: 400;
|
|
line-height: 1.5;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
/**
|
|
* Default styles.
|
|
*/
|
|
|
|
.dimmed {
|
|
color: var(--color-text-dimmed);
|
|
}
|
|
|
|
.normal {
|
|
color: var(--color-text);
|
|
}
|
|
|
|
.bright {
|
|
color: var(--color-text-bright);
|
|
}
|
|
|
|
.xsmall {
|
|
font-size: 0.75rem;
|
|
line-height: 1.275;
|
|
}
|
|
|
|
.small {
|
|
font-size: 1rem;
|
|
line-height: 1.25;
|
|
}
|
|
|
|
.medium {
|
|
font-size: 1.5rem;
|
|
line-height: 1.225;
|
|
}
|
|
|
|
.large {
|
|
font-size: 3.25rem;
|
|
line-height: 1;
|
|
}
|
|
|
|
.xlarge {
|
|
font-size: 3.75rem;
|
|
line-height: 1;
|
|
letter-spacing: -3px;
|
|
}
|
|
|
|
.thin {
|
|
font-family: var(--font-secondary), sans-serif;
|
|
font-weight: 100;
|
|
}
|
|
|
|
.light {
|
|
font-family: var(--font-primary), sans-serif;
|
|
font-weight: 300;
|
|
}
|
|
|
|
.regular {
|
|
font-family: var(--font-primary), sans-serif;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.bold {
|
|
font-family: var(--font-primary), sans-serif;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.align-right {
|
|
text-align: right;
|
|
}
|
|
|
|
.align-left {
|
|
text-align: left;
|
|
}
|
|
|
|
header {
|
|
text-transform: uppercase;
|
|
font-size: 0.75rem;
|
|
font-family: var(--font-primary), Arial, Helvetica, sans-serif;
|
|
font-weight: 400;
|
|
border-bottom: 1px solid var(--color-text-dimmed);
|
|
line-height: 15px;
|
|
padding-bottom: 5px;
|
|
margin-bottom: 10px;
|
|
color: var(--color-text);
|
|
}
|
|
|
|
sup {
|
|
font-size: 50%;
|
|
line-height: 50%;
|
|
}
|
|
|
|
/**
|
|
* Module styles.
|
|
*/
|
|
|
|
.module {
|
|
margin-bottom: var(--gap-modules);
|
|
}
|
|
|
|
.region.bottom .module {
|
|
margin-top: var(--gap-modules);
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.no-wrap {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.pre-line {
|
|
white-space: pre-line;
|
|
}
|
|
|
|
/**
|
|
* Region Definitions.
|
|
*/
|
|
|
|
.region {
|
|
position: absolute;
|
|
}
|
|
|
|
.region.fullscreen {
|
|
position: absolute;
|
|
top: calc(-1 * var(--gap-body));
|
|
left: calc(-1 * var(--gap-body));
|
|
right: calc(-1 * var(--gap-body));
|
|
bottom: calc(-1 * var(--gap-body));
|
|
pointer-events: none;
|
|
}
|
|
|
|
.region.fullscreen * {
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.region.right {
|
|
right: 0;
|
|
text-align: right;
|
|
}
|
|
|
|
.region.top {
|
|
top: 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.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 {
|
|
width: 100%;
|
|
border-spacing: 0;
|
|
border-collapse: separate;
|
|
}
|