MagicMirror/css/main.css

205 lines
3.0 KiB
CSS
Raw Normal View History

2021-04-02 11:28:22 -05:00
@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 {
2016-04-05 15:43:52 -04:00
cursor: none;
2021-04-02 11:28:22 -05:00
font-size: 24px;
}
::-webkit-scrollbar {
display: none;
2016-04-13 09:58:56 +02:00
}
body {
2021-04-02 11:28:22 -05:00
background-color: var(--color-background);
box-sizing: border-box;
margin: 0;
padding: 6vh 4vw 4vh;
height: 100vh;
width: 100vw;
color: var(--color-text-body);
font-family: "Quicksand", sans-serif;
2016-04-05 15:43:52 -04:00
font-weight: 400;
font-size: 2em;
line-height: 1.5em;
-webkit-font-smoothing: antialiased;
2016-03-24 17:19:32 +01:00
}
/**
* Default styles.
*/
2016-04-05 15:43:52 -04:00
.dimmed {
2021-04-02 11:28:22 -05:00
color: var(--color-text-dimmed);
2016-04-05 15:43:52 -04:00
}
.normal {
2021-04-02 11:28:22 -05:00
color: var(--color-text-normal);
2016-04-05 15:43:52 -04:00
}
.bright {
2021-04-02 11:28:22 -05:00
color: var(--color-text-bright);
2016-04-05 15:43:52 -04:00
}
.xsmall {
2021-04-02 11:28:22 -05:00
font-size: var(--text-xs);
line-height: var(--text-lh);
2016-04-05 15:43:52 -04:00
}
.small {
2021-04-02 11:28:22 -05:00
font-size: var(--text-sm);
line-height: var(--text-lh);
2016-04-05 15:43:52 -04:00
}
.medium {
2021-04-02 11:28:22 -05:00
font-size: var(--text-md);
line-height: var(--text-lh);
2016-04-05 15:43:52 -04:00
}
.large {
2021-04-02 11:28:22 -05:00
font-size: var(--text-lg);
line-height: var(--text-lh);
2016-04-05 15:43:52 -04:00
}
.xlarge {
2021-04-02 11:28:22 -05:00
font-size: var(--text-xl);
line-height: var(--text-lh);
}
.xxlarge {
font-size: var(--text-xxl);
line-height: var(--text-lh);
2016-04-05 15:43:52 -04:00
}
2016-03-29 13:28:15 +02:00
2016-04-05 15:43:52 -04:00
.thin {
font-family: Roboto, sans-serif;
font-weight: 100;
}
.light {
2021-04-02 11:28:22 -05:00
font-family: "Quicksand", sans-serif;
2016-04-05 15:43:52 -04:00
font-weight: 300;
}
.regular {
2021-04-02 11:28:22 -05:00
font-family: "Quicksand", sans-serif;
2016-04-05 15:43:52 -04:00
font-weight: 400;
}
.bold {
2021-04-02 11:28:22 -05:00
font-family: "Quicksand", sans-serif;
2016-04-05 15:43:52 -04:00
font-weight: 700;
}
.align-right {
text-align: right;
}
.align-left {
text-align: left;
}
2016-03-29 13:28:15 +02:00
2016-03-24 17:19:32 +01:00
header {
2016-04-05 15:43:52 -04:00
text-transform: uppercase;
font-size: 15px;
2021-04-02 11:28:22 -05:00
font-family: "Quicksand", Arial, Helvetica, sans-serif;
2016-04-05 15:43:52 -04:00
font-weight: 400;
border-bottom: 1px solid #666;
line-height: 15px;
padding-bottom: 5px;
2016-04-05 15:43:52 -04:00
margin-bottom: 10px;
color: #999;
2016-03-24 17:19:32 +01:00
}
sup {
2016-04-05 15:43:52 -04:00
font-size: 50%;
line-height: 50%;
2016-03-24 17:19:32 +01:00
}
2016-04-01 10:25:54 +02:00
/**
* Module styles.
*/
.module {
2016-10-15 17:06:52 +02:00
margin-bottom: 30px;
2016-04-01 10:25:54 +02:00
}
2016-04-05 15:43:52 -04:00
2016-10-15 17:06:52 +02:00
.region.bottom .module {
margin-top: 30px;
2016-10-15 17:11:03 +02:00
margin-bottom: 0;
2016-04-01 10:25:54 +02:00
}
2017-03-11 17:36:47 -06:00
.no-wrap {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.pre-line {
white-space: pre-line;
}
2016-03-24 17:19:32 +01:00
/**
2021-04-02 11:28:22 -05:00
*
* LAYOUT STUFF
*
2016-03-24 17:19:32 +01:00
*/
2016-04-05 13:39:52 +02:00
.region.fullscreen {
2016-04-05 15:43:52 -04:00
position: absolute;
2021-04-02 11:28:22 -05:00
height: 100vh;
width: 100vw;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -1;
pointer-events: none;
}
.region.fullscreen * {
pointer-events: auto;
2016-04-05 13:39:52 +02:00
}
2016-04-05 15:43:52 -04:00
2021-04-02 11:28:22 -05:00
.region table {
2016-04-05 15:43:52 -04:00
width: 100%;
2021-04-02 11:28:22 -05:00
border-spacing: 0;
border-collapse: separate;
2016-03-24 17:19:32 +01:00
}
2016-04-05 15:43:52 -04:00
2021-04-02 11:28:22 -05:00
body {
display: grid;
grid-gap: var(--grid-gap);
grid-template-rows: repeat(5, 1fr);
2016-03-24 17:19:32 +01:00
}
2016-04-05 15:43:52 -04:00
2021-04-02 11:28:22 -05:00
.top.bar {
display: grid;
grid-gap: var(--grid-gap);
grid-template-columns: repeat(3, 1fr);
2014-02-19 16:45:36 +01:00
}
2016-04-05 15:43:52 -04:00
2021-04-02 11:28:22 -05:00
.top.bar > .container {
grid-column: 1 / -1;
2014-02-24 11:19:51 +01:00
}
2016-04-05 15:43:52 -04:00
2021-04-02 11:28:22 -05:00
.bottom.bar {
display: grid;
grid-gap: var(--grid-gap);
grid-template-columns: repeat(3, 1fr);
2014-02-26 14:14:29 +01:00
}
2016-04-05 15:43:52 -04:00
2021-04-02 11:28:22 -05:00
.region {
/* for testing */
/* border: 1px solid white; */
}