epages-essence 0.1.0 → 0.2.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.
Files changed (107) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +4 -3
  4. data/app/assets/images/essence/icon_component/arrow_right.svg +1 -0
  5. data/app/assets/images/essence/icon_component/chevron_up_down.svg +3 -0
  6. data/app/assets/images/essence/icon_component/power_off.svg +1 -0
  7. data/app/assets/images/essence/icon_component/sparkles.svg +1 -0
  8. data/app/assets/images/essence/icon_component/x_mark.svg +3 -0
  9. data/app/assets/stylesheets/essence/beyond/{_base.scss → layout/base.css} +0 -5
  10. data/app/assets/stylesheets/essence/beyond/layout/{_content.scss → content.css} +1 -1
  11. data/app/assets/stylesheets/essence/beyond/simple_form/control.css +249 -0
  12. data/app/assets/stylesheets/essence/beyond/simple_form/error.css +29 -0
  13. data/app/assets/stylesheets/essence/beyond/simple_form/fieldset.css +32 -0
  14. data/app/assets/stylesheets/essence/beyond/simple_form/group.css +21 -0
  15. data/app/assets/stylesheets/essence/beyond/simple_form/hint.css +6 -0
  16. data/app/assets/stylesheets/essence/beyond/simple_form/label.css +38 -0
  17. data/app/assets/stylesheets/essence/beyond/simple_form/row.css +5 -0
  18. data/app/assets/stylesheets/essence/beyond/simple_form/wrapper.css +3 -0
  19. data/app/assets/stylesheets/essence/beyond/utils/margin.css +15 -0
  20. data/app/assets/stylesheets/essence/beyond/variables.css +281 -0
  21. data/app/assets/stylesheets/essence/beyond.css +39 -0
  22. data/app/components/essence/action_bar_component/action_bar_component.css +23 -0
  23. data/app/components/essence/action_bar_component.rb +2 -1
  24. data/app/components/essence/app_info_component/app_info_component.css +45 -0
  25. data/app/components/essence/application_component.rb +1 -3
  26. data/app/components/essence/breadcrumb_component/breadcrumb_component.css +35 -0
  27. data/app/components/essence/button_component/button_component.css +140 -0
  28. data/app/components/essence/button_component/button_component.html.erb +2 -0
  29. data/app/components/essence/button_component/button_component_controller.js +27 -0
  30. data/app/components/essence/button_component.rb +27 -2
  31. data/app/components/essence/button_group_component/button_group_component.css +21 -0
  32. data/app/components/essence/button_group_component/button_group_component.html.erb +5 -0
  33. data/app/components/essence/button_group_component.rb +28 -0
  34. data/app/components/essence/card_component/card_component.css +66 -0
  35. data/app/components/essence/card_component/card_component.html.erb +6 -0
  36. data/app/components/essence/card_component/ribbon_component.html.erb +3 -0
  37. data/app/components/essence/card_component.rb +38 -4
  38. data/app/components/essence/clipboard_copy_component/{clipboard_copy_component.scss → clipboard_copy_component.css} +4 -4
  39. data/app/components/essence/empty_state_component/empty_state_component.css +42 -0
  40. data/app/components/essence/expandable_component/expandable_component.css +36 -0
  41. data/app/components/essence/expandable_component/expandable_component.html.erb +8 -0
  42. data/app/components/essence/expandable_component/expandable_component_controller.js +32 -0
  43. data/app/components/essence/expandable_component.rb +30 -0
  44. data/app/components/essence/expandable_toggle_component/expandable_toggle_component.css +7 -0
  45. data/app/components/essence/expandable_toggle_component/expandable_toggle_component.html.erb +3 -0
  46. data/app/components/essence/expandable_toggle_component/expandable_toggle_component.yml +4 -0
  47. data/app/components/essence/expandable_toggle_component/expandable_toggle_component_controller.js +52 -0
  48. data/app/components/essence/expandable_toggle_component.rb +38 -0
  49. data/app/components/essence/flash_component/container_component.html.erb +7 -0
  50. data/app/components/essence/flash_component/flash_component.css +101 -0
  51. data/app/components/essence/flash_component/flash_component.html.erb +11 -0
  52. data/app/components/essence/flash_component/flash_component_controller.js +24 -0
  53. data/app/components/essence/flash_component.rb +29 -0
  54. data/app/components/essence/link_component/link_component.css +49 -0
  55. data/app/components/essence/notification_component/notification_component.css +55 -0
  56. data/app/components/essence/notification_component.rb +6 -2
  57. data/app/components/essence/paragraph_component/{paragraph_component.scss → paragraph_component.css} +0 -5
  58. data/app/components/essence/scroll_shadow_component/{scroll_shadow_component.scss → scroll_shadow_component.css} +4 -0
  59. data/app/components/essence/spinner_component/{spinner_component.scss → spinner_component.css} +5 -12
  60. data/app/components/essence/spinner_component/spinner_component.html.erb +1 -1
  61. data/app/components/essence/spinner_component.rb +4 -2
  62. data/app/components/essence/status_component/status_component.css +64 -0
  63. data/app/components/essence/status_component.rb +1 -1
  64. data/app/components/essence/step_list_component/step_list_component.css +72 -0
  65. data/app/components/essence/step_list_component/step_list_component.html.erb +3 -1
  66. data/app/components/essence/step_list_component.rb +7 -1
  67. data/app/components/essence/table_component/{table_component.scss → table_component.css} +5 -8
  68. data/app/components/essence/title_component/{title_component.scss → title_component.css} +0 -4
  69. data/app/components/essence/tooltip_component/tooltip_component.css +55 -0
  70. data/app/inputs/file_input.rb +73 -0
  71. data/app/javascript/essence/application.js +2 -2
  72. data/app/javascript/essence/controllers/file_input_controller.js +41 -0
  73. data/app/javascript/essence/controllers/index.js +18 -3
  74. data/app/views/essence/beyond/body.html.erb +1 -0
  75. data/config/importmap.rb +3 -0
  76. data/config/initializers/essence/inline_svg.rb +5 -0
  77. data/config/initializers/essence/simple_form.rb +29 -8
  78. data/config/locales/essence.en.yml +3 -0
  79. data/lib/components/input_group.rb +19 -0
  80. data/lib/essence/engine.rb +20 -5
  81. data/lib/essence/version.rb +1 -1
  82. data/lib/essence.rb +1 -1
  83. data/vendor/assets/stylesheets/essence/flexboxgrid.css +824 -0
  84. metadata +78 -53
  85. data/app/assets/config/essence_manifest.js +0 -5
  86. data/app/assets/stylesheets/essence/beyond/components/_index.scss +0 -17
  87. data/app/assets/stylesheets/essence/beyond/layout/_index.scss +0 -1
  88. data/app/assets/stylesheets/essence/beyond/simple_form/_control.scss +0 -172
  89. data/app/assets/stylesheets/essence/beyond/simple_form/_error.scss +0 -27
  90. data/app/assets/stylesheets/essence/beyond/simple_form/_fieldset.scss +0 -34
  91. data/app/assets/stylesheets/essence/beyond/simple_form/_group.scss +0 -6
  92. data/app/assets/stylesheets/essence/beyond/simple_form/_hint.scss +0 -8
  93. data/app/assets/stylesheets/essence/beyond/simple_form/_index.scss +0 -43
  94. data/app/assets/stylesheets/essence/beyond/simple_form/_label.scss +0 -26
  95. data/app/assets/stylesheets/essence/beyond/simple_form/_wrapper.scss +0 -5
  96. data/app/assets/stylesheets/essence/beyond.scss +0 -4
  97. data/app/components/essence/action_bar_component/action_bar_component.scss +0 -29
  98. data/app/components/essence/app_info_component/app_info_component.scss +0 -45
  99. data/app/components/essence/breadcrumb_component/breadcrumb_component.scss +0 -39
  100. data/app/components/essence/button_component/button_component.scss +0 -105
  101. data/app/components/essence/card_component/card_component.scss +0 -21
  102. data/app/components/essence/empty_state_component/empty_state_component.scss +0 -50
  103. data/app/components/essence/link_component/link_component.scss +0 -58
  104. data/app/components/essence/notification_component/notification_component.scss +0 -63
  105. data/app/components/essence/status_component/status_component.scss +0 -80
  106. data/app/components/essence/step_list_component/step_list_component.scss +0 -79
  107. data/app/components/essence/tooltip_component/tooltip_component.scss +0 -63
@@ -1,4 +0,0 @@
1
- @import 'beyond/base';
2
- @import 'beyond/components';
3
- @import 'beyond/layout';
4
- @import 'beyond/simple_form';
@@ -1,29 +0,0 @@
1
- :root {
2
- --workspace-toolbar-background: white;
3
- --workspace-toolbar-border: 1px solid rgba(0, 0, 0, 0.2);
4
- --header-bar-height: 73px;
5
- }
6
-
7
- .action-bar {
8
- background-color: var(--workspace-toolbar-background);
9
- border-bottom: var(--workspace-toolbar-border);
10
- height: var(--header-bar-height);
11
- position: sticky;
12
- top: 0;
13
- z-index: 1;
14
-
15
- &-wrapper {
16
- align-items: center;
17
- display: flex;
18
- height: 100%;
19
- justify-content: space-between;
20
- padding: 0 25px;
21
- }
22
-
23
- &-left-content,
24
- &-right-content {
25
- align-items: center;
26
- display: flex;
27
- gap: 30px;
28
- }
29
- }
@@ -1,45 +0,0 @@
1
- .app-info {
2
- display: grid;
3
- grid-template-columns: 10fr 2fr;
4
- column-gap: 30px;
5
- grid-auto-rows: minmax(auto, max-content);
6
-
7
- &-headline {
8
- color: var(--card-headline);
9
- font-size: 190%;
10
- font-weight: normal;
11
- line-height: 1;
12
- }
13
-
14
- &-sub-headline {
15
- margin-top: 15px;
16
- font-size: 110%;
17
- color: var(--workspace-headline);
18
- font-weight: bold;
19
- line-height: 1;
20
- }
21
-
22
- &-text {
23
- ul {
24
- padding-left: 24px;
25
-
26
- li {
27
- list-style: none;
28
-
29
- &::before {
30
- background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9 21.035l-9-8.638 2.791-2.87 6.156 5.874 12.21-12.436 2.843 2.817z"/></svg>');
31
- content: '';
32
- background-size: contain;
33
- display: inline-block;
34
- width: 10px;
35
- height: 10px;
36
- margin-right: 6px;
37
- }
38
- }
39
- }
40
- }
41
-
42
- &-logo {
43
- width: 100%;
44
- }
45
- }
@@ -1,39 +0,0 @@
1
- :root {
2
- --breadcrumb-text: #787878;
3
- --breadcrumb-link: #787878;
4
- --breadcrumb-link-hover: #525252;
5
- --breadcrumb-icon: #787878;
6
- }
7
-
8
- .breadcrumb {
9
- font-size: 90%;
10
-
11
- &-icon {
12
- fill: var(--breadcrumb-icon);
13
-
14
- &:first-child {
15
- width: 12px;
16
- height: 12px;
17
- margin-right: 4px;
18
- }
19
-
20
- &:not(:first-child) {
21
- width: 8px;
22
- height: 8px;
23
- margin: 0 10px;
24
- }
25
- }
26
-
27
- &-item {
28
- color: var(--breadcrumb-link);
29
- text-decoration: none;
30
-
31
- &:hover {
32
- color: var(--breadcrumb-link-hover);
33
- }
34
- }
35
-
36
- &-current {
37
- color: var(--breadcrumb-text);
38
- }
39
- }
@@ -1,105 +0,0 @@
1
- :root {
2
- --button-text: white;
3
- --button-borderRadius: 4px;
4
- --button-borderBottom-width: 2px;
5
- --button-horizontal-padding: calc(8px - 2px / 2);
6
- --button-primary-background: orange;
7
- --button-primary-background-hover: #cc8400;
8
- --button-primary-borderBottom-color: #cc8400;
9
- --button-secondary-background: #999999;
10
- --button-secondary-background-hover: #7f7f7f;
11
- --button-secondary-borderBottom-color: #7f7f7f;
12
- --button-danger-background: #da3c3c;
13
- --button-danger-background-hover: #ae3535;
14
- --button-danger-borderBottom-color: #ae3535;
15
- --button-disabled-background: #d0d0d0;
16
- --button-disabled-borderBottom-color: #aaaaaa;
17
- --button-disabled-text: #909090;
18
- --button-disabled-textShadow: 1px 1px 0 #ffffff;
19
- --button-outline-border-color: orange;
20
- --button-outline-border-width: 1px;
21
- --button-outline-borderBottom-width: 2px;
22
- --button-outline-background: transparent;
23
- --button-outline-background-hover: #ffedcc;
24
- --button-outline-text: #eb9800;
25
- }
26
-
27
- .button {
28
- border: 0;
29
- border-bottom-style: solid;
30
- border-bottom-width: var(--button-borderBottom-width);
31
- border-radius: var(--button-borderRadius);
32
- color: var(--button-text);
33
- cursor: pointer;
34
- display: inline-flex;
35
- font-weight: bold;
36
- height: fit-content;
37
- line-height: 1;
38
- padding: var(--button-horizontal-padding) 12px;
39
- text-decoration: none;
40
- transition: all 0.4s cubic-bezier(0, 0, 0.1, 1);
41
- width: fit-content;
42
- white-space: nowrap;
43
-
44
- &-primary {
45
- background: var(--button-primary-background);
46
- border-bottom-color: var(--button-primary-borderBottom-color);
47
-
48
- &:hover {
49
- background: var(--button-primary-background-hover);
50
- }
51
- }
52
-
53
- &-secondary {
54
- background: var(--button-secondary-background);
55
- border-bottom-color: var(--button-secondary-borderBottom-color);
56
-
57
- &:hover {
58
- background: var(--button-secondary-background-hover);
59
- }
60
- }
61
-
62
- &-danger {
63
- background: var(--button-danger-background);
64
- border-bottom-color: var(--button-danger-borderBottom-color);
65
-
66
- &:hover {
67
- background: var(--button-danger-background-hover);
68
- }
69
- }
70
-
71
- &-outline {
72
- background-color: var(--button-outline-background);
73
- border: var(--button-outline-border-width) solid var(--button-outline-border-color);
74
- border-bottom-width: var(--button-outline-borderBottom-width);
75
- color: var(--button-outline-text);
76
- padding-top: calc(var(--button-horizontal-padding) - 1px);
77
-
78
- &:hover {
79
- background-color: var(--button-outline-background-hover);
80
- }
81
- }
82
-
83
- &-icon {
84
- fill: currentColor;
85
- height: 14px;
86
- width: 14px;
87
-
88
- &:first-child {
89
- margin-right: 5px;
90
- }
91
-
92
- &:last-child {
93
- margin-left: 6px;
94
- }
95
- }
96
-
97
- &:disabled {
98
- background: var(--button-disabled-background);
99
- border-color: var(--button-disabled-background);
100
- border-bottom-color: var(--button-disabled-borderBottom-color);
101
- color: var(--button-disabled-text);
102
- cursor: default;
103
- text-shadow: var(--button-disabled-textShadow);
104
- }
105
- }
@@ -1,21 +0,0 @@
1
- :root {
2
- --card-headline: #a3a3a3;
3
- --card-background: white;
4
- --card-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
5
- --card-divider-border: 1px solid #e6e6e6;
6
- --card-borderRadius: 3px;
7
- --card-padding: 40px;
8
- }
9
-
10
- .card {
11
- background-color: var(--card-background);
12
- border-radius: var(--card-borderRadius);
13
- box-shadow: var(--card-shadow);
14
- padding: var(--card-padding);
15
-
16
- &-headline {
17
- color: var(--card-headline);
18
- font-size: 140%;
19
- margin: -10px 0 .83em;
20
- }
21
- }
@@ -1,50 +0,0 @@
1
- :root {
2
- --emptyState-surface: #e3e3e3;
3
- --emptyState-bubbles: #dedede;
4
- --emptyState-outline: #575757;
5
- --emptyState-headline: #676767;
6
- --emptyState-help-text: gray;
7
- }
8
-
9
- .empty-state {
10
- align-items: center;
11
- display: flex;
12
- justify-content: center;
13
-
14
- &-image {
15
- flex-shrink: 0;
16
- margin: 0 60px 0 0;
17
- max-width: 200px;
18
-
19
- .bubbles {
20
- fill: var(--emptyState-bubbles);
21
- }
22
-
23
- .outline {
24
- fill: var(--emptyState-outline);
25
- }
26
-
27
- .surface {
28
- fill: var(--emptyState-surface);
29
- }
30
- }
31
-
32
- &-text {
33
- display: grid;
34
- gap: 20px;
35
- }
36
-
37
- &-headline {
38
- color: var(--emptyState-headline);
39
- font-size: 300%;
40
- font-weight: lighter;
41
- line-height: 1;
42
- margin-bottom: 0;
43
- }
44
-
45
- &-body {
46
- color: var(--emptyState-help-text);
47
- font-size: 125%;
48
- margin: 0;
49
- }
50
- }
@@ -1,58 +0,0 @@
1
- :root {
2
- --primaryLink-color: deepskyblue;
3
- --primaryLink-hover-color: #0099cc;
4
- --secondaryLink-color: #787878;
5
- --secondaryLink-hover-color: #5e5e5e;
6
- --dangerLink-color: #da3c3c;
7
- --dangerLink-hover-color: #bf2424;
8
- }
9
-
10
- .link {
11
- align-items: center;
12
- background-color: transparent;
13
- border: 0;
14
- cursor: pointer;
15
- display: inline-flex;
16
- height: fit-content;
17
- padding: 0;
18
- text-decoration: none;
19
- white-space: nowrap;
20
-
21
- &-primary {
22
- color: var(--primaryLink-color);
23
-
24
- &:hover {
25
- color: var(--primaryLink-hover-color);
26
- }
27
- }
28
-
29
- &-secondary {
30
- color: var(--secondaryLink-color);
31
-
32
- &:hover {
33
- color: var(--secondaryLink-hover-color);
34
- }
35
- }
36
-
37
- &-danger {
38
- color: var(--dangerLink-color);
39
-
40
- &:hover {
41
- color: var(--dangerLink-hover-color);
42
- }
43
- }
44
-
45
- &-icon {
46
- fill: currentColor;
47
- height: 15px;
48
- width: 15px;
49
-
50
- &:first-child {
51
- margin-right: 5px;
52
- }
53
-
54
- &:last-child {
55
- margin-left: 6px;
56
- }
57
- }
58
- }
@@ -1,63 +0,0 @@
1
- :root {
2
- --notification-background: white;
3
- --notification-text: gray;
4
- --notification-borderRadius: 4px;
5
- --notification-success: #97c344;
6
- --notification-info: #999999;
7
- --notification-warning: #f3b547;
8
- --notification-danger: #da3c3c;
9
- }
10
-
11
- .notification {
12
- background-color: var(--notification-background);
13
- border-radius: var(--notification-borderRadius);
14
- display: flex;
15
-
16
- &-body {
17
- color: var(--notification-text);
18
- padding: 8px 14px;
19
- }
20
-
21
- &-danger {
22
- border: 1px solid var(--notification-danger);
23
-
24
- .notification-indicator {
25
- background-color: var(--notification-danger);
26
- }
27
- }
28
-
29
- &-icon {
30
- display: block;
31
- fill: var(--notification-background);
32
- height: 18px;
33
- width: 18px;
34
- }
35
-
36
- &-indicator {
37
- padding: 10px 8px;
38
- }
39
-
40
- &-info {
41
- border: 1px solid var(--notification-info);
42
-
43
- .notification-indicator {
44
- background-color: var(--notification-info);
45
- }
46
- }
47
-
48
- &-success {
49
- border: 1px solid var(--notification-success);
50
-
51
- .notification-indicator {
52
- background-color: var(--notification-success);
53
- }
54
- }
55
-
56
- &-warning {
57
- border: 1px solid var(--notification-warning);
58
-
59
- .notification-indicator {
60
- background-color: var(--notification-warning);
61
- }
62
- }
63
- }
@@ -1,80 +0,0 @@
1
- :root {
2
- --todo-status-background: #f9dca7;
3
- --todo-status-text: #af740b;
4
- --todo-status-icon: #f0a217;
5
- --active-status-background: #cde2a5;
6
- --active-status-text: #4e6721;
7
- --active-status-icon: #8ab43a;
8
- --danger-status-background: #eeb3a7;
9
- --danger-status-text: #c72626;
10
- --danger-status-icon: #e46f6f;
11
- --outline-status-background: transparent;
12
- --outline-status-border: #b3b3b3;
13
- --outline-status-text: #808080;
14
- --outline-status-icon: #cdcdcd;
15
- }
16
-
17
- .status {
18
- align-items: center;
19
- border-radius: 3px;
20
- display: inline-flex;
21
- font-size: 12px;
22
- font-weight: 500;
23
- line-height: 1.2;
24
- padding: 4px 6px;
25
-
26
- &-bubble {
27
- border-radius: 3px;
28
- display: inline-flex;
29
- flex-shrink: 0;
30
- height: 10px;
31
- margin-right: 6px;
32
- width: 10px;
33
-
34
- &-dotted {
35
- border: 1px dotted currentColor;
36
- }
37
-
38
- &-outline,
39
- &-solid {
40
- border: 1px solid currentColor;
41
- }
42
- }
43
-
44
- &-todo {
45
- background-color: var(--todo-status-background);
46
- color: var(--todo-status-text);
47
-
48
- .status-bubble-solid {
49
- background-color: var(--todo-status-icon);
50
- }
51
- }
52
-
53
- &-active {
54
- background-color: var(--active-status-background);
55
- color: var(--active-status-text);
56
-
57
- .status-bubble-solid {
58
- background-color: var(--active-status-icon);
59
- }
60
- }
61
-
62
- &-danger {
63
- background-color: var(--danger-status-background);
64
- color: var(--danger-status-text);
65
-
66
- .status-bubble-solid {
67
- background-color: var(--danger-status-icon);
68
- }
69
- }
70
-
71
- &-outline {
72
- background-color: var(--outline-status-background);
73
- border: 1px solid var(--outline-status-border);
74
- color: var(--outline-status-text);
75
-
76
- .status-bubble-solid {
77
- background-color: var(--outline-status-icon);
78
- }
79
- }
80
- }
@@ -1,79 +0,0 @@
1
- :root {
2
- --stepList-background: #f0f0f0;
3
- --stepList-headline: #747474;
4
- --stepList-bubble-line: #808080;
5
- --stepList-bubble-background: #808080;
6
- --stepList-bubble-text: white;
7
- }
8
-
9
- .step-list {
10
- background-color: var(--stepList-background);
11
- padding: 25px;
12
- counter-reset: item-count;
13
-
14
- &-title {
15
- color: var(--stepList-headline);
16
- font-size: 20px;
17
- font-weight: bold;
18
- margin-bottom: 15px;
19
- margin-top: 0;
20
- }
21
-
22
- &-items {
23
- margin-left: -2px;
24
- }
25
-
26
- &-item {
27
- display: flex;
28
-
29
- &:not(:nth-last-child(1 of .step-list-item)) {
30
- padding-bottom: 20px;
31
-
32
- > div:first-child {
33
- &::before {
34
- content: ' ';
35
- position: absolute;
36
- left: 10px;
37
- width: 2px;
38
- height: 100%;
39
- background-color: var(--stepList-bubble-line);
40
- top: 20px;
41
- }
42
- }
43
- }
44
-
45
- > div:first-child {
46
- position: relative;
47
- width: 35px;
48
- }
49
- }
50
-
51
- &-bubble {
52
- width: 20px;
53
- height: 20px;
54
- border-radius: 10px;
55
- background-color: var(--stepList-bubble-background);
56
- color: var(--stepList-bubble-text);
57
- line-height: 19px;
58
- font-size: 11px;
59
- font-weight: bold;
60
- text-align: center;
61
-
62
- &::before {
63
- counter-increment: item-count;
64
- content: counter(item-count);
65
- }
66
- }
67
-
68
- &-headline {
69
- font-weight: bold;
70
- line-height: 1.2;
71
- margin-bottom: 5px;
72
- color: var(--stepList-headline);
73
- }
74
-
75
- &-description {
76
- font-size: 14px;
77
- margin: 0;
78
- }
79
- }
@@ -1,63 +0,0 @@
1
- :root {
2
- --tooltip-icon: orange;
3
- --tooltip-background: white;
4
- --tooltip-text: #3e3e3e;
5
- --tooltip-borderRadius: 3px;
6
- --tooltip-boxShadow: 0 0 14px 0 rgba(0, 0, 0, 0.4);
7
- }
8
-
9
- .tooltip {
10
- display: flex;
11
-
12
- &-arrow {
13
- background: var(--tooltip-background);
14
- height: 10px;
15
- position: absolute;
16
- width: 10px;
17
- z-index: -1;
18
- }
19
-
20
- &-bubble {
21
- background-color: var(--tooltip-background);
22
- border-radius: var(--tooltip-borderRadius);
23
- box-shadow: var(--tooltip-boxShadow);
24
- color: var(--tooltip-text);
25
- cursor: default;
26
- display: none;
27
- font-size: 13px;
28
- font-weight: normal;
29
- line-height: 1.4;
30
- max-width: 350px;
31
- padding: 1em;
32
- position: absolute;
33
- transition: opacity cubic-bezier(0, 0, 0.57, 0.74) 0.2s, 0.2s visibility;
34
- z-index: 1;
35
-
36
- &:before {
37
- content: '';
38
- display: block;
39
- height: 14px;
40
- left: -10px;
41
- position: absolute;
42
- top: 50%;
43
- transform: translateY(-50%);
44
- width: 10px;
45
- }
46
-
47
- &:hover {
48
- display: block;
49
- }
50
- }
51
-
52
- &-icon {
53
- fill: var(--tooltip-icon);
54
- height: 14px;
55
- width: 14px;
56
-
57
- &:hover {
58
- ~ .tooltip-bubble {
59
- display: block;
60
- }
61
- }
62
- }
63
- }