testio-tailwind 2.2.0 → 3.0.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 (62) hide show
  1. package/.eleventy.js +4 -6
  2. package/package.json +8 -7
  3. package/src/_includes/header.njk +14 -2
  4. package/src/_includes/page-with-sidebar-nocode.njk +5 -3
  5. package/src/_includes/page-with-sidebar.njk +12 -10
  6. package/src/assets/images/assets_issuing/logo_bancontact.svg +3 -0
  7. package/src/assets/scripts/modules/echarts_gauge.js +2 -1
  8. package/src/assets/stylesheets/app.css +3 -0
  9. package/src/assets/stylesheets/components/actionbar.css +1 -1
  10. package/src/assets/stylesheets/components/badges.css +56 -0
  11. package/src/assets/stylesheets/components/banner_card.css +1 -1
  12. package/src/assets/stylesheets/components/buttons.css +4 -4
  13. package/src/assets/stylesheets/components/cards.css +5 -61
  14. package/src/assets/stylesheets/components/chat.css +11 -11
  15. package/src/assets/stylesheets/components/checkboxes_radiobuttons.css +6 -11
  16. package/src/assets/stylesheets/components/customer/customer_productcards.css +5 -5
  17. package/src/assets/stylesheets/components/devices.css +4 -4
  18. package/src/assets/stylesheets/components/dropdown.css +2 -25
  19. package/src/assets/stylesheets/components/form_card.css +1 -1
  20. package/src/assets/stylesheets/components/forms.css +2 -2
  21. package/src/assets/stylesheets/components/layout.css +1 -1
  22. package/src/assets/stylesheets/components/list_item.css +9 -9
  23. package/src/assets/stylesheets/components/metasidebar.css +2 -1
  24. package/src/assets/stylesheets/components/notifications.css +1 -0
  25. package/src/assets/stylesheets/components/popover.css +15 -113
  26. package/src/assets/stylesheets/components/resultmodule.css +1 -1
  27. package/src/assets/stylesheets/components/scrollbars.css +8 -0
  28. package/src/assets/stylesheets/components/sidebar.css +3 -2
  29. package/src/assets/stylesheets/components/tables.css +4 -4
  30. package/src/assets/stylesheets/components/tabs.css +5 -8
  31. package/src/assets/stylesheets/components/tags.css +1 -1
  32. package/src/assets/stylesheets/components/task_issue_item.css +1 -1
  33. package/src/assets/stylesheets/components/test_header.css +1 -0
  34. package/src/assets/stylesheets/components/test_item.css +2 -2
  35. package/src/assets/stylesheets/components/tester/tester_cards.css +1 -1
  36. package/src/assets/stylesheets/components/tom_select.css +3 -3
  37. package/src/assets/stylesheets/components/trix_editor.css +2 -1
  38. package/src/assets/stylesheets/components/user_item.css +1 -1
  39. package/src/assets/stylesheets/tailwind_config.css +17 -10
  40. package/src/assets/stylesheets/tailwind_theme_dark.css +22 -0
  41. package/src/pages/buttons/block.haml +29 -32
  42. package/src/pages/buttons/buttons-round.haml +2 -2
  43. package/src/pages/buttons/buttons-sm.haml +2 -2
  44. package/src/pages/buttons/buttons.haml +2 -2
  45. package/src/pages/buttons/buttons_input.haml +2 -2
  46. package/src/pages/buttons/square-buttons.haml +2 -2
  47. package/src/pages/charts/area.haml +2 -2
  48. package/src/pages/charts/bar_horizontal.haml +2 -2
  49. package/src/pages/charts/bar_vertical.haml +6 -6
  50. package/src/pages/charts/donut.haml +3 -3
  51. package/src/pages/charts/gauge.haml +3 -3
  52. package/src/pages/examples/layout-actionbar.haml +1 -1
  53. package/src/pages/examples/layout-basic.haml +1 -1
  54. package/src/pages/examples/layout-sidebar.haml +1 -1
  55. package/src/pages/forms/form_grid.haml +17 -0
  56. package/src/pages/forms/form_grid_narrow.haml +7 -7
  57. package/src/pages/issuing/brand_logos.haml +4 -0
  58. package/src/pages/layout/app_layout.haml +1 -1
  59. package/src/pages/layout/margins.haml +8 -8
  60. package/src/pages/layout/max_width.haml +1 -1
  61. package/src/pages/layout/paddings.haml +8 -8
  62. package/src/pages/forms/form-grid.haml +0 -17
package/.eleventy.js CHANGED
@@ -6,11 +6,9 @@ const markdownIt = require('./utils/markdown.js');
6
6
  module.exports = function (eleventyConfig) {
7
7
  // Folders to copy to build dir (See. 1.1)
8
8
  eleventyConfig.addPassthroughCopy({
9
- "src/static/site.webmanifest": ".",
10
- "src/static/*": "static",
11
- "src/assets/fonts/*": "assets/fonts",
12
- "src/static/downloads/*": "downloads",
13
- "src/assets/images/*": "assets/images"
9
+ "src/static/site.webmanifest": "./",
10
+ "src/static/*": "static",
11
+ "src/static/downloads/*": "downloads"
14
12
  })
15
13
 
16
14
  // Filters
@@ -45,7 +43,7 @@ module.exports = function (eleventyConfig) {
45
43
  includes: "_includes",
46
44
  layouts: "_layouts"
47
45
  },
48
- templateFormats: ["html", "md", "njk", "pug", "haml", "png", "svg", "eot", "ttf", "woff", "woff2", "jpg", "otf"],
46
+ templateFormats: ["html", "md", "njk", "pug", "haml"],
49
47
  htmlTemplateEngine: "njk",
50
48
 
51
49
  // 1.1 Enable eleventy to pass dirs specified above
package/package.json CHANGED
@@ -1,19 +1,20 @@
1
1
  {
2
2
  "name": "testio-tailwind",
3
- "version": "2.2.0",
3
+ "version": "3.0.0",
4
4
  "description": "Tailwind based design system for Test IO",
5
5
  "scripts": {
6
6
  "clean": "del dist --force",
7
+ "create-dist": "mkdirp dist",
8
+ "create-static": "mkdirp dist/static",
7
9
  "dev:11ty": "eleventy --serve --watch",
8
- "dev:tailwind": "npx @tailwindcss/cli -i ./src/assets/stylesheets/app.css -o dist/static/app.compiled.css --watch",
9
10
  "dev:scripts": "webpack --watch --config webpack.config.js",
10
- "build:tailwind": " npx @tailwindcss/cli -i ./src/assets/stylesheets/app.css -o dist/static/app.compiled.css --minify",
11
+ "dev:tailwind": "npx @tailwindcss/cli -i ./src/assets/stylesheets/app.css -o dist/static/app.compiled.css --watch",
11
12
  "build:11ty": "eleventy",
12
- "build:scripts": "webpack --mode production --config webpack.config.js",
13
+ "build:tailwind": "npx @tailwindcss/cli -i ./src/assets/stylesheets/app.css -o dist/static/app.compiled.css --minify",
14
+ "build:scripts": "webpack --config webpack.config.js --mode production ",
13
15
  "build:icon-page": "node icon-classes-extractor.js",
14
- "build:copy_entry_file": "cp index.html dist",
15
- "start": "cross-env run-p dev:* --print-label",
16
- "build": "cross-env run-s clean build:* --print-label"
16
+ "start": "run-s clean create-dist && cross-env run-p dev:* --print-label",
17
+ "build": "cross-env run-s clean create-dist create-static build:* --print-label"
17
18
  },
18
19
  "author": "test IO",
19
20
  "license": "",
@@ -31,8 +31,6 @@
31
31
  </details>
32
32
  </div>
33
33
 
34
-
35
- <!-- Mobile menu button-->
36
34
  <details class="mobile-links">
37
35
  <summary class="mobile-menu-btn"><div class="navlink"><span class="sr-only">Open main menu</span><!-- Icon when menu is closed.--><span class="icon icon-menu" aria-hidden="true"></span></div></summary>
38
36
  <div class="mobile-menu sidebar">
@@ -62,4 +60,18 @@
62
60
  </div>
63
61
  </details>
64
62
 
63
+ <div class="navlinks right">
64
+ <button onclick="(() => document.body.classList.toggle('dark'))()"
65
+ class="navlink">
66
+ <svg class="w-icon h-icon fill-purple hidden dark:block" fill="currentColor" viewBox="0 0 20 20">
67
+ <path d="M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"></path>
68
+ </svg>
69
+ <svg class="w-icon h-icon fill-purple block dark:hidden" fill="currentColor" viewBox="0 0 20 20">
70
+ <path
71
+ d="M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z"
72
+ fill-rule="evenodd" clip-rule="evenodd"></path>
73
+ </svg>
74
+ </button>
75
+ </div>
76
+
65
77
  </header>
@@ -1,7 +1,8 @@
1
1
 
2
2
  <nav class="sidebar manager">
3
3
  <div class="navlinks">
4
- {% for section in collection %}
4
+ {% set sortedSections = collection | sort(attribute='data.title') %}
5
+ {% for section in sortedSections %}
5
6
  <a class="navlink" href="#{{ section.data.title }}">{{ section.data.title }}</a>
6
7
  {% endfor %}
7
8
  </div>
@@ -12,11 +13,12 @@
12
13
 
13
14
  {% for item in navigation.items %}
14
15
  {% if page.url == item.url %}
15
- <h1>{{ item.text }}</h1>
16
+ <h1 class="mb-heading">{{ item.text }}</h1>
16
17
  {% endif %}
17
18
  {% endfor %}
18
19
 
19
- {%- for section in collection -%}
20
+ {% set sortedSections = collection | sort(attribute='data.title') %}
21
+ {% for section in sortedSections %}
20
22
  <section class="section" id="{{ section.data.title }}">
21
23
  <div class="section-header">
22
24
  <h4 class="section-title">{{ section.data.title }}</h2>
@@ -1,9 +1,10 @@
1
1
 
2
2
  <nav class="sidebar manager">
3
3
  <div class="navlinks">
4
- {% for section in collection %}
5
- <a class="navlink" href="#{{ section.data.title }}">{{ section.data.title }}</a>
6
- {% endfor %}
4
+ {% set sortedSections = collection | sort(attribute='data.title') %}
5
+ {% for section in sortedSections %}
6
+ <a class="navlink" href="#{{ section.data.title }}">{{ section.data.title }}</a>
7
+ {% endfor %}
7
8
  </div>
8
9
  </nav>
9
10
 
@@ -12,11 +13,12 @@
12
13
 
13
14
  {% for item in navigation.items %}
14
15
  {% if page.url == item.url %}
15
- <h1>{{ item.text }}</h1>
16
+ <h1 class="mb-heading">{{ item.text }}</h1>
16
17
  {% endif %}
17
18
  {% endfor %}
18
19
 
19
- {%- for section in collection -%}
20
+ {% set sortedSections = collection | sort(attribute='data.title') %}
21
+ {% for section in sortedSections %}
20
22
  <section class="section" id="{{ section.data.title }}">
21
23
  <div class="section-header">
22
24
  <h4 class="section-title">{{ section.data.title }}</h2>
@@ -30,12 +32,11 @@
30
32
  {{ section.templateContent | safe }}
31
33
 
32
34
  <details class="mt-3">
33
- <summary class="btn btn-sm btn-gray">
34
- <span class="icon icon-format-code mr-icon-spacing"></span>
35
- <span>Show source</span>
35
+ <summary class="btn btn-sm btn-secondary inline-block cursor-pointer mb-2">
36
+ Show source
36
37
  </summary>
37
- <div class="ds-code-preview">
38
- <pre><code class="code html-preview">{{ section.templateContent | trim }}</code></pre>
38
+ <div class="prose max-w-none bg-gray-light p-2 rounded mb-1">
39
+ <pre><code class="html-preview">{{ section.templateContent | trim }}</code></pre>
39
40
  </div>
40
41
  </details>
41
42
  </section>
@@ -44,3 +45,4 @@
44
45
  </main>
45
46
 
46
47
 
48
+
@@ -0,0 +1,3 @@
1
+ <svg width="49" height="30" viewBox="0 0 49 30" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M7.65137 24.666C9.1168 24.666 9.84473 25.4442 9.84473 26.79V29.5615C9.43599 29.7708 8.66849 30 7.67188 30C6.30612 30 5.61816 29.3318 5.61816 28.4346C5.61829 27.4477 6.42589 26.8693 7.62207 26.8594C7.91917 26.8648 8.21549 26.8918 8.50879 26.9395V26.7002C8.50879 26.0921 8.1601 25.8027 7.49219 25.8027C7.04242 25.7971 6.59578 25.8784 6.17676 26.042L5.92676 24.9658C6.35534 24.7864 7.04334 24.6661 7.65137 24.666ZM18.6611 24.666C19.1779 24.6635 19.6904 24.7659 20.167 24.9658L19.9072 26.0518C19.5513 25.8976 19.169 25.8131 18.7812 25.8027C17.9738 25.8027 17.5352 26.3715 17.5352 27.3086C17.5352 28.335 17.9936 28.8631 18.8506 28.8633C19.2332 28.8528 19.6106 28.765 19.958 28.6045L20.1768 29.7109C19.7254 29.9118 19.2351 30.0105 18.7412 30C17.0864 30 16.1299 28.9726 16.1299 27.3477C16.1301 25.7331 17.0765 24.6662 18.6611 24.666ZM23.1387 24.666C24.6838 24.666 25.6211 25.7331 25.6211 27.3281C25.6211 28.9332 24.6839 30 23.1387 30C21.6036 29.9999 20.6465 28.9331 20.6465 27.3281C20.6465 25.7332 21.6036 24.6661 23.1387 24.666ZM33.6465 24.7861H34.7539V25.8828H33.6465V28.0156C33.6465 28.5938 33.8864 28.8633 34.335 28.8633C34.5127 28.8628 34.69 28.843 34.8633 28.8037L34.9326 29.9102C34.648 29.9732 34.3569 30.0035 34.0654 30C32.8793 29.9999 32.2715 29.3519 32.2715 28.0361V25.8828H31.5938V24.7861H32.2715V23.6797L33.6465 23.6094V24.7861ZM37.5176 24.666C38.983 24.666 39.7109 25.4442 39.7109 26.79V29.5615C39.3022 29.7708 38.5347 30 37.5381 30C36.1723 30 35.4844 29.3318 35.4844 28.4346C35.4845 27.4477 36.2921 26.8693 37.4883 26.8594C37.7854 26.8648 38.0817 26.8918 38.375 26.9395V26.7002C38.375 26.0921 38.0263 25.8027 37.3584 25.8027C36.9086 25.7971 36.462 25.8784 36.043 26.042L35.793 24.9658C36.2215 24.7864 36.9096 24.6661 37.5176 24.666ZM42.9131 24.666C43.4297 24.6635 43.9415 24.766 44.418 24.9658L44.1592 26.0518C43.8031 25.8974 43.4202 25.8131 43.0322 25.8027C42.2248 25.8028 41.7861 26.3715 41.7861 27.3086C41.7862 28.3352 42.2453 28.8633 43.1025 28.8633C43.485 28.8528 43.8617 28.765 44.209 28.6045L44.4277 29.7109C43.9764 29.9117 43.4861 30.0105 42.9922 30C41.3375 29.9999 40.3809 28.9726 40.3809 27.3477C40.381 25.7329 41.3282 24.666 42.9131 24.666ZM47.0244 24.7861H48.1309V25.8828H47.0244V28.0156C47.0244 28.5938 47.2633 28.8633 47.7119 28.8633C47.8897 28.8628 48.0669 28.843 48.2402 28.8037L48.3096 29.9102C48.025 29.9732 47.7338 30.0035 47.4424 30C46.2563 29.9999 45.6485 29.3519 45.6484 28.0361V25.8828H44.9707V24.7861H45.6484V23.6797L47.0244 23.6094V24.7861ZM2.15332 22.9023C3.71831 22.9024 4.72543 23.49 4.72559 24.7061C4.72559 25.3937 4.40637 25.8722 3.95801 26.1514C4.60584 26.4504 4.98428 27.029 4.98438 27.8164C4.98438 29.2221 3.95733 29.8799 2.3623 29.8799H0V22.9023H2.15332ZM13.0664 24.666C14.5218 24.666 15.3593 25.3841 15.3594 26.71V29.8799H13.9834V26.8096C13.9833 26.1219 13.6645 25.8028 13.0566 25.8027C12.7547 25.7985 12.4547 25.8599 12.1787 25.9824V29.8799H10.8135V25.1055C11.5299 24.8177 12.2944 24.668 13.0664 24.666ZM28.6699 24.666C30.1253 24.666 30.9628 25.3841 30.9629 26.71V29.8799H29.5869V26.8096C29.5868 26.1219 29.2682 25.8027 28.6602 25.8027C28.3583 25.7985 28.0592 25.86 27.7832 25.9824V29.8799H26.417V25.1055C27.1333 24.8177 27.898 24.6681 28.6699 24.666ZM7.80078 27.7266C7.34242 27.7267 6.9834 27.9066 6.9834 28.375C6.9834 28.7937 7.28318 29.0127 7.81152 29.0127C8.05165 29.0205 8.29014 28.9726 8.50879 28.873V27.8066C8.27645 27.755 8.03879 27.7279 7.80078 27.7266ZM37.668 27.7266C37.2094 27.7266 36.8506 27.9064 36.8506 28.375C36.8506 28.7937 37.1494 29.0127 37.6777 29.0127C37.9179 29.0205 38.1563 28.9726 38.375 28.873V27.8066C38.1428 27.755 37.9058 27.7279 37.668 27.7266ZM23.1387 25.8027C22.441 25.8028 22.0518 26.3911 22.0518 27.3281C22.0518 28.2751 22.441 28.8632 23.1387 28.8633C23.8465 28.8633 24.2158 28.2752 24.2158 27.3281C24.2158 26.3911 23.8465 25.8027 23.1387 25.8027ZM1.38574 28.6641H2.24316C3.08042 28.664 3.56929 28.4547 3.56934 27.7969C3.56934 27.1489 3.14986 26.8799 2.3623 26.8799H1.38574V28.6641ZM1.38574 25.8027H2.41211C3.04009 25.8027 3.30953 25.4939 3.30957 24.9258C3.30957 24.3176 2.82104 24.1182 2.16309 24.1182H1.38574V25.8027ZM24.1553 9.70605C20.5155 14.5592 16.8753 19.4131 9.5957 19.4131H0V9.70605H24.1553ZM48.3096 0V9.70605H24.1553C27.7949 4.85304 31.4346 8.37558e-05 38.7139 0H48.3096Z" fill="white"/>
3
+ </svg>
@@ -52,7 +52,8 @@ export function createChartGauge (target, targetData) {
52
52
  top: 0,
53
53
  offsetCenter: [0, 35],
54
54
  fontSize: 11,
55
- lineHeight: 12
55
+ lineHeight: 12,
56
+ color: inherit,
56
57
  },
57
58
  detail: {
58
59
  top: 10,
@@ -4,6 +4,7 @@
4
4
 
5
5
  @import "tailwindcss";
6
6
  @import './tailwind_config.css';
7
+ @import './tailwind_theme_dark.css';
7
8
  @import './tailwind_custom_utilities.css';
8
9
 
9
10
  @import './components/reset.css' layer(base);
@@ -15,6 +16,7 @@
15
16
 
16
17
  @import './components/actionbar.css' layer(components);
17
18
  @import './components/buttons.css' layer(components);
19
+ @import './components/badges.css' layer(components);
18
20
  @import './components/cards.css' layer(components);
19
21
  @import './components/header.css' layer(components);
20
22
  @import './components/layout.css' layer(components);
@@ -65,6 +67,7 @@
65
67
  @import './components/select.css' layer(components);
66
68
  @import './components/test_header.css' layer(components);
67
69
  @import './components/ratingscale.css' layer(components);
70
+ @import './components/scrollbars.css' layer(components);
68
71
 
69
72
  @import './components/customer/customer_header.css' layer(components);
70
73
  @import './components/customer/customer_sidebar.css' layer(components);
@@ -13,7 +13,7 @@ footer.actionbar,
13
13
  footer.actionbar .btn-primary,
14
14
  .splitview-list-actionbar .btn-primary,
15
15
  .splitview-details-actionbar .btn-primary {
16
- @apply text-primary bg-white border-white hover:text-white hover:bg-link-hover hover:border-link-hover;
16
+ @apply text-primary dark:text-appbody bg-white border-white hover:text-white hover:bg-link-hover hover:border-link-hover;
17
17
  }
18
18
 
19
19
  footer.actionbar .btn-secondary,
@@ -0,0 +1,56 @@
1
+ /*/// Card badges ///*/
2
+
3
+ .card .card-badge {
4
+ @apply absolute top-0 right-0 overflow-hidden;
5
+ width: 65px;
6
+ height: 65px;
7
+ }
8
+
9
+ .card .card-badge::before {
10
+ @apply absolute block bg-gray-darker;
11
+ content: "";
12
+ transform: rotate(45deg);
13
+ width: 100px;
14
+ height: 25px;
15
+ right: -25px;
16
+ top: 10px;
17
+ }
18
+
19
+ .card .card-badge::after {
20
+ @apply absolute inline-block w-icon-xs h-icon-xs bg-white;
21
+ content: "";
22
+ right: 14px;
23
+ top: 17px;
24
+ mask-image: url("/assets/images/icons/exclamation-circle-filled.svg");
25
+ mask-repeat: no-repeat;
26
+ }
27
+
28
+ .card .card-badge.success {
29
+ &::before {
30
+ @apply bg-success;
31
+ }
32
+ &::after {
33
+ mask-image: url("/assets/images/icons/check-thick.svg");
34
+ right: 16px;
35
+ }
36
+ }
37
+
38
+ .card .card-badge.danger,
39
+ .card .card-badge.high-priority {
40
+ &::before {
41
+ @apply bg-danger;
42
+ }
43
+ &::after {
44
+ mask-image: url("/assets/images/icons/exclamation-circle-filled.svg");
45
+ }
46
+ }
47
+
48
+ .card .card-badge.info,
49
+ .card .card-badge.opportunity {
50
+ &::before {
51
+ @apply bg-info;
52
+ }
53
+ &::after {
54
+ mask-image: url("/assets/images/icons/exclamation-circle-filled.svg");
55
+ }
56
+ }
@@ -1,5 +1,5 @@
1
1
  .banner-card {
2
- @apply flex flex-row mb-md w-full rounded overflow-hidden bg-gray-lightest border border-bordercolor;
2
+ @apply flex flex-row mb-md w-full rounded overflow-hidden bg-card border border-bordercolor;
3
3
  }
4
4
 
5
5
  .banner-card.welcome {
@@ -16,7 +16,7 @@ input[type="submit"].btn {
16
16
  .btn-primary,
17
17
  input.btn-primary,
18
18
  input[type="submit"].btn-primary {
19
- @apply text-white bg-primary;
19
+ @apply text-appbody bg-primary;
20
20
  }
21
21
 
22
22
  .btn-secondary,
@@ -83,10 +83,10 @@ input[type="submit"].btn-success {
83
83
  input[type="submit"].btn-inverted,
84
84
  .btn-primary-inverted,
85
85
  input[type="submit"].btn-primary-inverted {
86
- @apply text-primary bg-white;
86
+ @apply text-primary bg-white dark:text-appbody;
87
87
 
88
88
  .icon {
89
- @apply text-primary;
89
+ @apply text-primary dark:text-appbody;
90
90
  }
91
91
  }
92
92
 
@@ -172,7 +172,7 @@ input[type="submit"].btn[disabled],
172
172
  input.btn[disabled],
173
173
  input.btn-sm[disabled],
174
174
  input.btn-lg[disabled] {
175
- @apply text-disabled border border-disabled bg-pattern-disabled-bright hover:bg-pattern-disabled-bright bg-transparent hover:bg-transparent hover:text-disabled shadow-none cursor-not-allowed;
175
+ @apply text-disabled border border-bordercolor bg-pattern-disabled-bright bg-transparent hover:bg-transparent hover:text-disabled hover:border-bordercolor shadow-none cursor-not-allowed dark:bg-pattern-disabled-dark dark:border-bordercolor;
176
176
 
177
177
  &:hover .icon,
178
178
  &:focus .icon,
@@ -122,11 +122,11 @@
122
122
  }
123
123
 
124
124
  .card-footer .btn {
125
- @apply m-0 px-sm rounded-none border-l border-white first:border-l-0 first:rounded-bl last:rounded-br;
125
+ @apply m-0 px-sm rounded-none border-l border-appbody first:border-l-0 first:rounded-bl last:rounded-br;
126
126
  }
127
127
 
128
128
  .card-footer .dropdown-actions .btn {
129
- @apply border-l border-white rounded-bl-none;
129
+ @apply border-l border-appbody rounded-bl-none;
130
130
  }
131
131
 
132
132
  .card-footer .btn-primary {
@@ -134,7 +134,7 @@
134
134
  }
135
135
 
136
136
  .card-footer .btn-secondary {
137
- @apply flex-1 text-white bg-primary hover:bg-link-hover border-t-0 border-r-0 border-b-0;
137
+ @apply flex-1 text-appbody bg-primary hover:bg-link-hover border-t-0 border-r-0 border-b-0;
138
138
  }
139
139
 
140
140
  .card-footer .btn-square {
@@ -142,11 +142,11 @@
142
142
  }
143
143
 
144
144
  .card-icon-header {
145
- @apply h-lg mb-xs text-center border-b border-bordercolor;
145
+ @apply h-lg mb-xs text-center border-b border-gray-light dark:border-bordercolor;
146
146
  }
147
147
 
148
148
  .card-icon-header .icon {
149
- @apply absolute h-icon-lg top-spacing px-xs text-icon-lg;
149
+ @apply absolute h-icon-lg top-spacing px-xs text-icon-lg bg-card;
150
150
  left: 50%;
151
151
  transform: translateX(-50%);
152
152
  }
@@ -156,59 +156,3 @@
156
156
  z-index: 1;
157
157
  }
158
158
 
159
- /*/// Card badges ///*/
160
-
161
- .card .card-badge {
162
- @apply absolute top-0 right-0 overflow-hidden;
163
- width: 65px;
164
- height: 65px;
165
- }
166
-
167
- .card .card-badge::before {
168
- @apply absolute block bg-gray-darker;
169
- content: "";
170
- transform: rotate(45deg);
171
- width: 100px;
172
- height: 25px;
173
- right: -25px;
174
- top: 10px;
175
- }
176
-
177
- .card .card-badge::after {
178
- @apply absolute inline-block w-icon-xs h-icon-xs bg-white;
179
- content: "";
180
- right: 14px;
181
- top: 17px;
182
- mask-image: url("/assets/images/icons/exclamation-circle-filled.svg");
183
- mask-repeat: no-repeat;
184
- }
185
-
186
- .card .card-badge.success {
187
- &::before {
188
- @apply bg-success;
189
- }
190
- &::after {
191
- mask-image: url("/assets/images/icons/check-thick.svg");
192
- right: 16px;
193
- }
194
- }
195
-
196
- .card .card-badge.danger,
197
- .card .card-badge.high-priority {
198
- &::before {
199
- @apply bg-danger;
200
- }
201
- &::after {
202
- mask-image: url("/assets/images/icons/exclamation-circle-filled.svg");
203
- }
204
- }
205
-
206
- .card .card-badge.info,
207
- .card .card-badge.opportunity {
208
- &::before {
209
- @apply bg-info;
210
- }
211
- &::after {
212
- mask-image: url("/assets/images/icons/exclamation-circle-filled.svg");
213
- }
214
- }
@@ -30,7 +30,7 @@ img.chat-avatar {
30
30
  }
31
31
 
32
32
  .chat-message {
33
- @apply p-xs rounded bg-gray-lightest;
33
+ @apply p-xs rounded bg-card dark:bg-gray-800;
34
34
  grid-area: chat-message;
35
35
  min-width: 0;
36
36
  }
@@ -121,7 +121,7 @@ img.chat-avatar {
121
121
  }
122
122
 
123
123
  .chat-message-item.your-message .chat-message {
124
- @apply text-white bg-primary;
124
+ @apply text-white bg-primary dark:bg-gray-600;
125
125
  }
126
126
 
127
127
  .chat-message-item.your-message .chat-message-addons .btn {
@@ -171,13 +171,13 @@ img.chat-avatar {
171
171
  }
172
172
 
173
173
  .chat-window {
174
- @apply w-spacing-5xl bg-petrol-800 rounded-t;
174
+ @apply w-spacing-5xl bg-petrol-800 dark:bg-gray-800 rounded-t-sm;
175
175
  z-index: 10;
176
176
  box-shadow: rgba(0,0,0,0.2) 0 0 10px 5px;
177
177
  }
178
178
 
179
179
  .chat-window-header {
180
- @apply flex flex-row justify-between items-center p-xxs pl-sm text-white border-b border-primary rounded-t select-none cursor-pointer;
180
+ @apply flex flex-row justify-between items-center p-xxs pl-sm text-white border-b border-appbody rounded-t select-none cursor-pointer;
181
181
  }
182
182
 
183
183
  .chat-window-header a {
@@ -192,7 +192,7 @@ img.chat-avatar {
192
192
  }
193
193
 
194
194
  .chat-window[open] .chat-window-header {
195
- @apply bg-primary;
195
+ @apply bg-primary dark:bg-gray-700;
196
196
  }
197
197
 
198
198
  .chat-message-counter {
@@ -226,18 +226,18 @@ img.chat-avatar {
226
226
  }
227
227
 
228
228
  .chat-window-actions {
229
- @apply relative p-xs bg-primary;
229
+ @apply relative p-xs bg-primary dark:bg-gray-700;
230
230
  }
231
231
 
232
232
  .chat-window-actions .form-control {
233
- @apply pr-lg;
233
+ @apply pr-lg rounded-sm;
234
234
  }
235
235
 
236
236
  .chat-window-actions .btn-send-message {
237
- @apply absolute right-sm bottom-md;
238
- position: absolute;
237
+ @apply absolute right-sm rounded-sm;
238
+ bottom: 22px;
239
239
  &::before {
240
- @apply inline-block h-icon-sm w-icon bg-white;
240
+ @apply inline-block h-icon-sm w-icon bg-appbody;
241
241
  content: "";
242
242
  mask-image: url("/assets/images/icons/sendmessage.svg");
243
243
  mask-repeat: no-repeat;
@@ -255,7 +255,7 @@ img.chat-avatar {
255
255
  /*///// Floating chat input /////*/
256
256
 
257
257
  .floating-chatinput {
258
- @apply sticky left-0 right-spacing -bottom-body-padding-mobile sm:-bottom-body-padding-tablet xl:-bottom-body-padding-desktop w-full pt-xxs pb-body-padding-mobile sm:pb-body-padding-tablet bg-white;
258
+ @apply sticky left-0 right-spacing -bottom-body-padding-mobile sm:-bottom-body-padding-tablet xl:-bottom-body-padding-desktop w-full pt-xxs pb-body-padding-mobile sm:pb-body-padding-tablet bg-appbody;
259
259
  z-index: 1;
260
260
  }
261
261
 
@@ -10,24 +10,20 @@
10
10
 
11
11
  .form-radio label,
12
12
  .form-check label {
13
- @apply relative ml-xs font-normal text-black;
13
+ @apply relative ml-xs font-normal text-appbody-textcolor;
14
14
  padding-top: 0.25rem;
15
15
  cursor: pointer;
16
16
  &:hover, &:focus {
17
- @apply text-label-color;
17
+ @apply text-link-hover;
18
18
  }
19
19
  }
20
20
 
21
21
  .form-check input {
22
- @apply rounded bg-transparent;
22
+ @apply h-btn-sm w-btn-sm border border-primary dark:border-appbody-textcolor rounded-sm bg-transparent;
23
23
  cursor: pointer;
24
24
  flex-shrink: 0;
25
25
  }
26
26
 
27
- .form-check input {
28
- @apply h-btn-sm w-btn-sm border border-primary rounded;
29
- }
30
-
31
27
  .form-check.sm input {
32
28
  @apply w-md h-md;
33
29
  }
@@ -43,7 +39,7 @@
43
39
  }
44
40
 
45
41
  .form-check input[type=checkbox]:checked {
46
- @apply text-white border-info bg-info overflow-hidden;
42
+ @apply text-white border-info bg-info dark:bg-purple overflow-hidden;
47
43
  background-image: none;
48
44
 
49
45
  &::after {
@@ -66,8 +62,7 @@
66
62
  .form-check input:disabled,
67
63
  .form-check input.disabled,
68
64
  .form-check input.disabled[type=checkbox]:checked {
69
- @apply border-disabled;
70
- background-image: url("/assets/images/pattern-striped-bright.png");
65
+ @apply border-disabled bg-pattern-disabled-bright dark:bg-pattern-disabled-dark;
71
66
  background-repeat: repeat;
72
67
  background-color: transparent;
73
68
  cursor: not-allowed;
@@ -128,7 +123,7 @@
128
123
 
129
124
 
130
125
  .form-radio input {
131
- @apply w-btn-sm h-btn-sm border border-primary;
126
+ @apply w-btn-sm h-btn-sm border border-primary dark:border-appbody-textcolor;
132
127
 
133
128
  &:disabled {
134
129
  @apply border-disabled;
@@ -16,11 +16,11 @@
16
16
  }
17
17
 
18
18
  .product-card .card-header {
19
- @apply flex flex-row pl-0 py-0 bg-card border-0;
19
+ @apply flex flex-row pl-0 py-0 border-0;
20
20
  }
21
21
 
22
22
  .product-card .card-icon {
23
- @apply flex justify-center items-center flex-shrink-0 w-xxl min-h-xxl bg-primary rounded-tl text-white;
23
+ @apply flex justify-center items-center flex-shrink-0 w-xxl min-h-xxl bg-primary rounded-tl text-appbody;
24
24
 
25
25
  & .icon {
26
26
  @apply text-icon-lg h-icon-lg;
@@ -65,7 +65,7 @@
65
65
  }
66
66
 
67
67
  .product-card .card-title {
68
- @apply mb-xxs p-0 text-black overflow-hidden;
68
+ @apply mb-xxs p-0 text-appbody-textcolor overflow-hidden;
69
69
  vertical-align: auto;
70
70
  display: -webkit-box;
71
71
  -webkit-box-orient: vertical;
@@ -84,7 +84,7 @@
84
84
  }
85
85
 
86
86
  .product-card .card-content {
87
- @apply relative p-sm bg-card border-t border-white;
87
+ @apply relative p-sm border-t border-appbody;
88
88
  }
89
89
 
90
90
  .product-card .card-test-item {
@@ -117,7 +117,7 @@
117
117
  /*/ Product sections */
118
118
 
119
119
  .card-section {
120
- @apply relative flex flex-col flex-shrink-0 bg-card border-t border-white;
120
+ @apply relative flex flex-col flex-shrink-0 border-t border-appbody;
121
121
  }
122
122
 
123
123
  .card-section:last-child {
@@ -44,7 +44,7 @@
44
44
  }
45
45
 
46
46
  .clouddevice-info::before {
47
- @apply inline-block bg-black h-icon mr-icon-spacing;
47
+ @apply inline-block bg-appbody-textcolor h-icon mr-icon-spacing;
48
48
  content: "";
49
49
  mask-image: url("/assets/images/icons/logo-mobile-cloud.svg");
50
50
  mask-repeat: no-repeat;
@@ -58,19 +58,19 @@
58
58
  }
59
59
 
60
60
  .device-wrapper .device {
61
- @apply p-sm m-0 text-white border-0 rounded-l bg-primary;
61
+ @apply p-sm m-0 text-appbody border-0 rounded-l bg-primary;
62
62
  & .clouddevice-info::before {
63
63
  @apply bg-white;
64
64
  }
65
65
  }
66
66
 
67
67
  .device-wrapper .device-actions {
68
- @apply flex flex-col flex-shrink-0 w-spacing ml-1px text-white bg-primary rounded-r;
68
+ @apply flex flex-col flex-shrink-0 w-spacing ml-1px text-appbody bg-primary rounded-r;
69
69
 
70
70
  }
71
71
 
72
72
  .device-wrapper .device-actions a {
73
- @apply flex items-center justify-center flex-1 min-h-spacing text-white border-t-1 first:border-t-0 rounded-none first:rounded-tr last:rounded-br border-white;
73
+ @apply flex items-center justify-center flex-1 min-h-spacing text-appbody border-t-1 first:border-t-0 rounded-none first:rounded-tr last:rounded-br border-appbody;
74
74
 
75
75
  &:hover {
76
76
  @apply bg-link-hover;
@@ -15,7 +15,7 @@ details.dropdown-actions[open] summary:after,
15
15
 
16
16
  .popover-menu,
17
17
  .dropdown-menu {
18
- @apply flex-col overflow-hidden w-popover-width p-xxs bg-primary text-white rounded;
18
+ @apply flex-col overflow-hidden w-popover-width p-xxs bg-primary text-appbody rounded;
19
19
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
20
20
  }
21
21
 
@@ -43,7 +43,7 @@ details.dropdown-actions[open].dropright .popover-menu,
43
43
 
44
44
  .popover-menu .popover-action,
45
45
  .dropdown-menu .dropdown-action {
46
- @apply relative flex items-center justify-start mb-1px p-xs text-base text-white rounded;
46
+ @apply relative flex items-center justify-start mb-1px p-xs text-base text-appbody rounded;
47
47
  font-weight: 600;
48
48
  line-height: 1.2;
49
49
 
@@ -67,26 +67,3 @@ details.dropdown-actions[open].dropright .popover-menu,
67
67
  @apply mb-0;
68
68
  }
69
69
  }
70
-
71
- /*/// Info popover ///*/
72
-
73
- .popover-menu.info,
74
- .dropdown-menu.info {
75
- @apply p-sm bg-petrol-800;
76
- }
77
-
78
- .popover-menu.info .popover-title,
79
- .dropdown-menu.info .popover-title {
80
- @apply text-base font-semibold mb-xxs;
81
- line-height: 1.1;
82
- }
83
-
84
- .popover-menu.info .popover-content,
85
- .dropdown-menu.info .popover-content {
86
- @apply text-sm;
87
- }
88
-
89
- .popover-menu.info .popover-actions,
90
- .dropdown-menu.info .popover-actions {
91
- @apply mt-xs;
92
- }
@@ -1,5 +1,5 @@
1
1
  .form-card {
2
- @apply p-sm bg-gray-lighter rounded;
2
+ @apply p-sm bg-card rounded;
3
3
  }
4
4
 
5
5
  .form-card-heading {