File: 006-bootswatch-cerulean.patch

package info (click to toggle)
r-cran-bslib 0.9.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,412 kB
  • sloc: javascript: 13,349; makefile: 33; sh: 23
file content (19 lines) | stat: -rw-r--r-- 599 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/inst/lib/bsw4/dist/cerulean/_bootswatch.scss b/inst/lib/bsw4/dist/cerulean/_bootswatch.scss
index 7a9e3ef..fcfcb8e 100644
--- a/inst/lib/bsw4/dist/cerulean/_bootswatch.scss
+++ b/inst/lib/bsw4/dist/cerulean/_bootswatch.scss
@@ -37,6 +37,14 @@ $text-shadow: 0 1px 0 rgba(0, 0, 0, .05) !default;
   text-shadow: $text-shadow;
 }
 
+// See inst/bs3compat/_declarations.scss
+// It's very important that this come before other btn-* rules
+@if variable-exists("default") {
+  .btn-default {
+    @include btn-shadow($default);
+  }
+}
+
 .btn-primary {
   @include btn-shadow($primary);
 }