mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-09-16 06:13:32 -06:00
Compare commits
4 Commits
v0.10.0
...
fix-darken
Author | SHA1 | Date | |
---|---|---|---|
|
ef215b6586 | ||
|
a0724c4370 | ||
|
aeaa79cf27 | ||
|
9643336838 |
76
Gemfile.lock
76
Gemfile.lock
@@ -10,19 +10,18 @@ PATH
|
|||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
Ascii85 (1.1.0)
|
Ascii85 (1.1.1)
|
||||||
addressable (2.8.6)
|
addressable (2.8.7)
|
||||||
public_suffix (>= 2.0.2, < 6.0)
|
public_suffix (>= 2.0.2, < 7.0)
|
||||||
afm (0.2.2)
|
afm (0.2.2)
|
||||||
async (2.11.0)
|
async (2.17.0)
|
||||||
console (~> 1.25, >= 1.25.2)
|
console (~> 1.26)
|
||||||
fiber-annotation
|
fiber-annotation
|
||||||
io-event (~> 1.5, >= 1.5.1)
|
io-event (~> 1.6, >= 1.6.5)
|
||||||
timers (~> 4.1)
|
|
||||||
bigdecimal (3.1.8)
|
bigdecimal (3.1.8)
|
||||||
colorator (1.1.0)
|
colorator (1.1.0)
|
||||||
concurrent-ruby (1.2.3)
|
concurrent-ruby (1.3.4)
|
||||||
console (1.25.2)
|
console (1.27.0)
|
||||||
fiber-annotation
|
fiber-annotation
|
||||||
fiber-local (~> 1.1)
|
fiber-local (~> 1.1)
|
||||||
json
|
json
|
||||||
@@ -32,19 +31,24 @@ GEM
|
|||||||
ethon (0.16.0)
|
ethon (0.16.0)
|
||||||
ffi (>= 1.15.0)
|
ffi (>= 1.15.0)
|
||||||
eventmachine (1.2.7)
|
eventmachine (1.2.7)
|
||||||
faraday (2.9.0)
|
faraday (2.12.0)
|
||||||
faraday-net_http (>= 2.0, < 3.2)
|
faraday-net_http (>= 2.0, < 3.4)
|
||||||
faraday-net_http (3.1.0)
|
json
|
||||||
|
logger
|
||||||
|
faraday-net_http (3.3.0)
|
||||||
net-http
|
net-http
|
||||||
ffi (1.16.3)
|
ffi (1.17.0-arm64-darwin)
|
||||||
|
ffi (1.17.0-x86_64-linux-gnu)
|
||||||
fiber-annotation (0.2.0)
|
fiber-annotation (0.2.0)
|
||||||
fiber-local (1.1.0)
|
fiber-local (1.1.0)
|
||||||
fiber-storage
|
fiber-storage
|
||||||
fiber-storage (0.1.0)
|
fiber-storage (1.0.0)
|
||||||
forwardable-extended (2.6.0)
|
forwardable-extended (2.6.0)
|
||||||
google-protobuf (4.26.1-arm64-darwin)
|
google-protobuf (4.28.2-arm64-darwin)
|
||||||
|
bigdecimal
|
||||||
rake (>= 13)
|
rake (>= 13)
|
||||||
google-protobuf (4.26.1-x86_64-linux)
|
google-protobuf (4.28.2-x86_64-linux)
|
||||||
|
bigdecimal
|
||||||
rake (>= 13)
|
rake (>= 13)
|
||||||
hashery (2.1.2)
|
hashery (2.1.2)
|
||||||
html-proofer (5.0.9)
|
html-proofer (5.0.9)
|
||||||
@@ -57,10 +61,10 @@ GEM
|
|||||||
yell (~> 2.0)
|
yell (~> 2.0)
|
||||||
zeitwerk (~> 2.5)
|
zeitwerk (~> 2.5)
|
||||||
http_parser.rb (0.8.0)
|
http_parser.rb (0.8.0)
|
||||||
i18n (1.14.4)
|
i18n (1.14.6)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
io-event (1.5.1)
|
io-event (1.7.1)
|
||||||
jekyll (4.3.3)
|
jekyll (4.3.4)
|
||||||
addressable (~> 2.4)
|
addressable (~> 2.4)
|
||||||
colorator (~> 1.0)
|
colorator (~> 1.0)
|
||||||
em-websocket (~> 0.5)
|
em-websocket (~> 0.5)
|
||||||
@@ -98,12 +102,13 @@ GEM
|
|||||||
listen (3.9.0)
|
listen (3.9.0)
|
||||||
rb-fsevent (~> 0.10, >= 0.10.3)
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
||||||
rb-inotify (~> 0.9, >= 0.9.10)
|
rb-inotify (~> 0.9, >= 0.9.10)
|
||||||
|
logger (1.6.1)
|
||||||
mercenary (0.4.0)
|
mercenary (0.4.0)
|
||||||
net-http (0.4.1)
|
net-http (0.4.1)
|
||||||
uri
|
uri
|
||||||
nokogiri (1.16.5-arm64-darwin)
|
nokogiri (1.16.7-arm64-darwin)
|
||||||
racc (~> 1.4)
|
racc (~> 1.4)
|
||||||
nokogiri (1.16.5-x86_64-linux)
|
nokogiri (1.16.7-x86_64-linux)
|
||||||
racc (~> 1.4)
|
racc (~> 1.4)
|
||||||
octokit (6.1.1)
|
octokit (6.1.1)
|
||||||
faraday (>= 1, < 3)
|
faraday (>= 1, < 3)
|
||||||
@@ -116,38 +121,35 @@ GEM
|
|||||||
hashery (~> 2.0)
|
hashery (~> 2.0)
|
||||||
ruby-rc4
|
ruby-rc4
|
||||||
ttfunk
|
ttfunk
|
||||||
public_suffix (5.0.5)
|
public_suffix (6.0.1)
|
||||||
racc (1.7.3)
|
racc (1.8.1)
|
||||||
rainbow (3.1.1)
|
rainbow (3.1.1)
|
||||||
rake (13.2.1)
|
rake (13.2.1)
|
||||||
rb-fsevent (0.11.2)
|
rb-fsevent (0.11.2)
|
||||||
rb-inotify (0.10.1)
|
rb-inotify (0.11.1)
|
||||||
ffi (~> 1.0)
|
ffi (~> 1.0)
|
||||||
rexml (3.3.6)
|
rexml (3.3.8)
|
||||||
strscan
|
rouge (4.4.0)
|
||||||
rouge (4.2.1)
|
|
||||||
ruby-rc4 (0.1.5)
|
ruby-rc4 (0.1.5)
|
||||||
safe_yaml (1.0.5)
|
safe_yaml (1.0.5)
|
||||||
sass-embedded (1.75.0-arm64-darwin)
|
sass-embedded (1.79.4-arm64-darwin)
|
||||||
google-protobuf (>= 3.25, < 5.0)
|
google-protobuf (~> 4.27)
|
||||||
sass-embedded (1.75.0-x86_64-linux-gnu)
|
sass-embedded (1.79.4-x86_64-linux-gnu)
|
||||||
google-protobuf (>= 3.25, < 5.0)
|
google-protobuf (~> 4.27)
|
||||||
sawyer (0.9.2)
|
sawyer (0.9.2)
|
||||||
addressable (>= 2.3.5)
|
addressable (>= 2.3.5)
|
||||||
faraday (>= 0.17.3, < 3)
|
faraday (>= 0.17.3, < 3)
|
||||||
strscan (3.1.0)
|
|
||||||
terminal-table (3.0.2)
|
terminal-table (3.0.2)
|
||||||
unicode-display_width (>= 1.1.1, < 3)
|
unicode-display_width (>= 1.1.1, < 3)
|
||||||
timers (4.3.5)
|
|
||||||
ttfunk (1.8.0)
|
ttfunk (1.8.0)
|
||||||
bigdecimal (~> 3.1)
|
bigdecimal (~> 3.1)
|
||||||
typhoeus (1.4.1)
|
typhoeus (1.4.1)
|
||||||
ethon (>= 0.9.0)
|
ethon (>= 0.9.0)
|
||||||
unicode-display_width (2.5.0)
|
unicode-display_width (2.6.0)
|
||||||
uri (0.13.0)
|
uri (0.13.1)
|
||||||
webrick (1.8.1)
|
webrick (1.8.2)
|
||||||
yell (2.2.2)
|
yell (2.2.2)
|
||||||
zeitwerk (2.6.13)
|
zeitwerk (2.6.18)
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
arm64-darwin
|
arm64-darwin
|
||||||
|
@@ -1,6 +1,8 @@
|
|||||||
// Buttons and things that look like buttons
|
// Buttons and things that look like buttons
|
||||||
// stylelint-disable color-named
|
// stylelint-disable color-named
|
||||||
|
|
||||||
|
@use "sass:color";
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@@ -35,7 +37,7 @@
|
|||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&.zeroclipboard-is-hover {
|
&.zeroclipboard-is-hover {
|
||||||
color: darken($link-color, 2%);
|
color: color.adjust($link-color, $lightness: -2%);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
@@ -43,19 +45,19 @@
|
|||||||
&.zeroclipboard-is-hover,
|
&.zeroclipboard-is-hover,
|
||||||
&.zeroclipboard-is-active {
|
&.zeroclipboard-is-active {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
background-color: darken($base-button-color, 1%);
|
background-color: color.adjust($base-button-color, $lightness: -1%);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:active,
|
&:active,
|
||||||
&.selected,
|
&.selected,
|
||||||
&.zeroclipboard-is-active {
|
&.zeroclipboard-is-active {
|
||||||
background-color: darken($base-button-color, 3%);
|
background-color: color.adjust($base-button-color, $lightness: -3%);
|
||||||
background-image: none;
|
background-image: none;
|
||||||
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
|
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
&.selected:hover {
|
&.selected:hover {
|
||||||
background-color: darken(#dcdcdc, 5%);
|
background-color: color.adjust(#dcdcdc, $lightness: -5%);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:disabled,
|
&:disabled,
|
||||||
@@ -80,7 +82,7 @@
|
|||||||
&:active,
|
&:active,
|
||||||
&.zeroclipboard-is-hover,
|
&.zeroclipboard-is-hover,
|
||||||
&.zeroclipboard-is-active {
|
&.zeroclipboard-is-active {
|
||||||
color: darken($link-color, 4%);
|
color: color.adjust($link-color, $lightness: -4%);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
box-shadow: inset 0 0 0 3px $grey-lt-300;
|
box-shadow: inset 0 0 0 3px $grey-lt-300;
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
@use "sass:color";
|
||||||
|
|
||||||
$color-scheme: dark;
|
$color-scheme: dark;
|
||||||
$body-background-color: $grey-dk-300;
|
$body-background-color: $grey-dk-300;
|
||||||
$body-heading-color: $grey-lt-000;
|
$body-heading-color: $grey-lt-000;
|
||||||
@@ -9,7 +11,7 @@ $base-button-color: $grey-dk-250;
|
|||||||
$btn-primary-color: $blue-200;
|
$btn-primary-color: $blue-200;
|
||||||
$code-background-color: #31343f; // OneDarkJekyll default for syntax-one-dark-vivid
|
$code-background-color: #31343f; // OneDarkJekyll default for syntax-one-dark-vivid
|
||||||
$code-linenumber-color: #dee2f7; // OneDarkJekyll .nf for syntax-one-dark-vivid
|
$code-linenumber-color: #dee2f7; // OneDarkJekyll .nf for syntax-one-dark-vivid
|
||||||
$feedback-color: darken($sidebar-color, 3%);
|
$feedback-color: color.adjust($sidebar-color, $lightness: -3%);
|
||||||
$table-background-color: $grey-dk-250;
|
$table-background-color: $grey-dk-250;
|
||||||
$search-background-color: $grey-dk-250;
|
$search-background-color: $grey-dk-250;
|
||||||
$search-result-preview-color: $grey-dk-000;
|
$search-result-preview-color: $grey-dk-000;
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
@use "sass:color";
|
||||||
|
|
||||||
$color-scheme: light !default;
|
$color-scheme: light !default;
|
||||||
$body-background-color: $white !default;
|
$body-background-color: $white !default;
|
||||||
$body-heading-color: $grey-dk-300 !default;
|
$body-heading-color: $grey-dk-300 !default;
|
||||||
@@ -8,7 +10,7 @@ $sidebar-color: $grey-lt-000 !default;
|
|||||||
$base-button-color: #f7f7f7 !default;
|
$base-button-color: #f7f7f7 !default;
|
||||||
$btn-primary-color: $purple-100 !default;
|
$btn-primary-color: $purple-100 !default;
|
||||||
$code-background-color: $grey-lt-000 !default;
|
$code-background-color: $grey-lt-000 !default;
|
||||||
$feedback-color: darken($sidebar-color, 3%) !default;
|
$feedback-color: color.adjust($sidebar-color, $lightness: -3%) !default;
|
||||||
$table-background-color: $white !default;
|
$table-background-color: $white !default;
|
||||||
$search-background-color: $white !default;
|
$search-background-color: $white !default;
|
||||||
$search-result-preview-color: $grey-dk-000 !default;
|
$search-result-preview-color: $grey-dk-000 !default;
|
||||||
|
@@ -1,9 +1,11 @@
|
|||||||
// Colored button
|
// Colored button
|
||||||
|
|
||||||
|
@use "sass:color";
|
||||||
|
|
||||||
@mixin btn-color($fg, $bg) {
|
@mixin btn-color($fg, $bg) {
|
||||||
color: $fg;
|
color: $fg;
|
||||||
background-color: darken($bg, 2%);
|
background-color: color.adjust($bg, $lightness: -2%);
|
||||||
background-image: linear-gradient(lighten($bg, 5%), darken($bg, 2%));
|
background-image: linear-gradient(color.adjust($bg, $lightness: 5%), color.adjust($bg, $lightness: -2%));
|
||||||
box-shadow:
|
box-shadow:
|
||||||
0 1px 3px rgba(0, 0, 0, 0.25),
|
0 1px 3px rgba(0, 0, 0, 0.25),
|
||||||
0 4px 10px rgba(0, 0, 0, 0.12);
|
0 4px 10px rgba(0, 0, 0, 0.12);
|
||||||
@@ -11,19 +13,19 @@
|
|||||||
&:hover,
|
&:hover,
|
||||||
&.zeroclipboard-is-hover {
|
&.zeroclipboard-is-hover {
|
||||||
color: $fg;
|
color: $fg;
|
||||||
background-color: darken($bg, 4%);
|
background-color: color.adjust($bg, $lightness: -4%);
|
||||||
background-image: linear-gradient((lighten($bg, 2%), darken($bg, 4%)));
|
background-image: linear-gradient((color.adjust($bg, $lightness: 2%), color.adjust($bg, $lightness: -4%)));
|
||||||
}
|
}
|
||||||
|
|
||||||
&:active,
|
&:active,
|
||||||
&.selected,
|
&.selected,
|
||||||
&.zeroclipboard-is-active {
|
&.zeroclipboard-is-active {
|
||||||
background-color: darken($bg, 5%);
|
background-color: color.adjust($bg, $lightness: -5%);
|
||||||
background-image: none;
|
background-image: none;
|
||||||
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
|
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
&.selected:hover {
|
&.selected:hover {
|
||||||
background-color: darken($bg, 10%);
|
background-color: color.adjust($bg, $lightness: -10%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user