File: 008-bootswatch-sketchy-bs5.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 (37 lines) | stat: -rw-r--r-- 951 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
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
diff --git a/inst/lib/bsw5/dist/sketchy/_bootswatch.scss b/inst/lib/bsw5/dist/sketchy/_bootswatch.scss
index b5ca83b4..6518f2f9 100644
--- a/inst/lib/bsw5/dist/sketchy/_bootswatch.scss
+++ b/inst/lib/bsw5/dist/sketchy/_bootswatch.scss
@@ -159,7 +159,7 @@ select.form-control {
   border-radius: $border-radius-lg-sketchy !important;
 }
 
-[type="checkbox"] {
+[type="checkbox"], #{$shiny-check} input, #{$shiny-check-inline} input {
   position: relative;
   width: 0;
   height: 0;
@@ -200,7 +200,7 @@ select.form-control {
   }
 }
 
-[type="radio"] {
+[type="radio"], #{$shiny-radio} input, #{$shiny-radio-inline} input {
   position: relative;
   width: 0;
   height: 0;
@@ -235,7 +235,13 @@ select.form-control {
   }
 }
 
-.form-check-input {
+#{$shiny-check}, #{$shiny-check-inline}, #{$shiny-radio}, #{$shiny-radio-inline} {
+  span {
+    padding-left: 1rem;
+  }
+}
+
+#{$form-check-input-selector} {
   &:focus {
     box-shadow: none;
   }