@abrasileirado/dsgovbr-bootstraped 0.6.0 → 0.8.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.
@@ -0,0 +1,125 @@
1
+ // Navbar como o Header do GOV.BR DS (vendor/govbr-ds-core/src/components/header).
2
+ // A estrutura, os breakpoints e os plugins continuam os do Bootstrap; o Header
3
+ // completo é uma composição (ver docs/exemplos/admin.html):
4
+ // linha de cima: logo, .vr e assinatura (.navbar-text); à direita, botões
5
+ // circulares (.btn.btn-link.rounded-circle) com dropdown e o "Entrar"
6
+ // (.btn.btn-light.btn-sm);
7
+ // linha de baixo: acionador do menu, título (.navbar-brand) com subtítulo
8
+ // (.navbar-text logo depois) e a busca (form[role="search"]).
9
+ .navbar {
10
+ box-shadow: $govbr-shadow-sm;
11
+ }
12
+
13
+ // Título (--header-title-size): 14px no celular, 20,16px a partir de sm e
14
+ // 24,19px a partir do lg do GOV.BR DS (1280px; aqui o xl do Bootstrap, 1200px).
15
+ .navbar-brand {
16
+ font-weight: normal;
17
+ }
18
+
19
+ @include media-breakpoint-up(sm) {
20
+ .navbar-brand {
21
+ font-size: $govbr-font-size-up-02;
22
+ }
23
+ }
24
+
25
+ @include media-breakpoint-up(xl) {
26
+ .navbar-brand {
27
+ font-size: $govbr-font-size-up-03;
28
+ }
29
+ }
30
+
31
+ // Assinatura e subtítulo no texto padrão, não na cor dos links.
32
+ .navbar-text {
33
+ color: var(--#{$prefix}body-color);
34
+ }
35
+
36
+ // Subtítulo (--header-subtitle-size): logo abaixo do título, em peso médio;
37
+ // oculto no celular, 11,66px a partir de sm e 14px a partir do xl.
38
+ .navbar-brand + .navbar-text {
39
+ display: none;
40
+ padding: 4px 0 0;
41
+ font-size: $govbr-font-size-down-01;
42
+ font-weight: $govbr-font-weight-medium;
43
+ }
44
+
45
+ @include media-breakpoint-up(sm) {
46
+ .navbar-brand + .navbar-text {
47
+ display: block;
48
+ }
49
+ }
50
+
51
+ @include media-breakpoint-up(xl) {
52
+ .navbar-brand + .navbar-text {
53
+ font-size: $govbr-font-size-base;
54
+ }
55
+ }
56
+
57
+ .navbar-toggler {
58
+ border: 0;
59
+ }
60
+
61
+ .navbar-nav .nav-link {
62
+ border-radius: $govbr-button-radius;
63
+
64
+ &.active {
65
+ font-weight: $govbr-font-weight-semibold;
66
+ }
67
+ }
68
+
69
+ .navbar-nav .nav-link:hover:not(.disabled),
70
+ .navbar-toggler:hover {
71
+ @include govbr-hover;
72
+ }
73
+
74
+ [data-bs-theme="dark"] .navbar-nav .nav-link:hover:not(.disabled),
75
+ [data-bs-theme="dark"] .navbar-toggler:hover,
76
+ [data-bs-theme="dark"].navbar .navbar-toggler:hover {
77
+ @include govbr-hover($govbr-interactive-dark);
78
+ }
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
+ }
98
+
99
+ // Busca do Header: campo de 40px com fundo cinza-claro, sem borda visível e
100
+ // espaço à direita para o botão circular de pesquisa.
101
+ .navbar [role="search"] {
102
+ position: relative;
103
+
104
+ .form-control {
105
+ height: $govbr-button-height-medium;
106
+ padding-top: 0;
107
+ padding-bottom: 0;
108
+ padding-right: $govbr-button-height-medium;
109
+ font-size: $govbr-font-size-up-01;
110
+ font-weight: $govbr-font-weight-medium;
111
+ background-color: $govbr-gray-2;
112
+ border-color: transparent;
113
+
114
+ &::placeholder {
115
+ font-style: italic;
116
+ }
117
+ }
118
+
119
+ .btn.rounded-circle {
120
+ position: absolute;
121
+ top: 50%;
122
+ right: 4px;
123
+ transform: translateY(-50%);
124
+ }
125
+ }
@@ -0,0 +1,12 @@
1
+ // Loading indeterminado do GOV.BR DS: arco azul interativo (44px/4px e
2
+ // 24px/2px, ver _bootstrap-settings.scss). Dentro de botões o spinner segue a
3
+ // cor do texto do botão, como no Bootstrap.
4
+ .spinner-border,
5
+ .spinner-grow {
6
+ color: $govbr-interactive;
7
+ }
8
+
9
+ .btn .spinner-border,
10
+ .btn .spinner-grow {
11
+ color: inherit;
12
+ }
@@ -0,0 +1,5 @@
1
+ // Toast como a Message do GOV.BR DS: superfície opaca com sombra (variáveis
2
+ // em _bootstrap-settings.scss) e título do cabeçalho em semi-bold.
3
+ .toast-header strong {
4
+ font-weight: $govbr-font-weight-semibold;
5
+ }
@@ -0,0 +1,16 @@
1
+ // Tooltip e popover do GOV.BR DS (vendor/govbr-ds-core/src/components/tooltip):
2
+ // fundo azul informativo, texto branco em peso médio, raio 4px e sombra.
3
+ .tooltip-inner {
4
+ font-weight: $govbr-font-weight-medium;
5
+ box-shadow: $govbr-tooltip-shadow;
6
+ text-align: left;
7
+ }
8
+
9
+ .popover-header {
10
+ font-weight: $govbr-font-weight-semibold;
11
+ padding-bottom: 0;
12
+ }
13
+
14
+ .popover-body {
15
+ font-weight: $govbr-font-weight-medium;
16
+ }
@@ -16,9 +16,28 @@
16
16
 
17
17
  // Ajustes que as variáveis de tema, sozinhas, não resolvem — um adaptador
18
18
  // por componente (ver docs/desenvolvimento.md).
19
+ @import "mixins";
20
+
19
21
  @import "components/alert";
20
22
  @import "components/badge";
21
23
  @import "components/pagination";
22
24
  @import "components/button";
23
25
  @import "components/card";
24
26
  @import "components/form";
27
+ @import "components/focus";
28
+ @import "components/accordion";
29
+ @import "components/breadcrumb";
30
+ @import "components/close";
31
+ @import "components/list-group";
32
+ @import "components/nav";
33
+ @import "components/dropdown";
34
+ @import "components/tooltip";
35
+ @import "components/spinner";
36
+ @import "components/toast";
37
+ @import "components/modal";
38
+ @import "components/carousel";
39
+ @import "components/divider";
40
+ @import "components/navbar";
41
+ @import "components/menu";
42
+ @import "components/footer";
43
+ @import "components/dark";