activeadmin_blaze_theme 0.7.0 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +13 -0
  3. data/README.md +30 -8
  4. data/activeadmin_blaze_theme.gemspec +1 -13
  5. data/app/assets/stylesheets/activeadmin_blaze_theme/_contents.scss +1 -0
  6. data/app/assets/stylesheets/activeadmin_blaze_theme/_tables.scss +1 -1
  7. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/blaze.colors.scss +30 -0
  8. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/blaze.scss +43 -49
  9. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.addresses.scss +12 -0
  10. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.alerts.scss +59 -0
  11. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.avatars.scss +36 -0
  12. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.badges.scss +60 -0
  13. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.breadcrumbs.scss +20 -0
  14. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.bubbles.scss +49 -0
  15. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.buttons.scss +77 -0
  16. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.calendars.scss +69 -0
  17. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.cards.scss +213 -0
  18. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.headings.scss +14 -0
  19. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.hints.scss +27 -0
  20. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.input-groups.scss +163 -0
  21. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.inputs.scss +135 -0
  22. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.links.scss +31 -0
  23. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.lists.scss +60 -0
  24. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.navs.scss +126 -0
  25. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.overlays.scss +33 -0
  26. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.pagination.scss +42 -0
  27. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.progress.scss +51 -0
  28. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.ranges.scss +114 -0
  29. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tables.scss +88 -0
  30. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tabs.scss +72 -0
  31. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tags.scss +42 -0
  32. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.toggles.scss +74 -0
  33. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{_components.tooltips.scss → components.tooltips.scss} +30 -28
  34. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.trees.scss +47 -0
  35. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.typography.scss +95 -0
  36. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/generics.global.scss +13 -0
  37. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.alerts.scss +6 -0
  38. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.badges.scss +8 -0
  39. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.buttons.scss +43 -82
  40. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.inputs.scss +40 -2
  41. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.links.scss +22 -0
  42. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.lists.scss +10 -0
  43. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.navs.scss +29 -0
  44. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.ranges.scss +89 -0
  45. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.tabs.scss +5 -0
  46. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.toggles.scss +6 -0
  47. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.typography.scss +25 -0
  48. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_objects.containers.scss +10 -0
  49. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_objects.grid.scss +10 -38
  50. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_settings.global.scss +864 -0
  51. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_tools.mediaqueries.scss +34 -13
  52. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_utilities.boxing.scss +125 -0
  53. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_utilities.visibility.scss +46 -6
  54. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.containers.scss +29 -0
  55. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.drawers.scss +88 -0
  56. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.forms.scss +25 -0
  57. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{_objects.grid.responsive.scss → objects.grid.responsive.scss} +14 -14
  58. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{_objects.grid.scss → objects.grid.scss} +2 -2
  59. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{_objects.images.scss → objects.images.scss} +1 -1
  60. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{_objects.media.scss → objects.media.scss} +3 -3
  61. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.modals.scss +58 -0
  62. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{_objects.panels.scss → objects.panels.scss} +11 -1
  63. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/themes/blaze.example.scss +7 -0
  64. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{_utilities.alignment.scss → utilities.alignment.scss} +1 -1
  65. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.boxing.scss +101 -0
  66. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.elevation.scss +19 -0
  67. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.sizes.scss +25 -0
  68. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.visibility.scss +45 -0
  69. data/lib/activeadmin_blaze_theme.rb +3 -3
  70. data/lib/activeadmin_blaze_theme/version.rb +1 -1
  71. data/package.json +1 -1
  72. metadata +59 -206
  73. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.addresses.scss +0 -11
  74. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.alerts.scss +0 -78
  75. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.avatars.scss +0 -38
  76. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.back-to-top.scss +0 -17
  77. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.badges.scss +0 -71
  78. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.breadcrumbs.scss +0 -24
  79. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.buttons.scss +0 -91
  80. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.calendars.scss +0 -80
  81. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.cards.scss +0 -195
  82. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.divider.scss +0 -39
  83. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.file-upload.scss +0 -24
  84. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.github-buttons.scss +0 -131
  85. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.headings.scss +0 -12
  86. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.hints.scss +0 -21
  87. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.input-groups.scss +0 -164
  88. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.inputs.scss +0 -128
  89. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.links.scss +0 -72
  90. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.lists.scss +0 -64
  91. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.navs.scss +0 -83
  92. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.overlays.scss +0 -23
  93. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.pagination.scss +0 -31
  94. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.progress.scss +0 -83
  95. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.ranges.scss +0 -176
  96. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.tables.scss +0 -86
  97. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.tabs.scss +0 -68
  98. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.tags.scss +0 -39
  99. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.timelines.scss +0 -113
  100. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.toggles.scss +0 -89
  101. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.trees.scss +0 -48
  102. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_generics.global.scss +0 -17
  103. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_objects.containers.scss +0 -37
  104. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_objects.drawers.scss +0 -91
  105. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_objects.forms.scss +0 -25
  106. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_objects.modals.scss +0 -70
  107. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.boxing.scss +0 -111
  108. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.elevation.scss +0 -17
  109. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.radius.scss +0 -11
  110. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.sizes.scss +0 -23
  111. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.typography.scss +0 -160
  112. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.visibility.scss +0 -54
  113. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_variables.scss +0 -93
  114. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_utilities.states.scss +0 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1418a94442dd12e46a6ffc132dbad6e4c90989c5a84c6f8823059e28126948e0
4
- data.tar.gz: 2a6b16ebe865f37a752b7aea3d3b2bb2874963601c37b9c4dbc9febfa462655e
3
+ metadata.gz: e4b53242af49f31d662d0c774b78cad40d87ad563c771ce174b8ca8866d1b539
4
+ data.tar.gz: f6b941ff7872c51db2d6c47e5117420d0e5f8e611ca897f7e4db88e61a398e97
5
5
  SHA512:
6
- metadata.gz: 509da409edafd11c8a69d1d7832bf126f34a68014c97ded5fbb91edca3efcad79a7c543182f981a3ddac786860c0eb7f27c34cc6265e4e75a119d81946960f89
7
- data.tar.gz: 8cd4fc6fa5a2b97c81d8d35d062fa0ad5db37631eaaa89da97890bd0aecd540664b532ea66466b027b52f6a6b9dcebc3e4889abffc8ee27725395b65ec79d615
6
+ metadata.gz: 0cd32f3785b930a07522b2ee62bde86e3ce57e75b4e881ddd8c84ae2125871b0cc8d1a0f9ec76bc8549471296f2bb28ca9e489b19eae7bfa54c48eb89bdbf163
7
+ data.tar.gz: 6b79a90746b9365553acf87aa98735d8fe24243cd17385f041863ef767be6ea770bdc681c214e311cdf4a6c3977dd80059b7b600558bded86fff49e4174d4c0a
data/Gemfile CHANGED
@@ -3,3 +3,16 @@
3
3
  source 'https://rubygems.org'
4
4
 
5
5
  gemspec
6
+
7
+ gem 'pry-rails'
8
+
9
+ gem 'activestorage', '~> 6.0'
10
+ gem 'capybara', '~> 3.33'
11
+ gem 'puma', '~> 4.3'
12
+ gem 'rspec-rails'
13
+ gem 'rspec_junit_formatter', '~> 0.4'
14
+ gem 'rubocop', '~> 1.0'
15
+ gem 'sassc', '~> 2.4'
16
+ gem 'selenium-webdriver', '~> 3.142'
17
+ gem 'sprockets-rails', '~> 3.2'
18
+ gem 'sqlite3', '~> 1.4'
data/README.md CHANGED
@@ -1,9 +1,9 @@
1
- # Active Admin Blaze Theme
2
- [![Gem Version](https://badge.fury.io/rb/activeadmin_blaze_theme.svg)](https://badge.fury.io/rb/activeadmin_blaze_theme) [![CircleCI](https://circleci.com/gh/blocknotes/activeadmin_blaze_theme.svg?style=svg)](https://circleci.com/gh/blocknotes/activeadmin_blaze_theme)
1
+ # Active Admin Blaze Theme [![Gem Version](https://badge.fury.io/rb/activeadmin_blaze_theme.svg)](https://badge.fury.io/rb/activeadmin_blaze_theme) [![Specs](https://github.com/blocknotes/activeadmin_blaze_theme/actions/workflows/specs.yml/badge.svg)](https://github.com/blocknotes/activeadmin_blaze_theme/actions/workflows/specs.yml)
3
2
 
4
- A theme for Active Admin using [Blaze CSS](http://blazecss.com/) 9.x.
3
+ A theme for Active Admin using [Blaze CSS](http://blazecss.com) 3.x
5
4
 
6
5
  Features:
6
+
7
7
  - CSS only theme with clean UI
8
8
  - compact nested forms
9
9
  - [customizable](#customize) options: colors, sidebar position, squared style, scroll on cells
@@ -13,9 +13,10 @@ Features:
13
13
  See some [screenshots](#screenshots).
14
14
 
15
15
  ## Install
16
- - Add to your Gemfile: `gem 'activeadmin_blaze_theme'` (and execute `bundle`)
17
16
 
18
- If you installed Active Admin **without** Webpacker support:
17
+ First, add to your Gemfile: `gem 'activeadmin_blaze_theme'` (and execute `bundle`)
18
+
19
+ Then, if you installed Active Admin **without Webpacker** support (so using Sprockets):
19
20
 
20
21
  - Add at the end of your Active Admin styles (_app/assets/stylesheets/active_admin.scss_):
21
22
 
@@ -23,7 +24,7 @@ If you installed Active Admin **without** Webpacker support:
23
24
  @import "activeadmin_blaze_theme/theme";
24
25
  ```
25
26
 
26
- If you are using Webpacker:
27
+ Otherwise, **with Webpacker**:
27
28
 
28
29
  - Add the component to the _package.json_: `yarn add blocknotes/activeadmin_blaze_theme`
29
30
  - Add at the end of your Active Admin javascript pack (_app/javascript/packs/active_admin.js_):
@@ -32,10 +33,21 @@ If you are using Webpacker:
32
33
  require('activeadmin_blaze_theme');
33
34
  ```
34
35
 
35
- - Sometimes it could be necessary to remove the _node_modules_ path a recreate it (`yarn install --check-files`), or to clean the tmp path: `bin/rails tmp:clear`
36
+ - Another option is appending to _app/javascript/stylesheets/active_admin.scss_ (in this case the JS require line is not needed):
37
+
38
+ ```scss
39
+ // ...
40
+ // optionally add custom colors variables here
41
+ @import "~activeadmin_blaze_theme/app/assets/stylesheets/activeadmin_blaze_theme/theme";
42
+ ```
43
+
44
+ - Sometimes it could be necessary to remove the _node_modules_ path and recreate it (using `yarn install --check-files`) or to clean the tmp path: `bin/rails tmp:clear`
36
45
 
37
46
  ## Customize
38
- - To change colors add to your Active Admin styles (before **activeadmin_blaze_theme/theme** import):
47
+
48
+ - Colors customization is available using some Sass variables;
49
+ - With Sprockets: you need to update your Active Admin styles (before **activeadmin_blaze_theme/theme** import line);
50
+ - With Webpacker: you need to import the theme using the Sass/Scss option as described above.
39
51
 
40
52
  ```scss
41
53
  // blaze colors
@@ -104,6 +116,7 @@ body.active_admin .cke {
104
116
  ## Custom fields / components
105
117
 
106
118
  ### Toggle
119
+
107
120
  In *form* \ *inputs* block:
108
121
 
109
122
  ```ruby
@@ -125,6 +138,7 @@ f.input :boolean, as: :blaze_toggle, input_html: { simple_checkbox: true }
125
138
  ```
126
139
 
127
140
  ### Sidebar menu
141
+
128
142
  A sidebar menu (*priority* option permit to put the sidebar above the filters):
129
143
 
130
144
  ```ruby
@@ -144,6 +158,7 @@ end
144
158
  ```
145
159
 
146
160
  ### Accordion
161
+
147
162
  An accordion group in a form:
148
163
 
149
164
  ```ruby
@@ -164,6 +179,7 @@ end
164
179
  ```
165
180
 
166
181
  ### Readonly field
182
+
167
183
  Some readonly fields in a form:
168
184
 
169
185
  ```ruby
@@ -192,6 +208,7 @@ end
192
208
  ```
193
209
 
194
210
  ## Blaze widgets
211
+
195
212
  See components available in Blaze CSS [docs](http://blazecss.com/components/buttons/).
196
213
 
197
214
  Badge example:
@@ -215,9 +232,11 @@ end
215
232
  ```
216
233
 
217
234
  ## Notes
235
+
218
236
  - To use this plugins with Active Admin 1.x please use the version [0.5.12](https://github.com/blocknotes/activeadmin_blaze_theme/releases/tag/v0.5.12)
219
237
 
220
238
  ## Screenshots
239
+
221
240
  Index:
222
241
  ![index](extra/index.png)
223
242
 
@@ -225,12 +244,15 @@ Edit:
225
244
  ![edit](extra/edit.png)
226
245
 
227
246
  ## Do you like it? Star it!
247
+
228
248
  If you use this component just star it. A developer is more motivated to improve a project when there is some interest. My other [Active Admin components](https://github.com/blocknotes?utf8=✓&tab=repositories&q=activeadmin&type=source).
229
249
 
230
250
  Or consider offering me a coffee, it's a small thing but it is greatly appreciated: [about me](https://www.blocknot.es/about-me).
231
251
 
232
252
  ## Contributors
253
+
233
254
  - [Mattia Roccoberton](http://blocknot.es): author
234
255
 
235
256
  ## License
257
+
236
258
  The gem is available as open-source under the terms of the [MIT](LICENSE.txt).
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.authors = ['Mattia Roccoberton']
11
11
  spec.email = ['mat@blocknot.es']
12
12
  spec.summary = 'ActiveAdmin Blaze Theme'
13
- spec.description = 'An ActiveAdmin theme which use Blaze CSS UI toolkit'
13
+ spec.description = 'An ActiveAdmin theme based on Blaze CSS UI toolkit'
14
14
  spec.homepage = 'https://github.com/blocknotes/activeadmin_blaze_theme'
15
15
  spec.license = 'MIT'
16
16
 
@@ -20,16 +20,4 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ['lib']
21
21
 
22
22
  spec.add_runtime_dependency 'activeadmin', '~> 2.0'
23
-
24
- spec.add_development_dependency 'activestorage', '~> 6.0'
25
- spec.add_development_dependency 'capybara', '~> 3.33'
26
- spec.add_development_dependency 'pry', '~> 0.13'
27
- spec.add_development_dependency 'puma', '~> 4.3'
28
- spec.add_development_dependency 'rspec_junit_formatter', '~> 0.4'
29
- spec.add_development_dependency 'rspec-rails', '~> 4.0'
30
- spec.add_development_dependency 'rubocop', '~> 0.90'
31
- spec.add_development_dependency 'sassc', '~> 2.4'
32
- spec.add_development_dependency 'selenium-webdriver', '~> 3.142'
33
- spec.add_development_dependency 'sprockets-rails', '~> 3.2'
34
- spec.add_development_dependency 'sqlite3', '~> 1.4'
35
23
  end
@@ -7,6 +7,7 @@ body.active_admin {
7
7
  .panel {
8
8
  @extend .c-card;
9
9
  @extend .u-high;
10
+ background: $bg-form1;
10
11
  > h3 {
11
12
  @extend .c-card__item;
12
13
  @extend .c-card__item--brand;
@@ -74,7 +74,7 @@ body.active_admin {
74
74
  }
75
75
  }
76
76
  .index_as_table {
77
- overflow-x: scroll;
77
+ overflow-x: auto;
78
78
  }
79
79
  .panel_contents table tr:last-child {
80
80
  > td, > th {
@@ -0,0 +1,30 @@
1
+ @import "mixins/settings.global";
2
+
3
+ //
4
+ // Colors
5
+ //
6
+ @each $name, $value in $colors {
7
+ .u-color-#{$name} {
8
+ color: $value;
9
+ }
10
+
11
+ .u-bg-#{$name} {
12
+ background-color: $value;
13
+ }
14
+
15
+ .u-fill-#{$name} {
16
+ fill: $value;
17
+ }
18
+
19
+ .u-stroke-#{$name} {
20
+ stroke: $value;
21
+ }
22
+ }
23
+
24
+ .u-stroke-none {
25
+ stroke: none;
26
+ }
27
+
28
+ .u-fill-none {
29
+ fill: none;
30
+ }
@@ -1,49 +1,43 @@
1
- // @blaze/css - version: 9.2.0
2
- @import 'variables';
3
- @import 'generics.global';
4
- @import 'components.addresses';
5
- @import 'components.alerts';
6
- @import 'components.avatars';
7
- @import 'components.back-to-top';
8
- @import 'components.badges';
9
- @import 'components.breadcrumbs';
10
- @import 'components.buttons';
11
- @import 'components.calendars';
12
- @import 'components.cards';
13
- @import 'components.divider';
14
- @import 'components.github-buttons';
15
- @import 'components.file-upload';
16
- @import 'components.headings';
17
- @import 'components.hints';
18
- @import 'components.inputs';
19
- @import 'components.input-groups';
20
- @import 'components.links';
21
- @import 'components.lists';
22
- @import 'components.overlays';
23
- @import 'components.navs';
24
- @import 'components.pagination';
25
- @import 'components.progress';
26
- @import 'components.ranges';
27
- @import 'components.tabs';
28
- @import 'components.tables';
29
- @import 'components.tags';
30
- @import 'components.timelines';
31
- @import 'components.toggles';
32
- @import 'components.tooltips';
33
- @import 'components.trees';
34
- @import 'objects.containers';
35
- @import 'objects.grid';
36
- @import 'objects.grid.responsive';
37
- @import 'objects.images';
38
- @import 'objects.panels';
39
- @import 'objects.media';
40
- @import 'objects.forms';
41
- @import 'objects.modals';
42
- @import 'objects.drawers';
43
- @import 'utilities.alignment';
44
- @import 'utilities.boxing';
45
- @import 'utilities.elevation';
46
- @import 'utilities.radius';
47
- @import 'utilities.sizes';
48
- @import 'utilities.typography';
49
- @import 'utilities.visibility';
1
+ // v3.6.3
2
+ @import "generics.global";
3
+ @import "objects.containers";
4
+ @import "objects.grid";
5
+ @import "objects.grid.responsive";
6
+ @import "objects.images";
7
+ @import "objects.panels";
8
+ @import "objects.media";
9
+ @import "objects.forms";
10
+ @import "objects.modals";
11
+ @import "objects.drawers";
12
+ @import "components.typography";
13
+ @import "components.badges";
14
+ @import "components.headings";
15
+ @import "components.addresses";
16
+ @import "components.tables";
17
+ @import "components.cards";
18
+ @import "components.buttons";
19
+ @import "components.links";
20
+ @import "components.lists";
21
+ @import "components.breadcrumbs";
22
+ @import "components.trees";
23
+ @import "components.tabs";
24
+ @import "components.inputs";
25
+ @import "components.input-groups";
26
+ @import "components.hints";
27
+ @import "components.toggles";
28
+ @import "components.tags";
29
+ @import "components.ranges";
30
+ @import "components.pagination";
31
+ @import "components.overlays";
32
+ @import "components.bubbles";
33
+ @import "components.tooltips";
34
+ @import "components.alerts";
35
+ @import "components.calendars";
36
+ @import "components.navs";
37
+ @import "components.progress";
38
+ @import "components.avatars";
39
+ @import "utilities.alignment";
40
+ @import "utilities.boxing";
41
+ @import "utilities.elevation";
42
+ @import "utilities.sizes";
43
+ @import "utilities.visibility";
@@ -0,0 +1,12 @@
1
+ @import "mixins/settings.global";
2
+ @import "mixins/components.typography";
3
+
4
+ .c-address {
5
+ @include paragraph;
6
+ font-style: $address-font-style;
7
+ }
8
+
9
+ .c-address__heading {
10
+ display: block;
11
+ font-weight: $address-heading-font-weight;
12
+ }
@@ -0,0 +1,59 @@
1
+ @import "mixins/components.alerts";
2
+
3
+ .c-alerts {
4
+ display: block;
5
+ position: absolute;
6
+ width: $alerts-width;
7
+ max-height: 100%;
8
+ background-color: $alerts-background-color;
9
+ z-index: $alerts-z-index;
10
+ overflow-y: auto;
11
+ }
12
+
13
+ .c-alerts--topleft {
14
+ top: $alerts-margin;
15
+ left: $alerts-margin;
16
+ }
17
+
18
+ .c-alerts--topright {
19
+ top: $alerts-margin;
20
+ right: $alerts-margin;
21
+ }
22
+
23
+ .c-alerts--bottomleft {
24
+ bottom: 0;
25
+ left: $alerts-margin;
26
+ }
27
+
28
+ .c-alerts--bottomright {
29
+ right: $alerts-margin;
30
+ bottom: 0;
31
+ }
32
+
33
+ .c-alert {
34
+ @include alert-color;
35
+ position: relative;
36
+ margin: $alert-margin;
37
+ padding: $alert-padding;
38
+ border-radius: $alert-border-radius;
39
+ }
40
+
41
+ .c-alert--brand {
42
+ @include alert-color($alert-brand-background-color);
43
+ }
44
+
45
+ .c-alert--info {
46
+ @include alert-color($alert-info-background-color);
47
+ }
48
+
49
+ .c-alert--warning {
50
+ @include alert-color($alert-warning-background-color);
51
+ }
52
+
53
+ .c-alert--success {
54
+ @include alert-color($alert-success-background-color);
55
+ }
56
+
57
+ .c-alert--error {
58
+ @include alert-color($alert-error-background-color);
59
+ }
@@ -0,0 +1,36 @@
1
+ @import "mixins/settings.global";
2
+
3
+ .c-avatar {
4
+ display: inline-block;
5
+ position: relative;
6
+ width: $avatar-medium-size;
7
+ height: $avatar-medium-size;
8
+ margin: $avatar-margin;
9
+ border-radius: $avatar-img-border-radius;
10
+ background-color: $avatar-background-color;
11
+ color: $avatar-color;
12
+ }
13
+
14
+ .c-avatar[data-text]:after {
15
+ position: absolute;
16
+ top: 50%;
17
+ left: 50%;
18
+ transform: translate(-50%, -50%);
19
+ content: attr(data-text);
20
+ }
21
+
22
+ .c-avatar__img {
23
+ display: block;
24
+ width: 100%;
25
+ height: 100%;
26
+ border-radius: $avatar-img-border-radius;
27
+ overflow: hidden;
28
+ }
29
+
30
+ .c-avatar__img + .c-avatar__img {
31
+ position: absolute;
32
+ right: 0;
33
+ bottom: 0;
34
+ width: $avatar-inner-img-size;
35
+ height: $avatar-inner-img-size;
36
+ }
@@ -0,0 +1,60 @@
1
+ @import "mixins/components.badges";
2
+
3
+ .c-badge {
4
+ @include badge($badge-background-color, $badge-color, $badge-background-color);
5
+ display: inline-block;
6
+ margin: $badge-margin;
7
+ padding: $badge-padding;
8
+ border-radius: $badge-border-radius;
9
+ font-size: $badge-font-size;
10
+ font-weight: $badge-font-weight;
11
+ line-height: $badge-line-height;
12
+
13
+ &.c-badge--ghost {
14
+ @include badge($badge-ghost-background-color, $badge-ghost-color)
15
+ }
16
+ }
17
+
18
+ .c-badge--rounded {
19
+ border-radius: $badge-border-radius-rounded;
20
+ }
21
+
22
+ .c-badge--brand {
23
+ @include badge($badge-brand-background-color, $badge-brand-color, $badge-brand-background-color);
24
+
25
+ &.c-badge--ghost {
26
+ @include badge($badge-ghost-brand-background-color, $badge-ghost-brand-color)
27
+ }
28
+ }
29
+
30
+ .c-badge--info {
31
+ @include badge($badge-info-background-color, $badge-info-color, $badge-info-background-color);
32
+
33
+ &.c-badge--ghost {
34
+ @include badge($badge-ghost-info-background-color, $badge-ghost-info-color)
35
+ }
36
+ }
37
+
38
+ .c-badge--warning {
39
+ @include badge($badge-warning-background-color, $badge-warning-color, $badge-warning-background-color);
40
+
41
+ &.c-badge--ghost {
42
+ @include badge($badge-ghost-warning-background-color, $badge-ghost-warning-color)
43
+ }
44
+ }
45
+
46
+ .c-badge--success {
47
+ @include badge($badge-success-background-color, $badge-success-color, $badge-success-background-color);
48
+
49
+ &.c-badge--ghost {
50
+ @include badge($badge-ghost-success-background-color, $badge-ghost-success-color)
51
+ }
52
+ }
53
+
54
+ .c-badge--error {
55
+ @include badge($badge-error-background-color, $badge-error-color, $badge-error-background-color);
56
+
57
+ &.c-badge--ghost {
58
+ @include badge($badge-ghost-error-background-color, $badge-ghost-error-color)
59
+ }
60
+ }