mirror of
https://github.com/processwire/processwire.git
synced 2025-08-12 17:54:44 +02:00
Updates to rock.less per PR #245
This commit is contained in:
committed by
Ryan Cramer
parent
050c9c19c3
commit
701d24258c
@@ -1,4 +1,4 @@
|
|||||||
// import base theme
|
// RockStyle v1.1
|
||||||
|
|
||||||
// ##############################################################
|
// ##############################################################
|
||||||
// theme variables to easily style this theme
|
// theme variables to easily style this theme
|
||||||
@@ -12,49 +12,54 @@
|
|||||||
@global-link-hover-color: lighten(@rock-primary, 5%);
|
@global-link-hover-color: lighten(@rock-primary, 5%);
|
||||||
@base-selection-background: @rock-primary;
|
@base-selection-background: @rock-primary;
|
||||||
|
|
||||||
/**
|
// primary alert should be neutral grey instead of primary color
|
||||||
* Custom modification to tweak several spots of the admin when using this theme.
|
// this prevents red primary alert when rock-primary color is red
|
||||||
* I think these should likely be part of the master theme and then reno & co
|
// which would be confusing as it would be the same for error messages!
|
||||||
* should just override the spots that are necessary to override
|
// see https://i.imgur.com/dxhDz81.png
|
||||||
*/
|
@alert-primary-background: @global-muted-background;
|
||||||
|
@alert-primary-color: @global-color;
|
||||||
|
|
||||||
/* ##### PageEdit ##### */
|
/* ##### UIkit ##### */
|
||||||
|
|
||||||
// remove padding from tabs in page edit screen
|
// fix tooltip issue
|
||||||
.uk-tab>* { padding-left: 0; }
|
.uk-tooltip-inner {
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
/* ##### Inputfields ##### */
|
/* ##### ProcessWire ##### */
|
||||||
|
|
||||||
// notes
|
// remove padding from tabs in page edit screen
|
||||||
p.notes {
|
.uk-tab > * {
|
||||||
.uk-background-muted;
|
padding-left: 0;
|
||||||
padding-left: 5px;
|
}
|
||||||
border-left: 3px solid @global-secondary-background;
|
|
||||||
}
|
|
||||||
|
|
||||||
// buttons
|
// notes
|
||||||
button.ui-button.ui-priority-secondary {
|
p.notes {
|
||||||
background-color: lighten(@global-color, 20%) !important;
|
.uk-background-muted;
|
||||||
}
|
padding-left: 5px;
|
||||||
|
border-left: 3px solid @global-secondary-background;
|
||||||
|
}
|
||||||
|
|
||||||
/* ##### Notices ##### */
|
// buttons
|
||||||
|
button.ui-button.ui-priority-secondary {
|
||||||
|
background-color: lighten(@global-color, 20%) !important;
|
||||||
|
}
|
||||||
|
|
||||||
// remove spacing: https://i.imgur.com/l6TJIIJ.png
|
// vex dialogs
|
||||||
.pw-notices, .pw-notices li { margin: 0; }
|
.vex-dialog-button.vex-dialog-button-primary {
|
||||||
.pw-notices { margin-top: -2px; }
|
background: @global-primary-background !important;
|
||||||
|
}
|
||||||
|
|
||||||
// vex dialogs
|
// notices
|
||||||
.vex-dialog-button.vex-dialog-button-primary {
|
// remove spacing: https://i.imgur.com/l6TJIIJ.png
|
||||||
background: @global-primary-background !important;
|
.pw-notices,
|
||||||
}
|
.pw-notices li {
|
||||||
|
margin: 0;
|
||||||
/* ##### Datepicker ##### */
|
}
|
||||||
|
.pw-notices {
|
||||||
// datepicker
|
margin-top: -2px;
|
||||||
// see pw-jquery-ui-custom.less
|
}
|
||||||
// change from secondary to primary
|
// make notification bug darker to stand out from masthead
|
||||||
@pw-datepicker-background: @background-primary-background;
|
#NotificationBug {
|
||||||
|
background-color: @global-color;
|
||||||
/* ##### Offcanvas ##### */
|
}
|
||||||
// change offcanvas background from secondary to primary
|
|
||||||
@offcanvas-bar-background: @background-primary-background;
|
|
||||||
|
Reference in New Issue
Block a user