Web: Move basic styling from App to base.css
First step, it should be further split later down the line.
This commit is contained in:
parent
ad04856a02
commit
301bff9244
@ -167,140 +167,6 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@import "tabulator-tables/dist/css/tabulator_midnight.min.css";
|
@import "assets/base.css";
|
||||||
|
@import "assets/tabulator.css";
|
||||||
:root {
|
|
||||||
--header-height: 25px;
|
|
||||||
--footer-height: 25px;
|
|
||||||
--grid-gap: 4px;
|
|
||||||
|
|
||||||
--action-bar-height: 2em;
|
|
||||||
|
|
||||||
--blender-blue: #265787;
|
|
||||||
}
|
|
||||||
|
|
||||||
html,
|
|
||||||
body {
|
|
||||||
height: calc(100vh - 1px);
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
|
|
||||||
color: #EEEEEE;
|
|
||||||
background-color: #222222;
|
|
||||||
}
|
|
||||||
|
|
||||||
#app {
|
|
||||||
font-family: 'Noto Sans', sans-serif;
|
|
||||||
-webkit-font-smoothing: antialiased;
|
|
||||||
-moz-osx-font-smoothing: grayscale;
|
|
||||||
|
|
||||||
display: grid;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
grid-template-columns: 1fr 1fr 1fr;
|
|
||||||
grid-template-rows: var(--header-height) 1fr var(--footer-height);
|
|
||||||
grid-gap: var(--grid-gap);
|
|
||||||
grid-template-areas:
|
|
||||||
"header header header-right"
|
|
||||||
"col-1 col-2 col-3"
|
|
||||||
"footer footer footer";
|
|
||||||
}
|
|
||||||
|
|
||||||
header,
|
|
||||||
header.right {
|
|
||||||
background-color: #333;
|
|
||||||
color: #EEE;
|
|
||||||
}
|
|
||||||
|
|
||||||
header {
|
|
||||||
grid-area: header;
|
|
||||||
padding-left: 0.2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
header.right {
|
|
||||||
grid-area: header-right;
|
|
||||||
text-align: right;
|
|
||||||
font-size: smaller;
|
|
||||||
padding-right: 0.4rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
h2.column-title {
|
|
||||||
margin-top: 0;
|
|
||||||
font-size: 12pt;
|
|
||||||
border-bottom: 1px solid grey
|
|
||||||
}
|
|
||||||
|
|
||||||
h3.sub-title {
|
|
||||||
margin-bottom: 0;
|
|
||||||
font-size: 10pt;
|
|
||||||
border-bottom: 1px solid grey
|
|
||||||
}
|
|
||||||
|
|
||||||
.col-1 {
|
|
||||||
grid-area: col-1;
|
|
||||||
max-height: calc(100vh - var(--header-height) - var(--footer-height) - 2*var(--grid-gap));
|
|
||||||
}
|
|
||||||
|
|
||||||
.col-2 {
|
|
||||||
grid-area: col-2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.col-3 {
|
|
||||||
grid-area: col-3;
|
|
||||||
}
|
|
||||||
|
|
||||||
footer {
|
|
||||||
grid-area: footer;
|
|
||||||
background-color: var(--blender-blue);
|
|
||||||
color: #EEE;
|
|
||||||
padding-top: 0.2rem;
|
|
||||||
padding-left: 0.2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
section.action-bar {
|
|
||||||
height: var(--action-bar-height);
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
section.action-bar button.action {
|
|
||||||
padding: 0.1rem 0.75rem;
|
|
||||||
border-radius: 0.3rem;
|
|
||||||
border: thin solid white;
|
|
||||||
|
|
||||||
background: var(--blender-blue);
|
|
||||||
color: #DFDEDF;
|
|
||||||
touch-action: manipulation;
|
|
||||||
margin-right: 0.3rem;
|
|
||||||
|
|
||||||
transition-duration: 300ms;
|
|
||||||
transition-property: color, background-color, border-color, box-shadow;
|
|
||||||
}
|
|
||||||
|
|
||||||
section.action-bar button.action[disabled] {
|
|
||||||
background-color: #4c4b4d;
|
|
||||||
color: #858585;
|
|
||||||
border: thin solid #858585;
|
|
||||||
}
|
|
||||||
|
|
||||||
section.action-bar button.action:hover:not([disabled]) {
|
|
||||||
transition: all 100ms;
|
|
||||||
box-shadow: inset 0 0 0.3rem rgba(255, 255, 255, 0.8);
|
|
||||||
}
|
|
||||||
|
|
||||||
section.action-bar button.action:focus {
|
|
||||||
/* Make sure the outline is clearly visible inside the button. */
|
|
||||||
outline-offset: -0.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
section.action-bar button.action.dangerous {
|
|
||||||
background-color: #7c4d41;
|
|
||||||
color: #e4c5c0;
|
|
||||||
margin-left: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
section.action-bar button.action.dangerous[disabled] {
|
|
||||||
background-color: #53413e;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -1,74 +1,197 @@
|
|||||||
/* color palette from <https://github.com/vuejs/theme> */
|
|
||||||
:root {
|
:root {
|
||||||
--vt-c-white: #ffffff;
|
--spacer: 1rem;
|
||||||
--vt-c-white-soft: #f8f8f8;
|
--spacer-sm: .66rem;
|
||||||
--vt-c-white-mute: #f2f2f2;
|
--spacer-xs: .33rem;
|
||||||
|
|
||||||
--vt-c-black: #181818;
|
--color-background: #111;
|
||||||
--vt-c-black-soft: #222222;
|
--color-background-column: #161616;
|
||||||
--vt-c-black-mute: #282828;
|
--color-accent: hsl(237deg 58% 68%);
|
||||||
|
--color-accent-text: hsl(237deg 100% 84%);
|
||||||
|
--color-accent-background: hsl(237deg 18% 28%);
|
||||||
|
--color-text: #ddd;
|
||||||
|
--color-text-muted: #999;
|
||||||
|
|
||||||
--vt-c-indigo: #2c3e50;
|
--color-border: #222;
|
||||||
|
|
||||||
--vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
|
--border-width: 2px;
|
||||||
--vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
|
--border-radius: 4px;
|
||||||
--vt-c-divider-dark-1: rgba(84, 84, 84, 0.65);
|
|
||||||
--vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
|
|
||||||
|
|
||||||
--vt-c-text-light-1: var(--vt-c-indigo);
|
--font-family-mono: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro","Fira Mono", "Droid Sans Mono", "Courier New", monospace;
|
||||||
--vt-c-text-light-2: rgba(60, 60, 60, 0.66);
|
--font-size-base: 14px;
|
||||||
--vt-c-text-dark-1: var(--vt-c-white);
|
--font-size-sm: 12px;
|
||||||
--vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
|
|
||||||
}
|
--table-color-background-row: #333;
|
||||||
|
--table-color-background-row-hover: #3a3a3a;
|
||||||
/* semantic color variables for this project */
|
--table-color-background-row-odd: #292929;
|
||||||
:root {
|
--table-color-background-row-odd-hover: #3a3a3a;
|
||||||
--color-background: var(--vt-c-white);
|
|
||||||
--color-background-soft: var(--vt-c-white-soft);
|
--table-color-background-row-selected: var(--color-accent);
|
||||||
--color-background-mute: var(--vt-c-white-mute);
|
--table-color-background-row-selected: var(--color-accent);
|
||||||
|
--table-color-border: var(--color-border);
|
||||||
--color-border: var(--vt-c-divider-light-2);
|
|
||||||
--color-border-hover: var(--vt-c-divider-light-1);
|
--header-height: 25px;
|
||||||
|
--footer-height: 25px;
|
||||||
--color-heading: var(--vt-c-text-light-1);
|
--grid-gap: 4px;
|
||||||
--color-text: var(--vt-c-text-light-1);
|
|
||||||
|
|
||||||
--section-gap: 160px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
|
||||||
:root {
|
|
||||||
--color-background: var(--vt-c-black);
|
|
||||||
--color-background-soft: var(--vt-c-black-soft);
|
|
||||||
--color-background-mute: var(--vt-c-black-mute);
|
|
||||||
|
|
||||||
--color-border: var(--vt-c-divider-dark-2);
|
|
||||||
--color-border-hover: var(--vt-c-divider-dark-1);
|
|
||||||
|
|
||||||
--color-heading: var(--vt-c-text-dark-1);
|
|
||||||
--color-text: var(--vt-c-text-dark-2);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
*,
|
|
||||||
*::before,
|
|
||||||
*::after {
|
|
||||||
box-sizing: border-box;
|
|
||||||
margin: 0;
|
|
||||||
position: relative;
|
|
||||||
font-weight: normal;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html,
|
||||||
body {
|
body {
|
||||||
min-height: 100vh;
|
background-color: #111;
|
||||||
color: var(--color-text);
|
color: var(--color-text);
|
||||||
background: var(--color-background);
|
font-size: var(--font-size-base);
|
||||||
transition: color 0.5s, background-color 0.5s;
|
height: 100vh;
|
||||||
line-height: 1.6;
|
margin: 0;
|
||||||
font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
|
padding: 0;
|
||||||
Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
width: 100vw;
|
||||||
font-size: 15px;
|
}
|
||||||
text-rendering: optimizeLegibility;
|
|
||||||
|
#app {
|
||||||
|
font-family: 'Noto Sans', sans-serif;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
|
||||||
|
display: grid;
|
||||||
|
grid-gap: var(--grid-gap);
|
||||||
|
grid-template-areas:
|
||||||
|
"header header header"
|
||||||
|
"col-1 col-2 col-3"
|
||||||
|
"footer footer footer";
|
||||||
|
grid-template-columns: 1fr 1fr 1fr;
|
||||||
|
grid-template-rows: var(--header-height) 1fr var(--footer-height);
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.col-header {
|
||||||
|
background-color: #222;
|
||||||
|
}
|
||||||
|
|
||||||
|
.col {
|
||||||
|
background-color: var(--color-background-column);
|
||||||
|
padding: var(--spacer-sm);
|
||||||
|
border-radius: var(--border-radius);
|
||||||
|
}
|
||||||
|
|
||||||
|
.col-1 {
|
||||||
|
grid-area: col-1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.col-2 {
|
||||||
|
grid-area: col-2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.col-3 {
|
||||||
|
grid-area: col-3;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: currentColor;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
color: var(--color-accent);
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
header {
|
||||||
|
align-items: center;
|
||||||
|
color: var(--color-text-muted);
|
||||||
|
display: flex;
|
||||||
|
grid-area: header;
|
||||||
|
padding: 0 var(--spacer-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
header nav {
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav > ul {
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
list-style-type: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav > ul > li > a {
|
||||||
|
display: block;
|
||||||
|
padding: var(--spacer-xs) var(--spacer);
|
||||||
|
}
|
||||||
|
|
||||||
|
h2.column-title {
|
||||||
|
border-bottom: var(--border-width) solid var(--color-border);
|
||||||
|
font-size: var(--font-size-base);
|
||||||
|
margin-bottom: var(--spacer-sm);
|
||||||
|
margin-top: 0;
|
||||||
|
padding-bottom: var(--spacer-xs);
|
||||||
|
}
|
||||||
|
|
||||||
|
h3.sub-title {
|
||||||
|
border-bottom: var(--border-width) solid var(--color-border);
|
||||||
|
font-size: var(--font-size-base);
|
||||||
|
margin: var(--spacer) 0 var(--spacer-sm);
|
||||||
|
padding: 0 0 var(--spacer-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
align-items: center;
|
||||||
|
color: var(--color-text-muted);
|
||||||
|
display: flex;
|
||||||
|
font-size: var(--font-size-sm);
|
||||||
|
grid-area: footer;
|
||||||
|
padding: var(--spacer-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-bar {
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
padding: var(--spacer-sm) 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
align-items: center;
|
||||||
|
background-color: var(--color-accent);
|
||||||
|
border-radius: var(--border-radius);
|
||||||
|
border: var(--border-width) solid var(--color-accent);
|
||||||
|
display: inline-flex;
|
||||||
|
font-size: var(--font-size-sm);
|
||||||
|
justify-content: center;
|
||||||
|
padding: 0.1rem 0.75rem;
|
||||||
|
touch-action: manipulation;
|
||||||
|
transition-duration: 300ms;
|
||||||
|
transition-property: color, background-color, border-color, box-shadow;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-bar .btn+.btn {
|
||||||
|
margin-left: var(--spacer-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-bar .btn[disabled] {
|
||||||
|
background-color: transparent;
|
||||||
|
border-color: var(--color-text-muted);
|
||||||
|
color: var(--color-text-muted);
|
||||||
|
opacity: .5;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-bar .btn:hover:not([disabled]) {
|
||||||
|
transition: all 100ms;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-bar .btn:focus {
|
||||||
|
/* Make sure the outline is clearly visible inside the button. */
|
||||||
|
outline-offset: -0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-bar .btn.dangerous {
|
||||||
|
background-color: #7c4d41;
|
||||||
|
color: #e4c5c0;
|
||||||
|
margin-left: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-bar .btn.dangerous[disabled] {
|
||||||
|
background-color: #53413e;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user