@abrasileirado/dsgovbr-bootstraped 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abrasileirado/dsgovbr-bootstraped",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "Camada de compatibilidade visual não oficial entre o Bootstrap 5 e o Design System GOV.BR (DSGovBR)",
5
5
  "license": "MIT",
6
6
  "author": "Kelson da Costa Medeiros",
@@ -147,3 +147,8 @@ $govbr-switch-on: #5992ed !default; // --on (blue-warm-vivid-40)
147
147
  $govbr-switch-width: 52px !default; // --switch-width-medium
148
148
  $govbr-switch-height: 30px !default; // --switch-height-medium
149
149
  $govbr-switch-toggle: 22px !default; // --switch-toggle-medium
150
+
151
+ // Sombras grandes: vendor/govbr-ds-core/src/partial/scss/configs/_elevation.scss
152
+ // ($shadow-lg e $shadow-lg-up: offset-lg / offset-lg-n, blur-lg, secondary-09 a opacity-xs).
153
+ $govbr-shadow-lg: 0 6px 6px rgba(0, 0, 0, 0.16) !default; // skiplink
154
+ $govbr-shadow-lg-up: 0 -6px 6px rgba(0, 0, 0, 0.16) !default; // cookiebar
@@ -68,3 +68,44 @@
68
68
  .btn-link.rounded-circle:hover {
69
69
  @include govbr-hover;
70
70
  }
71
+
72
+ // Sign-in do GOV.BR DS (vendor/govbr-ds-core/src/components/signin): .btn-light
73
+ // vira a pílula de fundo cinza-claro (--gray-2) com texto e ícone na cor
74
+ // interativa, 16px de respiro lateral e imagem de até 20px ("Entrar com
75
+ // gov.br"). No modo escuro, fundo --background-dark e texto --interactive-dark.
76
+ .btn-light {
77
+ --#{$prefix}btn-bg: #{$govbr-gray-2};
78
+ --#{$prefix}btn-color: #{$govbr-interactive};
79
+ --#{$prefix}btn-border-color: transparent;
80
+ --#{$prefix}btn-hover-bg: #{$govbr-gray-2};
81
+ --#{$prefix}btn-hover-color: #{$govbr-interactive};
82
+ --#{$prefix}btn-hover-border-color: transparent;
83
+ --#{$prefix}btn-active-bg: #{$govbr-gray-2};
84
+ --#{$prefix}btn-active-color: #{$govbr-active};
85
+ --#{$prefix}btn-active-border-color: transparent;
86
+ --#{$prefix}btn-padding-x: 16px;
87
+ gap: 8px;
88
+ padding-top: 0;
89
+ padding-bottom: 0;
90
+
91
+ &:hover {
92
+ @include govbr-hover;
93
+ }
94
+
95
+ img {
96
+ max-height: 20px;
97
+ }
98
+ }
99
+
100
+ [data-bs-theme="dark"] .btn-light {
101
+ --#{$prefix}btn-bg: #{$govbr-background-dark};
102
+ --#{$prefix}btn-color: #{$govbr-interactive-dark};
103
+ --#{$prefix}btn-hover-bg: #{$govbr-background-dark};
104
+ --#{$prefix}btn-hover-color: #{$govbr-interactive-dark};
105
+ --#{$prefix}btn-active-bg: #{$govbr-background-dark};
106
+ --#{$prefix}btn-active-color: #{$govbr-color-dark};
107
+
108
+ &:hover {
109
+ @include govbr-hover($govbr-interactive-dark);
110
+ }
111
+ }
@@ -0,0 +1,7 @@
1
+ // Cookiebar do GOV.BR DS (vendor/govbr-ds-core/src/components/cookiebar):
2
+ // composição com .offcanvas-bottom (ver componentes/auxiliares.html). O
3
+ // painel inferior ganha a sombra para cima do cookiebar no lugar da borda.
4
+ .offcanvas-bottom {
5
+ border-top: 0;
6
+ box-shadow: $govbr-shadow-lg-up;
7
+ }
@@ -77,24 +77,7 @@
77
77
  @include govbr-hover($govbr-interactive-dark);
78
78
  }
79
79
 
80
- // "Entrar" (Sign-in do GOV.BR DS): pílula de fundo cinza-claro com texto e
81
- // ícone na cor interativa, 16,8px.
82
- .navbar .btn-light {
83
- --#{$prefix}btn-bg: #{$govbr-gray-2};
84
- --#{$prefix}btn-color: #{$govbr-interactive};
85
- --#{$prefix}btn-hover-bg: #{$govbr-gray-2};
86
- --#{$prefix}btn-hover-color: #{$govbr-interactive};
87
- --#{$prefix}btn-active-bg: #{$govbr-gray-2};
88
- --#{$prefix}btn-active-color: #{$govbr-active};
89
- gap: 8px;
90
- padding-top: 0;
91
- padding-bottom: 0;
92
- font-size: $govbr-font-size-up-01;
93
-
94
- &:hover {
95
- @include govbr-hover;
96
- }
97
- }
80
+ // O "Entrar" (.btn-light) vem de components/_button.scss (Sign-in).
98
81
 
99
82
  // Busca do Header: campo de 40px com fundo cinza-claro, sem borda visível e
100
83
  // espaço à direita para o botão circular de pesquisa.
@@ -0,0 +1,25 @@
1
+ // Skiplink do GOV.BR DS (vendor/govbr-ds-core/src/components/skiplink):
2
+ // .visually-hidden-focusable, ao receber foco, aparece fixo no topo, a 16px
3
+ // da esquerda, com fundo, sombra grande, largura mínima de 300px e itens de
4
+ // 56px. Um <nav class="visually-hidden-focusable"> com vários links aparece
5
+ // inteiro, em linha (variante "full" do GOV.BR DS).
6
+ .visually-hidden-focusable:focus,
7
+ .visually-hidden-focusable:focus-within {
8
+ position: fixed;
9
+ top: 0;
10
+ left: 16px; // --skiplink-margin
11
+ z-index: $zindex-toast + 10;
12
+ display: inline-flex;
13
+ min-width: 300px; // --skiplink-min-width
14
+ background-color: var(--#{$prefix}body-bg);
15
+ box-shadow: $govbr-shadow-lg;
16
+ }
17
+
18
+ a.visually-hidden-focusable,
19
+ .visually-hidden-focusable a {
20
+ display: inline-flex;
21
+ align-items: center;
22
+ min-height: 56px;
23
+ padding: 8px 16px;
24
+ white-space: nowrap;
25
+ }
@@ -40,4 +40,6 @@
40
40
  @import "components/navbar";
41
41
  @import "components/menu";
42
42
  @import "components/footer";
43
+ @import "components/skiplink";
44
+ @import "components/cookiebar";
43
45
  @import "components/dark";