272 lines
No EOL
6 KiB
Text
272 lines
No EOL
6 KiB
Text
// UIkit Core
|
|
@import "../../../node_modules/uikit/src/less/uikit.theme.less";
|
|
|
|
// Highlight.js
|
|
@import "./highlight.less";
|
|
|
|
// Electron app theming
|
|
@import "./app.less";
|
|
|
|
// Custom OpenFlexure theming
|
|
@global-primary-background: #C32280;
|
|
|
|
@inverse-primary-muted-color: lighten(@global-primary-background, 15%);
|
|
|
|
// UIkit
|
|
// ========================================================================
|
|
|
|
@global-font-family: ProximaNova, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@global-font-size: 15px;
|
|
|
|
@global-xxlarge-font-size: 38px;
|
|
@global-xlarge-font-size: 30px;
|
|
@global-large-font-size: 24px;
|
|
@global-medium-font-size: 20px;
|
|
@global-small-font-size: 14px;
|
|
|
|
@global-emphasis-color: #222;
|
|
|
|
//
|
|
// Base
|
|
//
|
|
|
|
@base-code-font-family: 'Roboto Mono', monospace;
|
|
@base-code-font-size: 12px;
|
|
|
|
@base-heading-font-weight: 300;
|
|
|
|
@base-pre-font-size: 12px;
|
|
@base-pre-padding: 25px;
|
|
@base-pre-background: @global-muted-background;
|
|
@base-pre-border-width: 0;
|
|
@base-pre-border-radius: 0;
|
|
|
|
.hook-base-body() {
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
text-rendering: optimizeLegibility;
|
|
}
|
|
|
|
//
|
|
// Container
|
|
//
|
|
|
|
@container-max-width: 1380px;
|
|
@container-small-max-width: 650px;
|
|
|
|
//
|
|
// Navbar
|
|
//
|
|
|
|
@inverse-navbar-nav-item-color: @inverse-global-color;
|
|
@inverse-navbar-nav-item-hover-color: @inverse-global-emphasis-color;
|
|
|
|
//
|
|
// Nav
|
|
//
|
|
|
|
@nav-header-font-size: 12px;
|
|
|
|
//
|
|
// Subnav
|
|
//
|
|
|
|
@inverse-subnav-item-color: @inverse-global-color;
|
|
@inverse-subnav-item-hover-color: @inverse-global-emphasis-color;
|
|
|
|
//
|
|
// Tab
|
|
//
|
|
|
|
@tab-item-padding-horizontal: 10px;
|
|
@tab-item-padding-vertical: 9px;
|
|
@tab-item-border-width: 2px;
|
|
@tab-item-font-size: 12px;
|
|
|
|
.hook-tab-item() { line-height: 20px; }
|
|
|
|
//
|
|
// Table
|
|
//
|
|
|
|
@table-header-cell-font-size: 12px;
|
|
|
|
//
|
|
// Label
|
|
//
|
|
|
|
@label-font-size: 12px;
|
|
|
|
//
|
|
// Text
|
|
//
|
|
|
|
.hook-text-lead() { font-weight: 300; }
|
|
.hook-text-large() { font-weight: 300; }
|
|
|
|
//
|
|
// Utility
|
|
//
|
|
|
|
@inverse-logo-color: @inverse-global-emphasis-color;
|
|
@inverse-logo-hover-color: @inverse-global-emphasis-color;
|
|
|
|
//
|
|
// Off-canvas
|
|
//
|
|
|
|
@offcanvas-bar-background: #fff;
|
|
@offcanvas-bar-color-mode: dark;
|
|
|
|
//
|
|
// Inverse
|
|
//
|
|
|
|
@inverse-global-color: fade(@global-inverse-color, 80%);
|
|
@inverse-global-muted-color: fade(@global-inverse-color, 60%);
|
|
|
|
//
|
|
// Paper
|
|
//
|
|
@paper-border-radius: 4px;
|
|
|
|
|
|
/* ========================================================================
|
|
Theme
|
|
========================================================================== */
|
|
|
|
@sidebar-left-width: 240px;
|
|
@sidebar-left-width-xl: 300px;
|
|
|
|
@sidebar-right-width: 200px;
|
|
@sidebar-right-left: 0px;
|
|
@sidebar-right-left-xl: 60px;
|
|
|
|
|
|
|
|
/* UIkit modifiers
|
|
========================================================================== */
|
|
|
|
/*
|
|
* Navbar
|
|
*/
|
|
|
|
// Line Mode
|
|
@navbar-nav-item-line-margin-vertical: 20px;
|
|
@navbar-nav-item-line-margin-horizontal: @navbar-nav-item-padding-horizontal;
|
|
@navbar-nav-item-line-height: 1px;
|
|
@navbar-nav-item-line-background: currentColor;
|
|
@navbar-nav-item-line-transition-duration: 0.3s;
|
|
|
|
.uk-navbar-dropdown.uk-open {
|
|
border-radius: @paper-border-radius;
|
|
}
|
|
|
|
/*
|
|
* Cards
|
|
*/
|
|
|
|
.uk-card {
|
|
border-radius: @paper-border-radius;
|
|
}
|
|
|
|
.uk-card-media-top img {
|
|
border-radius: @paper-border-radius @paper-border-radius 0 0;
|
|
}
|
|
|
|
.uk-card-default .uk-card-footer {
|
|
border-top: 1px solid rgba(180, 180, 180, 0.25);
|
|
}
|
|
|
|
.uk-card-primary .uk-card-footer {
|
|
border-top: 1px solid rgba(0, 0, 0, 0.075);
|
|
}
|
|
|
|
.hook-inverse() {
|
|
// Override background colour in dark mode
|
|
.uk-card-default {
|
|
background-color: #2a2a2a !important;
|
|
}
|
|
|
|
// Lighten on hover to show depth in dark mode
|
|
.uk-card-default:hover {
|
|
transition: background-color @animation-fast-duration ease;
|
|
background-color: #333 !important;
|
|
}
|
|
}
|
|
|
|
/*
|
|
* Modal
|
|
*/
|
|
.uk-modal-dialoge {
|
|
border-radius: @paper-border-radius;
|
|
box-shadow: 0 14px 25px rgba(0, 0, 0, 0.16);
|
|
transition: 0.3s ease !important;
|
|
}
|
|
|
|
/*
|
|
* Notifications
|
|
*/
|
|
.uk-notification-message {
|
|
border-radius: @paper-border-radius;
|
|
box-shadow: 0 14px 25px rgba(0, 0, 0, 0.16);
|
|
}
|
|
|
|
.uk-notification-message-danger {
|
|
border: 1px solid @notification-message-danger-color
|
|
}
|
|
|
|
.uk-notification-message-warning {
|
|
border: 1px solid @notification-message-warning-color
|
|
}
|
|
|
|
.uk-notification-message-success {
|
|
border: 1px solid @notification-message-success-color
|
|
}
|
|
|
|
/*
|
|
* Links
|
|
*/
|
|
.uk-link, .uk-button-link {
|
|
color: @global-muted-color;
|
|
}
|
|
|
|
.uk-link:hover, .uk-button-link:hover, a:hover {
|
|
color: @global-primary-background;
|
|
}
|
|
|
|
.hook-inverse() {
|
|
.uk-link:hover, .uk-button-link:hover, a:hover {
|
|
color: @inverse-primary-muted-color;
|
|
}
|
|
}
|
|
|
|
/*
|
|
* Buttons
|
|
*/
|
|
.uk-button {
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.uk-button-danger {
|
|
background-color: transparent;
|
|
color: #f0506e;
|
|
border: 1px solid #f0506e;
|
|
}
|
|
|
|
.hook-inverse() {
|
|
.uk-button-primary{
|
|
background-color: rgba(180, 180, 180, 0.15);
|
|
color: @inverse-primary-muted-color;
|
|
border-color: @inverse-primary-muted-color;
|
|
}
|
|
|
|
.uk-button-primary:hover {
|
|
background-color: @inverse-primary-muted-color;
|
|
color: #fff;
|
|
}
|
|
}
|
|
|
|
.uk-icon-button, .uk-icon-button:hover {
|
|
text-decoration: none
|
|
} |