tao_ui 0.3.4 → 1.0.0.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tao_ui/components/tree/item_component.rb +20 -12
  3. data/lib/tao_ui/components/tree_component.rb +1 -1
  4. data/lib/tao_ui/engine.rb +0 -1
  5. data/lib/tao_ui/version.rb +1 -1
  6. data/lib/views/components/tao_ui/components/_dialog.html.erb +2 -2
  7. data/lib/views/components/tao_ui/components/_slide_box.html.erb +1 -1
  8. metadata +7 -157
  9. data/config/autoprefixer.yml +0 -7
  10. data/lib/assets/icons/Loading.svg +0 -19
  11. data/lib/assets/icons/close.svg +0 -12
  12. data/lib/assets/javascripts/tao/ui/dialog/confirm.coffee +0 -13
  13. data/lib/assets/javascripts/tao/ui/dialog/element.coffee +0 -115
  14. data/lib/assets/javascripts/tao/ui/dialog/index.coffee +0 -16
  15. data/lib/assets/javascripts/tao/ui/dialog/message.coffee +0 -13
  16. data/lib/assets/javascripts/tao/ui/icons/base.coffee +0 -5
  17. data/lib/assets/javascripts/tao/ui/icons/index.coffee +0 -20
  18. data/lib/assets/javascripts/tao/ui/index.coffee +0 -12
  19. data/lib/assets/javascripts/tao/ui/mobile/index.coffee +0 -6
  20. data/lib/assets/javascripts/tao/ui/mobile/slide_box/element.coffee +0 -7
  21. data/lib/assets/javascripts/tao/ui/mobile/slide_box/index.coffee +0 -2
  22. data/lib/assets/javascripts/tao/ui/popover/confirm.coffee +0 -23
  23. data/lib/assets/javascripts/tao/ui/popover/create.coffee +0 -18
  24. data/lib/assets/javascripts/tao/ui/popover/direction.coffee +0 -76
  25. data/lib/assets/javascripts/tao/ui/popover/element.coffee +0 -198
  26. data/lib/assets/javascripts/tao/ui/popover/index.coffee +0 -16
  27. data/lib/assets/javascripts/tao/ui/popover/position.coffee +0 -80
  28. data/lib/assets/javascripts/tao/ui/shared/slide_box/element/base.coffee +0 -118
  29. data/lib/assets/javascripts/tao/ui/shared/slide_box/export.coffee +0 -11
  30. data/lib/assets/javascripts/tao/ui/shared/ujs.coffee +0 -51
  31. data/lib/assets/javascripts/tao/ui/slide_box/element.coffee +0 -9
  32. data/lib/assets/javascripts/tao/ui/slide_box/index.coffee +0 -2
  33. data/lib/assets/javascripts/tao/ui/sortable.coffee +0 -147
  34. data/lib/assets/javascripts/tao/ui/table/element.coffee +0 -13
  35. data/lib/assets/javascripts/tao/ui/table/expandable.coffee +0 -62
  36. data/lib/assets/javascripts/tao/ui/table/index.coffee +0 -6
  37. data/lib/assets/javascripts/tao/ui/table/selectable.coffee +0 -52
  38. data/lib/assets/javascripts/tao/ui/tooltip.coffee +0 -5
  39. data/lib/assets/javascripts/tao/ui/tree/element.coffee +0 -58
  40. data/lib/assets/javascripts/tao/ui/tree/index.coffee +0 -5
  41. data/lib/assets/javascripts/tao/ui/tree/item.coffee +0 -93
  42. data/lib/assets/stylesheets/tao/ui/_custom.scss +0 -1
  43. data/lib/assets/stylesheets/tao/ui/_globals.scss +0 -3
  44. data/lib/assets/stylesheets/tao/ui/_mixins.scss +0 -2
  45. data/lib/assets/stylesheets/tao/ui/_variables.scss +0 -4
  46. data/lib/assets/stylesheets/tao/ui/basic.scss +0 -30
  47. data/lib/assets/stylesheets/tao/ui/buttons.scss +0 -8
  48. data/lib/assets/stylesheets/tao/ui/code.scss +0 -2
  49. data/lib/assets/stylesheets/tao/ui/dialog.scss +0 -117
  50. data/lib/assets/stylesheets/tao/ui/icons.scss +0 -2
  51. data/lib/assets/stylesheets/tao/ui/index.scss +0 -13
  52. data/lib/assets/stylesheets/tao/ui/mobile/_custom.scss +0 -1
  53. data/lib/assets/stylesheets/tao/ui/mobile/_globals.scss +0 -3
  54. data/lib/assets/stylesheets/tao/ui/mobile/_mixins.scss +0 -2
  55. data/lib/assets/stylesheets/tao/ui/mobile/_variables.scss +0 -3
  56. data/lib/assets/stylesheets/tao/ui/mobile/basic.scss +0 -24
  57. data/lib/assets/stylesheets/tao/ui/mobile/buttons.scss +0 -8
  58. data/lib/assets/stylesheets/tao/ui/mobile/code.scss +0 -2
  59. data/lib/assets/stylesheets/tao/ui/mobile/icons.scss +0 -2
  60. data/lib/assets/stylesheets/tao/ui/mobile/index.scss +0 -7
  61. data/lib/assets/stylesheets/tao/ui/mobile/slide_box.scss +0 -56
  62. data/lib/assets/stylesheets/tao/ui/mobile/tables.scss +0 -2
  63. data/lib/assets/stylesheets/tao/ui/mobile/variables/_base.scss +0 -10
  64. data/lib/assets/stylesheets/tao/ui/mobile/variables/_buttons.scss +0 -7
  65. data/lib/assets/stylesheets/tao/ui/popover.scss +0 -206
  66. data/lib/assets/stylesheets/tao/ui/shared/_basic.scss +0 -127
  67. data/lib/assets/stylesheets/tao/ui/shared/_buttons.scss +0 -65
  68. data/lib/assets/stylesheets/tao/ui/shared/_code.scss +0 -54
  69. data/lib/assets/stylesheets/tao/ui/shared/_icons.scss +0 -16
  70. data/lib/assets/stylesheets/tao/ui/shared/_slide_box.scss +0 -83
  71. data/lib/assets/stylesheets/tao/ui/shared/_tables.scss +0 -38
  72. data/lib/assets/stylesheets/tao/ui/shared/mixins/_base.scss +0 -6
  73. data/lib/assets/stylesheets/tao/ui/shared/mixins/_buttons.scss +0 -40
  74. data/lib/assets/stylesheets/tao/ui/shared/variables/_base.scss +0 -49
  75. data/lib/assets/stylesheets/tao/ui/shared/variables/_buttons.scss +0 -99
  76. data/lib/assets/stylesheets/tao/ui/shared/variables/_tables.scss +0 -4
  77. data/lib/assets/stylesheets/tao/ui/slide_box.scss +0 -39
  78. data/lib/assets/stylesheets/tao/ui/sortable.scss +0 -16
  79. data/lib/assets/stylesheets/tao/ui/tables.scss +0 -89
  80. data/lib/assets/stylesheets/tao/ui/tabs.scss +0 -23
  81. data/lib/assets/stylesheets/tao/ui/tooltip.scss +0 -147
  82. data/lib/assets/stylesheets/tao/ui/tree.scss +0 -128
  83. data/lib/assets/stylesheets/tao/ui/variables/_base.scss +0 -10
  84. data/lib/assets/stylesheets/tao/ui/variables/_tree.scss +0 -2
  85. data/lib/generators/tao/icons/USAGE +0 -8
  86. data/lib/generators/tao/icons/icons_generator.rb +0 -56
  87. data/lib/generators/tao/icons/templates/icons.coffee.erb +0 -3
  88. data/vendor/assets/stylesheets/normalize.css +0 -427
@@ -1,38 +0,0 @@
1
- table.table {
2
- width: 100%;
3
- max-width: 100%;
4
- border-collapse: collapse;
5
-
6
- th {
7
- border-top: 1px solid $table-line-color;
8
- border-bottom: 1px solid $table-line-color;
9
- padding: $table-th-padding;
10
- font-size: $font-size-xs;
11
- font-weight: normal;
12
- line-height: 1.125;
13
- color: $lighter-grey-color;
14
- text-align: left;
15
- }
16
-
17
- td {
18
- border-bottom: 1px solid $table-line-color;
19
- padding: $table-td-padding;
20
- line-height: 1.125;
21
- text-align: left;
22
- }
23
-
24
- th.align-left,
25
- td.align-left {
26
- text-align: left;
27
- }
28
-
29
- th.align-right,
30
- td.align-right {
31
- text-align: right;
32
- }
33
-
34
- th.align-center,
35
- td.align-center {
36
- text-align: center;
37
- }
38
- }
@@ -1,6 +0,0 @@
1
-
2
- @mixin truncate-text {
3
- overflow: hidden;
4
- white-space: nowrap;
5
- text-overflow: ellipsis;
6
- }
@@ -1,40 +0,0 @@
1
-
2
- @mixin button-colors($colors) {
3
- $normal-colors: map-get($colors, 'normal');
4
- background: map-get($normal-colors, 'bg');
5
- border: 1px solid map-get($normal-colors, 'border');
6
- color: map-get($normal-colors, 'text');
7
- fill: map-get($normal-colors, 'text');
8
-
9
- @if not $mobile {
10
- &:focus, &.focus {
11
- box-shadow: 0px 0px 0 2px rgba($border-color, 0.5);
12
- }
13
-
14
- &:hover {
15
- $hover-colors: map-get($colors, 'hover');
16
- background: map-get($hover-colors, 'bg');
17
- border: 1px solid map-get($hover-colors, 'border');
18
- color: map-get($hover-colors, 'text');
19
- fill: map-get($hover-colors, 'text');
20
- }
21
- }
22
-
23
- &:active {
24
- $active-colors: map-get($colors, 'active');
25
- background: map-get($active-colors, 'bg');
26
- border: 1px solid map-get($active-colors, 'border');
27
- color: map-get($active-colors, 'text');
28
- fill: map-get($active-colors, 'text');
29
- }
30
-
31
- &.disabled,
32
- &[disabled] {
33
- $disable-colors: map-get($colors, 'disable');
34
- background: map-get($disable-colors, 'bg');
35
- border: 1px solid map-get($disable-colors, 'border');
36
- color: map-get($disable-colors, 'text');
37
- fill: map-get($disable-colors, 'text');
38
- box-shadow: none;
39
- }
40
- }
@@ -1,49 +0,0 @@
1
-
2
- $ui-color: #55BB33 !default;
3
-
4
- $white-color: #ffffff !default;
5
- $grey-color: #4a4a4a !default;
6
- $black-color: #000000 !default;
7
- $red-color: #ff7755 !default;
8
- $orange-color: #ffaa00 !default;
9
- $green-color: #55bb33 !default;
10
- $blue-color: #22bbff !default;
11
- $grey-blue-color: #7AA4D4 !default;
12
-
13
- $light-grey-color: #666666 !default;
14
- $lighter-grey-color: #9b9b9b !default;
15
- $lightest-grey-color: #cccccc !default;
16
-
17
- $grey-bg-color: #f6f6f6 !default;
18
- $green-bg-color: #f5fdf3 !default;
19
- $blue-bg-color: #f5f9ff !default;
20
- $orange-bg-color: #fffcf7 !default;
21
- $red-bg-color: #ffeee6 !default;
22
-
23
- $text-color: $grey-color !default;
24
- $link-color: #4499ee !default;
25
- $link-hover-color: #3377cc !default;
26
-
27
- $line-color: #dfdfdf !default;
28
- $light-line-color: #eeeeee !default;
29
- $lighter-line-color: #f3f3f3 !default;
30
-
31
- $border-color: $line-color !default;
32
- $light-border-color: $light-line-color !default;
33
- $lighter-border-color: $lighter-line-color !default;
34
-
35
- $border-radius: 0.25rem !default;
36
- $border-radius-s: 0.125rem !default;
37
- $border-radius-l: 0.3rem !default;
38
-
39
- $default-line-height: 1.5 !default;
40
-
41
- $font-size: 1rem !default;
42
- $font-size-s: 0.875rem !default;
43
- $font-size-l: 1.125rem !default;
44
- $font-size-xs: 0.75rem !default;
45
-
46
- $z-index-float: 100 !default;
47
- $z-index-dialog: 200 !default;
48
- $z-index-popover: 300 !default;
49
- $z-index-tooltip: 400 !default;
@@ -1,99 +0,0 @@
1
- $button-color: $green-color !default;
2
- $button-hover-color: #66cc33 !default;
3
- $button-active-color: #22AA11 !default;
4
- $button-warn-color: $red-color !default;
5
- $button-warn-active-color: #EE6633 !default;
6
-
7
- $button-font-size: 1rem !default;
8
- $button-line-height: 1.5 !default;
9
- $button-padding-v: 0.4375em !default;
10
- $button-padding-h: 1.875em !default;
11
- $button-padding: $button-padding-v $button-padding-h !default;
12
-
13
- $small-button-font-size: 0.75rem !default;
14
- $small-button-line-height: 1.5 !default;
15
- $small-button-padding-v: 0.25em !default;
16
- $small-button-padding-h: 0.875em !default;
17
- $small-button-padding: $small-button-padding-v $small-button-padding-h !default;
18
-
19
- $default-button-colors: (
20
- normal: (
21
- bg: $white-color,
22
- text: $button-color,
23
- border: $border-color
24
- ),
25
- hover: (
26
- bg: $white-color,
27
- text: $button-hover-color,
28
- border: $button-hover-color
29
- ),
30
- active: (
31
- bg: $white-color,
32
- text: $button-active-color,
33
- border: $button-active-color
34
- ),
35
- disable: (
36
- bg: $white-color,
37
- text: $lightest-grey-color,
38
- border: $lighter-line-color
39
- )
40
- ) !default;
41
-
42
- $primary-button-colors: (
43
- normal: (
44
- bg: $button-color,
45
- text: $white-color,
46
- border: $button-color
47
- ),
48
- hover: (
49
- bg: $button-hover-color,
50
- text: $white-color,
51
- border: $button-hover-color
52
- ),
53
- active: (
54
- bg: $button-active-color,
55
- text: $white-color,
56
- border: $button-active-color
57
- ),
58
- disable: (
59
- bg: $border-color,
60
- text: $white-color,
61
- border: $border-color
62
- )
63
- ) !default;
64
-
65
- $warning-button-colors: map-merge($default-button-colors, (
66
- normal: (
67
- bg: $white-color,
68
- text: $button-warn-color,
69
- border: $button-warn-color
70
- ),
71
- hover: (
72
- bg: $button-warn-color,
73
- text: $white-color,
74
- border: $button-warn-color
75
- ),
76
- active: (
77
- bg: $button-warn-active-color,
78
- text: $white-color,
79
- border: $button-warn-active-color
80
- )
81
- )) !default;
82
-
83
- $icon-button-colors: map-merge($default-button-colors, (
84
- normal: (
85
- bg: $white-color,
86
- text: $lighter-grey-color,
87
- border: $border-color
88
- ),
89
- hover: (
90
- bg: $white-color,
91
- text: $lighter-grey-color,
92
- border: $link-color
93
- ),
94
- active: (
95
- bg: $white-color,
96
- text: $lighter-grey-color,
97
- border: $link-color
98
- )
99
- )) !default;
@@ -1,4 +0,0 @@
1
- $table-line-color: $light-line-color !default;
2
- $table-row-hover-color: $grey-bg-color !default;
3
- $table-th-padding: 0.875rem 0.625rem !default;
4
- $table-td-padding: 1.125rem 0.625rem !default;
@@ -1,39 +0,0 @@
1
- @import 'tao/ui/globals';
2
- @import 'tao/ui/shared/slide_box';
3
-
4
- .tao-slide-box {
5
- .slide-box-content > header,
6
- .slide-box-content > .header {
7
- text-align: center;
8
- font-size: 1rem;
9
- color: $text-color;
10
- line-height: 3rem;
11
- border-bottom: 1px solid $border-color;
12
- font-weight: bold;
13
- }
14
-
15
- & > .slide-box-wrapper > .link-close {
16
- display: none;
17
- justify-content: center;
18
- align-items: center;
19
- width: 2rem;
20
- height: 2rem;
21
- position: absolute;
22
- top: 0.5rem;
23
- right: 0.5rem;
24
- fill: $lighter-grey-color;
25
-
26
- &:hover {
27
- fill: $grey-color;
28
- }
29
-
30
- &:hover {
31
- fill: $grey-color;
32
- }
33
- }
34
-
35
- &[with-close-button] > .slide-box-wrapper > .link-close {
36
- display: flex;
37
- }
38
-
39
- }
@@ -1,16 +0,0 @@
1
- @import 'tao/ui/globals';
2
-
3
- .tao-sortable {
4
-
5
- [draggable='true'] {
6
- cursor: move;
7
- user-select: none;
8
- /* Required to make elements draggable in old WebKit */
9
- -khtml-user-drag: element;
10
- -webkit-user-drag: element;
11
- }
12
-
13
- .tao-sortable-sorting {
14
- visibility: hidden !important;
15
- }
16
- }
@@ -1,89 +0,0 @@
1
- @import 'tao/ui/globals';
2
- @import 'tao/ui/shared/tables';
3
-
4
- table.table {
5
- tbody tr:hover {
6
- background-color: $table-row-hover-color;
7
- }
8
- }
9
-
10
- .tao-table {
11
- .table {
12
- table-layout: fixed;
13
- }
14
-
15
- .th-checkbox,
16
- .td-checkbox {
17
- display: none;
18
- width: 2.5rem;
19
- padding: 0;
20
- text-align: center;
21
- }
22
-
23
- &[selectable] {
24
- .th-checkbox,
25
- .td-checkbox {
26
- display: table-cell;
27
- }
28
- }
29
-
30
- .th-expand-icon,
31
- .td-expand-icon {
32
- display: none;
33
- width: 2.5rem;
34
- padding: 0;
35
- text-align: center;
36
- }
37
-
38
- &[expandable] {
39
-
40
- .th-expand-icon,
41
- .td-expand-icon {
42
- display: table-cell;
43
-
44
- .icon {
45
- width: 1rem;
46
- height: 1rem;
47
- transition: transform 200ms;
48
- }
49
- }
50
-
51
- tr.expandable {
52
- .td-expand-icon .icon {
53
- fill: $lighter-grey-color;
54
- }
55
-
56
- &:hover .td-expand-icon .icon {
57
- fill: $grey-color;
58
- }
59
- }
60
-
61
- tr.expanded {
62
- border-bottom-color: transparent;
63
-
64
- .th-expand-icon,
65
- .td-expand-icon {
66
- .icon {
67
- transform: rotate(90deg);
68
- }
69
- }
70
- }
71
-
72
- tr.expandable-panel {
73
- display: none;
74
- background: $grey-bg-color;
75
-
76
- & > td {
77
- padding: 0;
78
- box-shadow: inset 0 8px 10px -8px rgba(184, 184, 184, 0.8);
79
-
80
- & > div:first-child {
81
- padding: 1.5rem 2rem;
82
- height: 0;
83
- transition: height 200ms linear;
84
- overflow-y: hidden;
85
- }
86
- }
87
- }
88
- }
89
- }
@@ -1,23 +0,0 @@
1
- @import 'tao/ui/globals';
2
-
3
- .tabs {
4
- display: flex;
5
- align-items: flex-end;
6
-
7
- .tab {
8
- padding: 0.5rem 0.5rem 1rem 0.5rem;
9
- font-size: 1rem;
10
- color: $lightest-grey-color;
11
- border-bottom: 3px solid $white-color;
12
- margin: 0 1.5rem 0 0;
13
-
14
- &:hover {
15
- color: $grey-color;
16
- }
17
-
18
- &.active {
19
- border-color: $ui-color;
20
- color: $grey-color;
21
- }
22
- }
23
- }
@@ -1,147 +0,0 @@
1
- @import 'tao/ui/globals';
2
-
3
- $arrowSize: 0.75rem;
4
-
5
- .tao-tooltip {
6
- display: none;
7
- position: absolute;
8
- left: -9999px;
9
- top: -9999px;
10
- z-index: $z-index-popover;
11
- opacity: 0;
12
- transition: opacity 200ms;
13
-
14
- &[active] {
15
- opacity: 1;
16
- display: block;
17
- }
18
-
19
- .tao-popover-content {
20
- padding: 0.5rem 0.75rem;
21
- background: $grey-color;
22
- color: $white-color;
23
- border-radius: $border-radius;
24
- white-space: nowrap;
25
- font-size: 0.875rem;
26
- }
27
-
28
- .tao-popover-arrow {
29
- display: none;
30
- position: absolute;
31
- width: $arrowSize;
32
- height: $arrowSize;
33
-
34
- .arrow {
35
- font-size: 0;
36
- height: 0;
37
- width: 0;
38
- border-style: solid;
39
- border-width: $arrowSize / 2;
40
- border-color: $grey-color;
41
- position: absolute;
42
- left: 0;
43
- top: 0;
44
- }
45
-
46
- .arrow-border,
47
- .arrow-shadow {
48
- display: none;
49
- }
50
- }
51
-
52
- &[with-arrow] .tao-popover-arrow {
53
- display: block;
54
- }
55
-
56
- &[direction='right-top'],
57
- &[direction='right-bottom'],
58
- &[direction='right-middle'] {
59
- .tao-popover-arrow {
60
- left: -$arrowSize;
61
- }
62
-
63
- .arrow-basic {
64
- border-color: transparent $grey-color transparent transparent;
65
- }
66
- }
67
-
68
- &[direction='left-top'],
69
- &[direction='left-bottom'],
70
- &[direction='left-middle'] {
71
- .tao-popover-arrow {
72
- right: -$arrowSize;
73
- }
74
-
75
- .arrow-basic {
76
- border-color: transparent transparent transparent $grey-color;
77
- }
78
- }
79
-
80
- &[direction='left-top'],
81
- &[direction='right-top'] {
82
- .tao-popover-arrow {
83
- bottom: $arrowSize;
84
- }
85
- }
86
-
87
- &[direction='left-bottom'],
88
- &[direction='right-bottom'] {
89
- .tao-popover-arrow {
90
- top: $arrowSize;
91
- }
92
- }
93
-
94
- &[direction='left-middle'],
95
- &[direction='right-middle'] {
96
- .tao-popover-arrow {
97
- top: 50%;
98
- margin-top: -$arrowSize / 2;
99
- }
100
- }
101
-
102
- &[direction='top-left'],
103
- &[direction='top-right'],
104
- &[direction='top-center'] {
105
- .tao-popover-arrow {
106
- bottom: -$arrowSize;
107
- }
108
-
109
- .arrow-basic {
110
- border-color: $grey-color transparent transparent transparent;
111
- }
112
- }
113
-
114
- &[direction='bottom-left'],
115
- &[direction='bottom-right'],
116
- &[direction='bottom-center'] {
117
- .tao-popover-arrow {
118
- top: -$arrowSize;
119
- }
120
-
121
- .arrow-basic {
122
- border-color: transparent transparent $grey-color transparent;
123
- }
124
- }
125
-
126
- &[direction='top-left'],
127
- &[direction='bottom-left'] {
128
- .tao-popover-arrow {
129
- right: $arrowSize;
130
- }
131
- }
132
-
133
- &[direction='top-right'],
134
- &[direction='bottom-right'] {
135
- .tao-popover-arrow {
136
- left: $arrowSize;
137
- }
138
- }
139
-
140
- &[direction='top-center'],
141
- &[direction='bottom-center'] {
142
- .tao-popover-arrow {
143
- left: 50%;
144
- margin-left: -$arrowSize / 2;
145
- }
146
- }
147
- }
@@ -1,128 +0,0 @@
1
- @import 'tao/ui/globals';
2
-
3
- .tao-tree {
4
- display: block;
5
-
6
- .tao-tree-item {
7
- display: block;
8
-
9
- .tao-tree-item-padding {
10
- height: 100%;
11
- display: flex;
12
-
13
- .padding-item {
14
- position: relative;
15
- height: 100%;
16
- width: 2rem;
17
-
18
- &:before {
19
- content: '';
20
- display: block;
21
- border-left: 1px solid $light-border-color;
22
- position: absolute;
23
- left: 0.625rem;
24
- top: 0;
25
- right: 0;
26
- bottom: 0;
27
- }
28
-
29
- &:last-child:after {
30
- content: '';
31
- display: block;
32
- border-bottom: 1px solid $light-border-color;
33
- position: absolute;
34
- left: 0.625rem;
35
- top: 0;
36
- right: 0.6rem;
37
- bottom: 50%;
38
- }
39
- }
40
- }
41
-
42
- &:first-child[depth='0'] > .tao-tree-item-content .tao-tree-item-padding .padding-item:last-child:before {
43
- top: 50%;
44
- }
45
-
46
- &:last-child > .tao-tree-item-content .tao-tree-item-padding .padding-item:last-child:before {
47
- bottom: 50%;
48
- }
49
-
50
- & > .tao-tree-item-content {
51
- display: flex;
52
- align-items: center;
53
- height: $tree-item-height;
54
- font-size: $tree-item-font-size;
55
-
56
- .link-toggle-item {
57
- display: block;
58
- background: $white-color;
59
- width: 1.375rem;
60
- height: 1.375rem;
61
- padding: 0.25rem;
62
- transition: transform 200ms;
63
- border: 1px solid $border-color;
64
- border-radius: 50%;
65
- margin: 0 0.75rem 0 -2rem;
66
- cursor: pointer;
67
- visibility: hidden;
68
- position: relative;
69
-
70
- .icon {
71
- display: block;
72
- width: 0.75rem;
73
- height: 0.75rem;
74
- fill: $lighter-grey-color;
75
- }
76
-
77
- &:hover {
78
- background: $grey-bg-color;
79
-
80
- .icon {
81
- fill: $grey-color;
82
- }
83
- }
84
- }
85
-
86
- tao-check-box {
87
- margin: 0 0.75rem 0 0;
88
- }
89
- }
90
-
91
- & > .tao-tree-list {
92
- display: none;
93
- transition: height 200ms;
94
- overflow: hidden;
95
-
96
- & > .tao-tree-loading {
97
- display: flex;
98
- align-items: center;
99
- height: $tree-item-height;
100
- line-height: $tree-item-height;
101
- font-size: $tree-item-font-size;
102
- color: $lighter-grey-color;
103
-
104
- .icon {
105
- margin: 0 0.75rem 0 0;
106
- }
107
- }
108
- }
109
-
110
- &[expandable] {
111
- & > .tao-tree-item-content .link-toggle-item {
112
- visibility: visible;
113
- }
114
- }
115
-
116
- &[expandable][expanded] {
117
- & > .tao-tree-item-content .link-toggle-item {
118
- transform: rotate(90deg);
119
- }
120
-
121
- & > .tao-tree-list {
122
- display: block;
123
- height: auto;
124
- }
125
- }
126
- }
127
-
128
- }
@@ -1,10 +0,0 @@
1
- @import 'tao/ui/shared/variables/base';
2
-
3
- $mobile: false !default;
4
-
5
- $font-size-h1: 2.25rem !default;
6
- $font-size-h2: 1.5rem !default;
7
- $font-size-h3: 1.125rem !default;
8
- $font-size-h4: 1rem !default;
9
- $font-size-h5: 0.875rem !default;
10
- $font-size-h6: 0.75rem !default;
@@ -1,2 +0,0 @@
1
- $tree-item-height: 2rem !default;
2
- $tree-item-font-size: 0.875rem !default;
@@ -1,8 +0,0 @@
1
- Description:
2
- Generate coffee file containing all svg icons.
3
-
4
- Example:
5
- `rails generate tao:icons base`
6
-
7
- Create coffee file:
8
- lib/assets/javascripts/tao/ui/icons/base.coffee