scss: various small fixes and linting issues

- Add generic font classes where missing (except for FontAwesome cfonts)
- Combined some rules with their shorthand form
- Removed unneeded units (0px -> 0)
- Fix some invalid values
- Commented out empty styles in _github.scss

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2020-05-19 10:22:46 +02:00
parent 4c9701c26a
commit e9547a8397
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
10 changed files with 65 additions and 77 deletions

View File

@ -27,7 +27,7 @@ a.button.outline-btn.min-hgt {
.button {
margin: 10px 10px 10px 0;
font-family: Geomanist Book;
font-family: Geomanist Book, sans-serif;
padding: 12px 35px 10px;
min-width: 200px;
box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1);
@ -61,8 +61,7 @@ a.button.outline-btn.min-hgt {
.outline-btn {
background: #fff;
border: 1px solid;
border-color: #0087C8;
border: 1px solid #0087C8;
text-decoration: none;
margin: 0;
}

View File

@ -72,7 +72,7 @@ pre code {
padding: 5px 0 10px 20px;
float: left;
min-height: 100px;
margin: 0px 0 15px 0;
margin: 0 0 15px 0;
width: 100%;
}

View File

@ -24,13 +24,15 @@ github.com style (c) Vasily Polovnyov <vast@whiteants.net>
font-weight: bold;
}
/*
.hljs-number,
.hljs-literal,
.hljs-variable,
.hljs-template-variable,
.hljs-tag .hljs-attr {
// color: #008080;
color: #008080;
}
*/
.hljs-string,
.hljs-doctag {
@ -61,33 +63,37 @@ github.com style (c) Vasily Polovnyov <vast@whiteants.net>
font-weight: normal;
}
/*
.hljs-regexp,
.hljs-link {
// color: #009926;
color: #009926;
}
.hljs-symbol,
.hljs-bullet {
// color: #990073;
color: #990073;
}
.hljs-built_in,
.hljs-builtin-name {
// color: #0086b3;
color: #0086b3;
}
*/
.hljs-meta {
// color: #999;
font-weight: bold;
}
/*
.hljs-deletion {
// background: #fdd;
background: #fdd;
}
.hljs-addition {
// background: #dfd;
background: #dfd;
}
*/
.hljs-emphasis {
font-style: italic;

View File

@ -13,7 +13,7 @@ body#landing {
overflow-x: hidden;
h2, h5, h6 {
font-family: 'Geomanist Regular';
font-family: 'Geomanist Regular', sans-serif;
}
section {
@ -119,8 +119,8 @@ body#landing {
.card {
background-color: $bg-body;
box-shadow: 0px 3px 6px rgba(11, 33, 74, 0.09),
0px -2px 2px rgba(11, 33, 74, 0.03);
box-shadow: 0 3px 6px rgba(11, 33, 74, 0.09),
0 -2px 2px rgba(11, 33, 74, 0.03);
padding: 24px 36px;
min-height: 200px;
@ -198,7 +198,7 @@ body#landing {
padding: 24px 36px;
.title {
font-family: 'Geomanist Book';
font-family: 'Geomanist Book', sans-serif;
line-height: 22px;
font-size: 22px;
}
@ -238,7 +238,7 @@ body#landing {
a.btn {
background-color: #FF3F73;
color: white;
font-family: 'Open Sans';
font-family: 'Open Sans', sans-serif;
font-size: 17px;
font-weight: bold;
padding: 20px 60px;
@ -274,12 +274,12 @@ body#landing {
.help-by-product {
.title {
font-family: 'Geomanist Book';
font-family: 'Geomanist Book', sans-serif;
font-size: 22px;
}
ul.nav.nav-tabs li a, h5, h6 {
font-family: 'Geomanist Regular';
font-family: 'Geomanist Regular', sans-serif;
font-size: 18px;
}

View File

@ -26,7 +26,7 @@
h2,
h3 {
margin-top: 10px;
margin-bottom: 0px;
margin-bottom: 0;
}
h1 {
font-size: 24px;
@ -100,7 +100,7 @@
h2,
h3 {
margin-top: 10px;
margin-bottom: 0px;
margin-bottom: 0;
}
h1 {
font-size: 24px;
@ -124,8 +124,7 @@
height: 100px;
}
.nav-secondary input[type=search] {
background: rgb(78, 77, 77) url(/images/search.png) no-repeat;
background-position: 10px 9px;
background: rgb(78, 77, 77) url(/images/search.png) no-repeat 10px 9px;
}
.nav-sidebar a {
color: #a8a8a8;
@ -221,7 +220,7 @@
h2,
h3 {
margin-top: 10px;
margin-bottom: 0px;
margin-bottom: 0;
}
h1 {
font-size: 24px;
@ -248,7 +247,7 @@
padding: 120px 20px;
}
.main-content {
padding: 0px 10px;
padding: 0 10px;
}
.nav-sidebar a {
color: #a8a8a8;
@ -296,7 +295,7 @@
h2,
h3 {
margin-top: 10px;
margin-bottom: 0px;
margin-bottom: 0;
}
h1 {
font-size: 24px;
@ -322,8 +321,7 @@
and (max-device-width: 1024px)
and (orientation: portrait) {
.nav-secondary input[type=search] {
background: rgba(255, 255, 255, 0.17) url(/images/search.png) no-repeat;
background-position: 10px 9px;
background: rgba(255, 255, 255, 0.17) url(/images/search.png) no-repeat 10px 9px;
}
}
@ -343,8 +341,7 @@
width: 270px;
}
.nav-secondary input[type=search] {
background: rgba(255, 255, 255, 0.17) url(/images/search.png) no-repeat;
background-position: 10px 9px;
background: rgba(255, 255, 255, 0.17) url(/images/search.png) no-repeat 10px 9px;
}
}

View File

@ -113,7 +113,7 @@
.nav-sidebar ul {
list-style: none;
padding: 0px;
padding: 0;
text-align: left;
li {
display: block;
@ -121,7 +121,7 @@
}
.nav-sidebar .nav ul {
padding: 0px 0px 0px 15px;
padding: 0 0 0 15px;
}
.nav-sidebar ul li a:hover {
@ -204,7 +204,7 @@
.toc-nav i.fa {
font-size: 14px;
margin: 0px 8px 0 0;
margin: 0 8px 0 0;
color: #4fa1d0;
}
@ -371,12 +371,12 @@ input:checked+.slider:before {
.ctrl-left {
float: left;
width: 20px;
margin: 3px 0px 0px 0;
margin: 3px 0 0 0;
}
.ctrl-right {
float: right;
padding: 5px 0px;
padding: 5px 0;
}
.ctrl-right .btn-group {

View File

@ -44,21 +44,17 @@ body.night {
background: $bg-secondary-night;
}
.nav-secondary input[type=search] {
background: rgba(76, 76, 76, 0.47) url(/images/search.png) no-repeat;
background-position: 10px 9px;
background: rgba(76, 76, 76, 0.47) url(/images/search.png) no-repeat 10px 9px;
color: $white;
}
.nav-secondary-tabs .search-form input[type=search] {
background: rgba(16, 28, 41, 0.6) url(/images/search.png) no-repeat;
background-position: 10px 9px;
background: rgba(16, 28, 41, 0.6) url(/images/search.png) no-repeat 10px 9px;
}
.nav-secondary-tabs .search-form input[type=search]:focus {
background: rgba(255,255,255,0.17) url(/images/search.png) no-repeat;
background-position: 10px 9px;
background: rgba(255, 255, 255, 0.17) url(/images/search.png) no-repeat 10px 9px;
}
.nav-secondary .search-form input[type=search]:focus {
background: rgba(255, 255, 255, 0.17) url(/images/search.png) no-repeat!important;
background-position: 10px 9px!important;
background: rgba(255, 255, 255, 0.17) url(/images/search.png) no-repeat 10px 9px !important;
}
.sidebar-home,
.sidebar,
@ -130,7 +126,7 @@ body.night {
background: #0a121b !important;
}
pre>code {
padding: 0px;
padding: 0;
}
.nav-secondary .dropdown-btn {
color: #d0e8ff;
@ -175,7 +171,7 @@ body.night {
background: $bg-search-results-night;
border: 1px solid $black;
color: $white;
padding: 20px 0 15px 0px;
padding: 20px 0 15px 0;
margin: 10px 0 0 0;
position: absolute;
width: 800px;
@ -328,7 +324,6 @@ body.night {
cursor: default;
background-color: #4e6071;
border: 1px solid transparent;
border-bottom-color: transparent;
}
.popover {
color: $black;

View File

@ -7,7 +7,7 @@
.nav-secondary-tabs .dropdown-btn {
background: transparent;
color: #fff;
padding: 5px 11px 0px 0px;
padding: 5px 11px 0 0;
margin-top: 7px;
border: 0;
font-size: 12px;
@ -16,7 +16,7 @@
.nav-secondary .dropdown-btn {
background: transparent;
color: #b4d4e4;
padding: 5px 11px 0px 0px;
padding: 5px 11px 0 0;
margin-top: 7px;
border: 0;
font-size: 12px;
@ -68,8 +68,7 @@
.btn-group.open .dropdown-toggle {
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
background: trr;
//box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
background: transparent;
color: #fff;
box-shadow: none;
@ -82,7 +81,7 @@
.open>.dropdown-toggle.btn-default:hover {
color: #fff!important;
background-color: transparent!important;
border-color: none!important;
border-color: transparent !important;
box-shadow: none!important
}
@ -171,4 +170,4 @@ input.gsc-search-button-v2 {
padding: 6px 27px;
min-width: 13px;
margin-top: 2px;
}
}

View File

@ -64,7 +64,7 @@ i.fa.fa-outdent {
.block {
padding: 0px 15px 10px 15px;
padding: 0 15px 10px 15px;
}
@ -86,14 +86,13 @@ img.inline {
.search-form {
float: left;
margin: 5px 0 0px;
margin: 5px 0 0;
// width: 200px;
& input[type=text] {
background: rgba(0, 0, 0, 0.17) url("/images/search.png") no-repeat;
background-position: 10px 9px;
background: rgba(0, 0, 0, 0.17) url("/images/search.png") no-repeat 10px 9px;
border: 0;
color: #0C5176;
border-radius: 0px;
border-radius: 0;
margin: 0;
transition: all 0.2s ease;
width: 230px;
@ -101,8 +100,7 @@ img.inline {
}
.nav-secondary-tabs .search-form input[type=search] {
background: rgba(0, 0, 0, 0.17) url("/images/search.png") no-repeat;
background-position: 10px 9px;
background: rgba(0, 0, 0, 0.17) url("/images/search.png") no-repeat 10px 9px;
border: 0;
box-shadow: none;
color: #fff;
@ -111,7 +109,7 @@ img.inline {
-moz-transition: all 0.2s ease;
-o-transition: all 0.2s ease;
transition: all 0.2s ease;
padding: 0px 0 0 35px;
padding: 0 0 0 35px;
width: 100%;
}
@ -128,22 +126,19 @@ input[type=text],
}
.nav-secondary-tabs .search-form input[type=search]:focus {
background: rgba(255, 255, 255, 0.17) url(/images/search.png) no-repeat;
background-position: 10px 9px;
background: rgba(255, 255, 255, 0.17) url(/images/search.png) no-repeat 10px 9px;
}
.nav-secondary-tabs.affix input[type=search],
input[type=text] {
background: rgba(0, 0, 0, 0.17) url(/images/search.png) no-repeat;
background-position: 10px 9px;
background: rgba(0, 0, 0, 0.17) url(/images/search.png) no-repeat 10px 9px;
border: 1px solid transparent;
box-shadow: none;
transition: all 0.2s ease;
}
.nav-secondary input[type=search] {
background: rgba(0, 0, 0, 0.17) url("/images/search.png") no-repeat;
background-position: 10px 9px;
background: rgba(0, 0, 0, 0.17) url("/images/search.png") no-repeat 10px 9px;
border: 0;
box-shadow: none;
color: #fff;
@ -152,12 +147,11 @@ input[type=text] {
-moz-transition: all 0.2s ease;
-o-transition: all 0.2s ease;
transition: all 0.2s ease;
padding: 0px 0 0 35px;
padding: 0 0 0 35px;
}
.nav-secondary .search-form input[type=search]:focus {
background: rgba(255,255,255,0.17) url(/images/search.png) no-repeat;
background-position: 10px 9px;
background: rgba(255, 255, 255, 0.17) url(/images/search.png) no-repeat 10px 9px;
}
.search-form input[type=search]::-webkit-input-placeholder {
@ -214,7 +208,7 @@ div#autocompleteResults {
background: #E6F5FD;
border: 1px solid #eee;
box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.28);
padding: 20px 0 15px 0px;
padding: 20px 0 15px 0;
margin: 10px 0 0 0;
position: absolute;
width: 600px!important;
@ -246,9 +240,9 @@ div#autocompleteResults span {
.autocompleteList {
list-style-type: none;
width: 400px;
/* commented out 0px padding to allow inherit padding, search results on autocompleteList were getting smashed up against left margin due to this */
/* padding:0px; */
margin-bottom: 0px;
/* commented out 0 padding to allow inherit padding, search results on autocompleteList were getting smashed up against left margin due to this */
/* padding: 0; */
margin-bottom: 0;
}
.autoCompleteResult {
@ -262,9 +256,9 @@ div#autocompleteResults span {
.autocompleteList li {
width: 380px;
border: 0px;
border: 0;
padding-right: 20px;
margin: 0px;
margin: 0;
}
/*
*
@ -308,11 +302,9 @@ input.gsc-search-button, input.gsc-search-button:hover, input.gsc-search-button:
}
.alert-info {
border: 0;
border: 0 #bce8f1;
border-radius: 0;
color: #31708f;
background-color: #3F51B5!important;
border-color: #bce8f1;
text-align: center;
color: #fff;
margin-bottom: 0;

View File

@ -32,7 +32,7 @@ $bg-body: #fff;
$heading-color: #254356;
$body-text-color: #33444C;//grey #11 in color pallette
$body-text-color: #33444C;//grey #11 in color palette
$bg-footer: #fff;