Skip to content

Commit

Permalink
Consolidate CSS theming values in a single file
Browse files Browse the repository at this point in the history
  • Loading branch information
fqueiruga committed Jun 25, 2020
1 parent 339f9b9 commit 687f18d
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 33 deletions.
2 changes: 1 addition & 1 deletion war/src/main/js/widgets/add/addform.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../../less/abstracts/font.less';
@import '../../../less/abstracts/theme.less';

#add-item-panel {

Expand Down
2 changes: 1 addition & 1 deletion war/src/main/js/widgets/config/tabbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Tab bar specific rules.
*/

@import '../../../less/abstracts/font.less';
@import '../../../less/abstracts/theme.less';

.jenkins-config-widgets {
position: relative;
Expand Down
12 changes: 0 additions & 12 deletions war/src/main/less/abstracts/font.less

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
:root {
// Font related properties
--font-family-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
--font-size-base: 1rem; // 16px
--font-size-sm: 0.875rem; // 14px
--font-size-xs: 0.75rem; // 12px
--font-size-monospace: 0.95em;

// Line height
--line-height-base: 1.5;
--line-height-heading: 1.2;

// Color palette
--white: #fff;
--very-light-grey: #f0f0f0;
--black: #333;
Expand Down
2 changes: 1 addition & 1 deletion war/src/main/less/base/layout-commons.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../abstracts/font.less';
@import '../abstracts/theme.less';

html {
position: relative;
Expand Down
4 changes: 1 addition & 3 deletions war/src/main/less/base/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
* THE SOFTWARE.
*/

@import '../abstracts/font.less';
@import '../abstracts/colors.less';

@import '../abstracts/theme.less';


/* Panel */
Expand Down
3 changes: 1 addition & 2 deletions war/src/main/less/base/typography.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@import '../abstracts/font.less';
@import '../abstracts/colors.less';
@import '../abstracts/theme.less';

body,
p {
Expand Down
3 changes: 1 addition & 2 deletions war/src/main/less/modules/buttons.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@import '../abstracts/colors.less';
@import '../abstracts/font.less';
@import '../abstracts/theme.less';

// Button: variant mixins

Expand Down
2 changes: 1 addition & 1 deletion war/src/main/less/modules/icons.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../abstracts/colors.less';
@import '../abstracts/theme.less';

.icon-help {
color: var(--primary);
Expand Down
3 changes: 1 addition & 2 deletions war/src/main/less/modules/page-footer.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@import '../abstracts/font.less';
@import '../abstracts/colors.less';
@import '../abstracts/theme.less';

.page-footer {
background-color: var(--breadcrumbs-bg);
Expand Down
3 changes: 1 addition & 2 deletions war/src/main/less/modules/page-header.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@import "../abstracts/font.less";
@import "../abstracts/colors.less";
@import "../abstracts/theme.less";

.page-header {
display: block;
Expand Down
3 changes: 1 addition & 2 deletions war/src/main/less/modules/side-panel-tasks.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@import '../abstracts/colors.less';
@import '../abstracts/font.less';
@import '../abstracts/theme.less';

#tasks {
margin-bottom: 20px;
Expand Down
3 changes: 1 addition & 2 deletions war/src/main/less/modules/side-panel-widgets.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@import '../abstracts/colors.less';
@import '../abstracts/font.less';
@import '../abstracts/theme.less';

#side-panel .pane-frame {
border-radius: 0;
Expand Down
3 changes: 1 addition & 2 deletions war/src/main/less/ui-refresh-overrides.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@import "./abstracts/colors.less";
@import "./abstracts/font.less";
@import "./abstracts/theme.less";

.ui-refresh {
.page-header {
Expand Down

0 comments on commit 687f18d

Please sign in to comment.