File: build-a-box.scss

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 (85 lines) | stat: -rw-r--r-- 1,502 bytes parent folder | download
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
.popover {
  --bs-popover-max-width: 400px;
}

/* FIXME: Remove after rstudio/htmltools#401 */
.html-fill-container > .html-fill-item {
  overflow: visible !important;
}

#preview + .card,
.bslib-card .card-body {
  overflow: visible !important;
}

.shiny-input-container:not(.shiny-input-container-inline) {
  width: 100% !important;
}

.selectize-control {
  margin-bottom: 0 !important;
}

.input-text-code textarea {
  font-family: var(--bs-font-monospace);
}

.active-preview::before {
  --active-border: 4px solid rgba(var(--bs-danger-rgb), 0.25);
  content: '';
  border-top: var(--active-border);
  position: absolute;
  top: -12px;
  width: 100%;
}

#preview .bslib-grid > div {
  position: relative;
}

.shuffle-button {
  display: grid;
  grid-template-columns: minmax(0, 2em) auto;
  align-items: center;
  justify-content: center;
}

.btn-group > .shuffle-button {
  padding: 0;
}

.container {
  display: flex;
  flex-direction: column;
  height: 100vh;

  header, main {
    flex-shrink: 0;
  }
}

.bslib-gap-spacing > .shiny-html-output > .bslib-mb-spacing {
  margin-bottom: 0;
}

.icon-gradient {
  opacity: 0.8;
  &:hover, &:focus { opacity: 1 }
  fill: url('#bslib---icon-gradient') $blue !important;
}

@include media-breakpoint-down(sm) {
  .value-box-previews {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }

  .active-preview::before {
    border-top: unset;
    border-left: var(--active-border);
    top: 0;
    bottom: 0;
    left: -0.75rem;
    height: 100%;
  }
}