From f59cc3211fb0d98991a024ac1c3787712da38818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Wed, 13 Nov 2019 11:05:51 -0300 Subject: [PATCH] Use Bootstrap varible names for font-family MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MaurĂ­cio Meneghini Fauth --- themes/bootstrap/scss/_common.scss | 9 ++++----- themes/bootstrap/scss/_variables.scss | 8 -------- themes/metro/scss/_codemirror.scss | 4 ++-- themes/metro/scss/_common.scss | 19 +++++++++---------- themes/metro/scss/_jqplot.scss | 2 +- themes/metro/scss/_navigation.scss | 4 ++-- themes/metro/scss/_variables.scss | 25 ++++++++++++++++++------- themes/original/scss/_common.scss | 7 +++---- themes/original/scss/_variables.scss | 18 ++++++++++-------- themes/pmahomme/scss/_common.scss | 9 ++++----- themes/pmahomme/scss/_variables.scss | 20 ++++++++++++-------- 11 files changed, 65 insertions(+), 60 deletions(-) diff --git a/themes/bootstrap/scss/_common.scss b/themes/bootstrap/scss/_common.scss index 1c693f8cfb..a0c58beb23 100644 --- a/themes/bootstrap/scss/_common.scss +++ b/themes/bootstrap/scss/_common.scss @@ -1,5 +1,4 @@ body { - font-family: $font-family; padding: 0; margin: 0; margin-#{$left}: $navi-width; @@ -19,7 +18,7 @@ textarea, tt, pre, code { - font-family: $font-family-fixed; + font-family: $font-family-monospace; } h2 { @@ -671,7 +670,7 @@ table { } .value { - font-family: $font-family-fixed; + font-family: $font-family-monospace; } .attention { @@ -2356,7 +2355,7 @@ table#index_columns { border: 0 #c83838 solid; border-width: 1px 0; list-style: none; - font-family: $font-family; + font-family: $font-family-base; font-size: small; } @@ -2396,7 +2395,7 @@ table#index_columns { small { display: block; font-weight: normal; - font-family: $font-family; + font-family: $font-family-base; font-size: x-small; color: #444; } diff --git a/themes/bootstrap/scss/_variables.scss b/themes/bootstrap/scss/_variables.scss index 5f420c384e..d20c21b201 100644 --- a/themes/bootstrap/scss/_variables.scss +++ b/themes/bootstrap/scss/_variables.scss @@ -38,14 +38,6 @@ $browse-marker-color: #000; // background of the marker (visually marks row by clicking on it) in browse mode $browse-marker-background: #fc9; -// fonts - -// the font family as a valid css font family value, if not set the browser default will be -// used (depending on browser, DTD and system settings) -$font-family: sans-serif; -// fixed width font family, used in textarea -$font-family-fixed: monospace; - // tables // border diff --git a/themes/metro/scss/_codemirror.scss b/themes/metro/scss/_codemirror.scss index 30417e10e3..4032533013 100644 --- a/themes/metro/scss/_codemirror.scss +++ b/themes/metro/scss/_codemirror.scss @@ -4,7 +4,7 @@ $textarea-cols: 40 !default; $textarea-rows: 15 !default; .CodeMirror { - font-family: $font-family-fixed !important; + font-family: $font-family-monospace !important; height: ceil($textarea-rows * 1.2em); border: 1px solid #ccc; direction: ltr; @@ -15,7 +15,7 @@ $textarea-rows: 15 !default; } .CodeMirror * { - font-family: $font-family-fixed; + font-family: $font-family-monospace; } #inline_editor_outer .CodeMirror { diff --git a/themes/metro/scss/_common.scss b/themes/metro/scss/_common.scss index c43afa26e4..2356d4ae96 100644 --- a/themes/metro/scss/_common.scss +++ b/themes/metro/scss/_common.scss @@ -83,7 +83,6 @@ textarea { } body { - font-family: $font-family; padding: 0; margin-#{$left}: $navi-width; color: $main-color; @@ -197,7 +196,7 @@ body#loginform { background: $navi-background; color: $navi-color; padding-#{$left}: 0 !important; - font-family: $font-family; + font-family: $font-family-base; min-width: 100%; &:hover { @@ -249,7 +248,7 @@ textarea, tt, pre, code { - font-family: $font-family-fixed !important; + font-family: $font-family-monospace !important; } h1 { @@ -411,7 +410,7 @@ input { color: $th-color; padding: 5px; margin: 6px; - font-family: $font-family; + font-family: $font-family-base; background-color: $main-background; &:focus { @@ -497,7 +496,7 @@ select { border: 1px solid $browse-gray-color; color: $th-color; padding: 4px; - font-family: $font-family; + font-family: $font-family-base; margin: 5px; background-color: $main-background; max-width: 17em; @@ -822,7 +821,7 @@ table { } .value { - font-family: $font-family-fixed; + font-family: $font-family-monospace; } .attention { @@ -1275,14 +1274,14 @@ div#tablestatistics table { overflow: hidden; margin: 0; margin-#{$left}: -1em; - font-family: $font-family; + font-family: $font-family-base; color: $button-color; background: $navi-background; height: 15px; box-sizing: content-box; .item { - font-family: $font-family; + font-family: $font-family-base; white-space: nowrap; color: $button-color; @@ -1352,7 +1351,7 @@ div#tablestatistics table { #textSQLDUMP { width: 95%; height: 95%; - font-family: $font-family-fixed; + font-family: $font-family-monospace; font-size: 110%; } @@ -4061,7 +4060,7 @@ body { } .ui-dialog-buttonpane button { - font-family: $font-family; + font-family: $font-family-base; color: $button-color; background-color: $navi-background; background-image: none; diff --git a/themes/metro/scss/_jqplot.scss b/themes/metro/scss/_jqplot.scss index 35e27a0882..bb094a1897 100644 --- a/themes/metro/scss/_jqplot.scss +++ b/themes/metro/scss/_jqplot.scss @@ -5,7 +5,7 @@ .jqplot-target { position: relative; color: #222; - font-family: $font-family; + font-family: $font-family-base; font-size: 1em; } diff --git a/themes/metro/scss/_navigation.scss b/themes/metro/scss/_navigation.scss index 35e5515ffb..be71fbe6c7 100644 --- a/themes/metro/scss/_navigation.scss +++ b/themes/metro/scss/_navigation.scss @@ -12,7 +12,7 @@ input[type="text"] { background-color: $main-background; - font-family: $font-family; + font-family: $font-family-base; } a { @@ -407,7 +407,7 @@ li.fast_filter { background-color: #fff; border: 1px solid #ccc; color: #666; - font-family: $font-family; + font-family: $font-family-base; padding: 2px; } diff --git a/themes/metro/scss/_variables.scss b/themes/metro/scss/_variables.scss index a8a7257b77..37c28d8f37 100644 --- a/themes/metro/scss/_variables.scss +++ b/themes/metro/scss/_variables.scss @@ -1,11 +1,6 @@ // configures general layout for detailed layout configuration please refer to the css files $navi-width: 250px; -$font-family: "Open Sans", "Segoe UI", sans-serif; -$font-family-light: "Open Sans Light", "Segoe UI Light", "Segoe UI", sans-serif; -$font-family-bold: "Open Sans Bold", sans-serif; -$font-family-extra-bold: "Open Sans Extrabold", "Segoe Black", sans-serif; -$font-family-fixed: Consolas, "Lucida Grande", monospace; // Theme color scheme // Values: "teal", "redmond", "blueeyes", "mono", "win" @@ -151,22 +146,38 @@ $blue-header: #3a7ead; } // Bootstrap +// --------- + +// Typography + +$font-family-base: "Open Sans", "Segoe UI", sans-serif; +$font-family-monospace: Consolas, "Lucida Grande", monospace; + +$font-family-light: "Open Sans Light", "Segoe UI Light", "Segoe UI", sans-serif; +$font-family-bold: "Open Sans Bold", sans-serif; +$font-family-extra-bold: "Open Sans Extrabold", "Segoe Black", sans-serif; + +$font-size-base: 0.8rem; + +// Buttons $enable-transitions: false; $primary: $browse-pointer-color; $secondary: $browse-gray-color; -$font-size-base: 0.8rem; - $btn-border-radius: 0; $btn-line-height: 1; $btn-padding-x: 0.5rem; +// Card + $card-border-width: 0; $card-cap-color: $navi-background; $card-cap-bg: $main-background; +// Alert + $alert-margin-bottom: 1em; $alert-border-radius: 0; $alert-border-width: 0; diff --git a/themes/original/scss/_common.scss b/themes/original/scss/_common.scss index 75d7980bb5..de1957e65b 100644 --- a/themes/original/scss/_common.scss +++ b/themes/original/scss/_common.scss @@ -11,7 +11,6 @@ textarea { } body { - font-family: $font-family; padding: 0; margin: 0; margin-#{$left}: 240px; @@ -31,7 +30,7 @@ textarea, tt, pre, code { - font-family: $font-family-fixed; + font-family: $font-family-monospace; } h1 { @@ -390,7 +389,7 @@ table { } .value { - font-family: $font-family-fixed; + font-family: $font-family-monospace; } .attention { @@ -984,7 +983,7 @@ div#tablestatistics table { #textSQLDUMP { width: 95%; height: 95%; - font-family: $font-family-fixed; + font-family: $font-family-monospace; font-size: 110%; } diff --git a/themes/original/scss/_variables.scss b/themes/original/scss/_variables.scss index 74fa06dc52..15019898fd 100644 --- a/themes/original/scss/_variables.scss +++ b/themes/original/scss/_variables.scss @@ -38,14 +38,6 @@ $browse-marker-color: #000; // background of the marker (visually marks row by clicking on it) in browse mode $browse-marker-background: #fc9; -// fonts - -// the font family as a valid css font family value, if not set the browser default will be -// used (depending on browser, DTD and system settings) -$font-family: sans-serif; -// fixed width font family, used in textarea -$font-family-fixed: monospace; - // tables // border @@ -60,6 +52,14 @@ $bg-one: #e5e5e5; $bg-two: #d5d5d5; // Bootstrap +// --------- + +// Typography + +$font-family-base: sans-serif; +$font-family-monospace: monospace; + +// Card $card-border-radius: 0; $card-border-width: 0.3em; @@ -67,6 +67,8 @@ $card-border-color: $th-background; $card-cap-bg: $th-background; $card-bg: none; +// Alert + $alert-margin-bottom: 0.2em; $alert-border-radius: 0; $alert-border-width: 2px; diff --git a/themes/pmahomme/scss/_common.scss b/themes/pmahomme/scss/_common.scss index 6718cee0a6..82f2e9e08d 100644 --- a/themes/pmahomme/scss/_common.scss +++ b/themes/pmahomme/scss/_common.scss @@ -14,7 +14,6 @@ textarea { } body { - font-family: $font-family; padding: 0; margin: 0; margin-#{$left}: $navi-width; @@ -34,7 +33,7 @@ textarea, tt, pre, code { - font-family: $font-family-fixed; + font-family: $font-family-monospace; } h1 { @@ -691,7 +690,7 @@ table { } .value { - font-family: $font-family-fixed; + font-family: $font-family-monospace; } .attention { @@ -2382,7 +2381,7 @@ table#index_columns { border: 0 #c83838 solid; border-width: 1px 0; list-style: none; - font-family: $font-family; + font-family: $font-family-base; font-size: small; } @@ -2422,7 +2421,7 @@ table#index_columns { small { display: block; font-weight: normal; - font-family: $font-family; + font-family: $font-family-base; font-size: x-small; color: #444; } diff --git a/themes/pmahomme/scss/_variables.scss b/themes/pmahomme/scss/_variables.scss index 10eeb0090c..f42a5a9ce3 100644 --- a/themes/pmahomme/scss/_variables.scss +++ b/themes/pmahomme/scss/_variables.scss @@ -38,14 +38,6 @@ $browse-marker-color: #000; // background of the marker (visually marks row by clicking on it) in browse mode $browse-marker-background: #fc9; -// fonts - -// the font family as a valid css font family value, if not set the browser default will be -// used (depending on browser, DTD and system settings) -$font-family: sans-serif; -// fixed width font family, used in textarea -$font-family-fixed: monospace; - // tables // border @@ -60,6 +52,14 @@ $bg-one: #e5e5e5; $bg-two: #d5d5d5; // Bootstrap +// --------- + +// Typography + +$font-family-base: sans-serif; +$font-family-monospace: monospace; + +// Buttons $enable-gradients: true; $enable-shadows: true; @@ -71,10 +71,14 @@ $secondary: #ddd; $btn-border-radius: 0.85rem; $btn-line-height: 1.15; +// Card + $card-border-color: #999; $card-bg: #f3f3f3; $card-cap-bg: #bbb; $card-cap-color: #fff; +// Alert + $alert-margin-bottom: 0.5em; $alert-border-radius: 5px;