tao_ui 0.1.3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/lib/assets/icons/{loading.svg → Loading.svg} +0 -0
  3. data/lib/assets/icons/close.svg +12 -0
  4. data/lib/assets/javascripts/tao/ui/dialog/element.coffee +61 -0
  5. data/lib/assets/javascripts/tao/ui/dialog/index.coffee +4 -0
  6. data/lib/assets/javascripts/tao/ui/icons/{basic.coffee → base.coffee} +2 -1
  7. data/lib/assets/javascripts/tao/ui/icons/index.coffee +4 -4
  8. data/lib/assets/javascripts/tao/ui/index.coffee +4 -1
  9. data/lib/assets/javascripts/tao/ui/mobile/index.coffee +3 -2
  10. data/lib/assets/javascripts/tao/ui/mobile/slide_box/element.coffee +7 -0
  11. data/lib/assets/javascripts/tao/ui/mobile/slide_box/index.coffee +4 -0
  12. data/lib/assets/javascripts/tao/ui/popover/create.coffee +18 -0
  13. data/lib/assets/javascripts/tao/ui/popover/direction.coffee +76 -0
  14. data/lib/assets/javascripts/tao/ui/popover/element.coffee +99 -0
  15. data/lib/assets/javascripts/tao/ui/popover/index.coffee +5 -0
  16. data/lib/assets/javascripts/tao/ui/popover/position.coffee +83 -0
  17. data/lib/assets/javascripts/tao/ui/shared/slide_box/element/base.coffee +76 -0
  18. data/lib/assets/javascripts/tao/ui/{ujs.coffee → shared/ujs.coffee} +22 -1
  19. data/lib/assets/javascripts/tao/ui/slide_box/element.coffee +7 -0
  20. data/lib/assets/javascripts/tao/ui/slide_box/index.coffee +4 -0
  21. data/lib/assets/stylesheets/tao/ui/_mixins.scss +2 -2
  22. data/lib/assets/stylesheets/tao/ui/_variables.scss +2 -2
  23. data/lib/assets/stylesheets/tao/ui/basic.scss +11 -139
  24. data/lib/assets/stylesheets/tao/ui/buttons.scss +3 -54
  25. data/lib/assets/stylesheets/tao/ui/code.scss +1 -55
  26. data/lib/assets/stylesheets/tao/ui/dialog.scss +78 -0
  27. data/lib/assets/stylesheets/tao/ui/icons.scss +1 -17
  28. data/lib/assets/stylesheets/tao/ui/index.scss +3 -0
  29. data/lib/assets/stylesheets/tao/ui/mobile/_mixins.scss +2 -2
  30. data/lib/assets/stylesheets/tao/ui/mobile/_variables.scss +2 -2
  31. data/lib/assets/stylesheets/tao/ui/mobile/basic.scss +1 -1
  32. data/lib/assets/stylesheets/tao/ui/mobile/buttons.scss +1 -1
  33. data/lib/assets/stylesheets/tao/ui/mobile/code.scss +1 -1
  34. data/lib/assets/stylesheets/tao/ui/mobile/icons.scss +1 -1
  35. data/lib/assets/stylesheets/tao/ui/mobile/index.scss +1 -0
  36. data/lib/assets/stylesheets/tao/ui/mobile/slide_box.scss +48 -0
  37. data/lib/assets/stylesheets/tao/ui/mobile/tables.scss +1 -1
  38. data/lib/assets/stylesheets/tao/ui/mobile/variables/_base.scss +1 -2
  39. data/lib/assets/stylesheets/tao/ui/popover.scss +178 -0
  40. data/lib/assets/stylesheets/tao/ui/shared/_basic.scss +128 -0
  41. data/lib/assets/stylesheets/tao/ui/shared/_buttons.scss +65 -0
  42. data/lib/assets/stylesheets/tao/ui/shared/_code.scss +54 -0
  43. data/lib/assets/stylesheets/tao/ui/shared/_icons.scss +16 -0
  44. data/lib/assets/stylesheets/tao/ui/shared/_slide_box.scss +80 -0
  45. data/lib/assets/stylesheets/tao/ui/shared/_tables.scss +38 -0
  46. data/lib/assets/stylesheets/tao/ui/{mixins → shared/mixins}/_base.scss +0 -0
  47. data/lib/assets/stylesheets/tao/ui/{mixins → shared/mixins}/_buttons.scss +2 -4
  48. data/lib/assets/stylesheets/tao/ui/shared/variables/_base.scss +48 -0
  49. data/lib/assets/stylesheets/tao/ui/shared/variables/_buttons.scss +93 -0
  50. data/lib/assets/stylesheets/tao/ui/shared/variables/_tables.scss +2 -0
  51. data/lib/assets/stylesheets/tao/ui/slide_box.scss +16 -0
  52. data/lib/assets/stylesheets/tao/ui/tables.scss +3 -41
  53. data/lib/assets/stylesheets/tao/ui/variables/_base.scss +3 -42
  54. data/lib/generators/tao/icons/USAGE +2 -2
  55. data/lib/generators/tao/icons/templates/icons.coffee.erb +1 -1
  56. data/lib/tao_ui/components/dialog_component.rb +25 -0
  57. data/lib/tao_ui/components/icon_component.rb +7 -8
  58. data/lib/tao_ui/components/popover_component.rb +17 -0
  59. data/lib/tao_ui/components/slide_box_component.rb +21 -0
  60. data/lib/tao_ui/components.rb +3 -5
  61. data/lib/tao_ui/engine.rb +4 -1
  62. data/lib/tao_ui/version.rb +1 -1
  63. data/lib/views/components/tao_ui/components/_dialog.html.erb +10 -0
  64. data/lib/views/components/tao_ui/components/_popover.html.erb +10 -0
  65. data/lib/views/components/tao_ui/components/_slide_box.html.erb +8 -0
  66. metadata +79 -25
  67. data/lib/assets/stylesheets/tao/ui/mobile/mixins/_base.scss +0 -1
  68. data/lib/assets/stylesheets/tao/ui/mobile/mixins/_buttons.scss +0 -1
  69. data/lib/assets/stylesheets/tao/ui/mobile/variables/_buttons.scss +0 -1
  70. data/lib/assets/stylesheets/tao/ui/mobile/variables/_tables.scss +0 -1
  71. data/lib/assets/stylesheets/tao/ui/variables/_buttons.scss +0 -84
  72. data/lib/assets/stylesheets/tao/ui/variables/_tables.scss +0 -2
@@ -0,0 +1,128 @@
1
+ html {
2
+ box-sizing: border-box;
3
+ height: 100%;
4
+ font-size: 16px;
5
+ -webkit-text-size-adjust: 100%;
6
+ -ms-text-size-adjust: 100%;
7
+ -ms-overflow-style: scrollbar;
8
+ -webkit-tap-highlight-color: rgba(0,0,0,0);
9
+
10
+ *, *:before, *:after {
11
+ box-sizing: inherit;
12
+ }
13
+ }
14
+
15
+ body {
16
+ height: 100%;
17
+ margin: 0;
18
+ padding: 0;
19
+ font-size: $font-size;
20
+ font-family: "Helvetica Neue", "PingFang SC", "Microsoft Yahei", 微软雅黑, STXihei, 华文细黑, sans-serif;
21
+ line-height: $default-line-height;
22
+ color: $text-color;
23
+ fill: $text-color;
24
+ background-color: $white-color;
25
+ }
26
+
27
+ small,
28
+ .small {
29
+ font-size: $font-size-s;
30
+ font-weight: normal;
31
+ }
32
+
33
+ .x-small {
34
+ font-size: $font-size-xs;
35
+ font-weight: normal;
36
+ }
37
+
38
+ big,
39
+ .big,
40
+ .large {
41
+ font-size: $font-size-l;
42
+ }
43
+
44
+ mark,
45
+ .mark {
46
+ padding: 0.2em;
47
+ background-color: yellow;
48
+ }
49
+
50
+ a {
51
+ color: $link-color;
52
+ fill: $link-color;
53
+ text-decoration: none;
54
+ background-color: transparent; // Remove the gray background on active links in IE 10.
55
+ -webkit-text-decoration-skip: objects; // Remove gaps in links underline in iOS 8+ and Safari 8+.
56
+
57
+ &.warn {
58
+ color: $red-color;
59
+ fill: $red-color;
60
+ }
61
+
62
+ &.disabled {
63
+ color: $lightest-grey-color;
64
+ fill: $lightest-grey-color;
65
+ cursor: not-allowed;;
66
+ }
67
+ }
68
+
69
+ a:not([href]):not([tabindex]) {
70
+ color: inherit;
71
+ fill: inherit;
72
+ }
73
+
74
+ h1, h2, h3, h4, h5, h6,
75
+ .h1, .h2, .h3, .h4, .h5, .h6 {
76
+ margin-top: 1.5em;
77
+ margin-bottom: 1em;
78
+ line-height: $default-line-height;
79
+ color: $black-color;
80
+
81
+ &:first-child {
82
+ margin-top: 0;
83
+ }
84
+ }
85
+
86
+ h1, .h1 { font-size: $font-size-h1; }
87
+ h2, .h2 { font-size: $font-size-h2; }
88
+ h3, .h3 { font-size: $font-size-h3; }
89
+ h4, .h4 { font-size: $font-size-h4; }
90
+ h5, .h5 { font-size: $font-size-h5; }
91
+ h6, .h6 { font-size: $font-size-h6; }
92
+
93
+
94
+ hr {
95
+ margin-top: 1em;
96
+ margin-bottom: 1em;
97
+ border: 0;
98
+ border-top: 1px solid $border-color;
99
+ }
100
+
101
+ p {
102
+ line-height: 2.0;
103
+ margin: 0 0 1em 0;
104
+ }
105
+
106
+ ul, ol {
107
+ margin: 0 0 1em 0;
108
+ padding: 0 0 0 2em;
109
+
110
+ li {
111
+ line-height: 2.0
112
+ }
113
+
114
+ ul, ol {
115
+ margin-bottom: 0;
116
+ }
117
+ }
118
+
119
+ blockquote {
120
+ margin: 0 0 1em 0;
121
+ padding: 0.5em 1em;
122
+ color: $light-grey-color;
123
+ border-left: 0.25em solid $border-color;
124
+
125
+ *:last-child {
126
+ margin-bottom: 0;
127
+ }
128
+ }
@@ -0,0 +1,65 @@
1
+ .button {
2
+ display: inline-block;
3
+ padding: $button-padding;
4
+ font-size: $button-font-size;
5
+ line-height: $button-line-height;
6
+ border-radius: $border-radius-s;
7
+ cursor: pointer;
8
+ text-decoration: none;
9
+ text-align: center;
10
+ vertical-align: middle;
11
+ white-space: nowrap;
12
+ user-select: none;
13
+ transition: background 200ms, color 200ms, fill 200ms, border-color 200ms;
14
+ @include button-colors($default-button-colors);
15
+
16
+ .icon {
17
+ vertical-align: text-top;
18
+ }
19
+
20
+ &.text-with-icon {
21
+ padding-left: 1.125em;
22
+
23
+ .icon {
24
+ margin-right: 0.5em
25
+ }
26
+ }
27
+
28
+ &:focus, &.focus {
29
+ outline: none;
30
+ }
31
+
32
+ &.disabled,
33
+ &[disabled] {
34
+ cursor: not-allowed;
35
+ }
36
+
37
+ &.button-warning {
38
+ @include button-colors($warning-button-colors);
39
+ }
40
+
41
+ &.button-primary {
42
+ @include button-colors($primary-button-colors);
43
+ }
44
+
45
+ &.button-small {
46
+ padding: $small-button-padding;
47
+ font-size: $small-button-font-size;
48
+ line-height: $small-button-line-height;
49
+
50
+ &.text-with-icon {
51
+ padding-left: 0.75em;
52
+ }
53
+ }
54
+
55
+ &.button-icon {
56
+ min-width: 2.5em;
57
+ padding: $button-padding-v;
58
+ @include button-colors($icon-button-colors);
59
+ }
60
+
61
+ &.button-block {
62
+ display: block;
63
+ width: 100%;
64
+ }
65
+ }
@@ -0,0 +1,54 @@
1
+ // Inline and block code styles
2
+ code,
3
+ kbd,
4
+ pre,
5
+ samp {
6
+ font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
7
+ }
8
+
9
+ code {
10
+ padding: 0.2em 0.4em;
11
+ font-size: 85%;
12
+ background-color: $grey-bg-color;
13
+ border-radius: $border-radius;
14
+ word-wrap: break-word;
15
+
16
+ a > & {
17
+ padding: 0;
18
+ color: inherit;
19
+ background-color: inherit;
20
+ }
21
+ }
22
+
23
+ kbd {
24
+ padding: 0.2em 0.4em;
25
+ font-size: 85%;
26
+ background-color: $grey-bg-color;
27
+ border-radius: $border-radius;
28
+
29
+ kbd {
30
+ padding: 0;
31
+ font-size: 100%;
32
+ }
33
+ }
34
+
35
+ pre {
36
+ display: block;
37
+ margin-top: 0;
38
+ margin-bottom: 1em;
39
+ padding: 1.5em;
40
+ font-size: 85%;
41
+ background-color: $grey-bg-color;
42
+ overflow: auto;
43
+ border-radius: $border-radius;
44
+ white-space: pre-wrap;
45
+
46
+ code {
47
+ padding: 0;
48
+ font-size: inherit;
49
+ color: inherit;
50
+ background-color: transparent;
51
+ border-radius: 0;
52
+ word-wrap: normal;
53
+ }
54
+ }
@@ -0,0 +1,16 @@
1
+ @keyframes spin {
2
+ from { transform:rotate(0deg); }
3
+ to { transform:rotate(360deg); }
4
+ }
5
+
6
+ .icon {
7
+ display: inline-block;
8
+ width: 1.25em;
9
+ height: 1.25em;
10
+ vertical-align: middle;
11
+ fill: inherit;
12
+
13
+ &.spin {
14
+ animation: spin 1s infinite linear;
15
+ }
16
+ }
@@ -0,0 +1,80 @@
1
+
2
+ body.slide-box-active {
3
+ overflow: hidden;
4
+ }
5
+
6
+ tao-slide-box {
7
+ display: none;
8
+ position: fixed;
9
+ background: $white-color;
10
+ opacity: 0;
11
+ z-index: $z-index-float;
12
+ border: 0px solid $light-border-color;
13
+ transition: opacity 200ms ease-in-out, transform 200ms ease-in-out;
14
+ overflow: hidden;
15
+
16
+ & > .link-close {
17
+ display: none;
18
+ justify-content: center;
19
+ align-items: center;
20
+ width: 2rem;
21
+ height: 2rem;
22
+ position: absolute;
23
+ top: 0.5rem;
24
+ fill: $lighter-grey-color;
25
+
26
+ &:hover {
27
+ fill: $grey-color;
28
+ }
29
+ }
30
+
31
+ &[with-close-button] > .link-close {
32
+ display: flex;
33
+ }
34
+
35
+ .slide-box-content {
36
+ max-height: 100%;
37
+ overflow: auto;
38
+ }
39
+
40
+ &[direction='rtl'] {
41
+ top: 0;
42
+ right: 0;
43
+ bottom: 0;
44
+ transform: translateX(50%);
45
+ border-left-width: 1px;
46
+ box-shadow: -2px 0 5px 0 rgba(0,0,0,0.05);
47
+ }
48
+
49
+ &[direction='ltr'] {
50
+ top: 0;
51
+ left: 0;
52
+ bottom: 0;
53
+ transform: translateX(-50%);
54
+ border-right-width: 1px;
55
+ box-shadow: 2px 0 5px 0 rgba(0,0,0,0.05);
56
+ }
57
+
58
+ &[direction='ttb'] {
59
+ left: 0;
60
+ top: 0;
61
+ right: 0;
62
+ transform: translateY(-50%);
63
+ border-bottom-width: 1px;
64
+ box-shadow: 0 2px 5px 0 rgba(0,0,0,0.05);
65
+ }
66
+
67
+ &[direction='btt'] {
68
+ left: 0;
69
+ right: 0;
70
+ bottom: 0;
71
+ transform: translateY(50%);
72
+ border-top-width: 1px;
73
+ box-shadow: 0 -2px 5px 0 rgba(0,0,0,0.05);
74
+ }
75
+
76
+ &[active] {
77
+ opacity: 1;
78
+ transform: translateX(0) translateY(0);
79
+ }
80
+ }
@@ -0,0 +1,38 @@
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: 0.875rem 0.625rem;
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: 1.125rem 0.625rem;
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
+ }
@@ -6,12 +6,11 @@
6
6
  color: map-get($normal-colors, 'text');
7
7
  fill: map-get($normal-colors, 'text');
8
8
 
9
-
10
9
  @if not $mobile {
11
10
  &:focus, &.focus {
12
- box-shadow: 0px 0px 0 2px rgba(map-get($normal-colors, 'border'), 0.5);
11
+ box-shadow: 0px 0px 0 2px rgba($border-color, 0.5);
13
12
  }
14
-
13
+
15
14
  &:hover {
16
15
  $hover-colors: map-get($colors, 'hover');
17
16
  background: map-get($hover-colors, 'bg');
@@ -27,7 +26,6 @@
27
26
  border: 1px solid map-get($active-colors, 'border');
28
27
  color: map-get($active-colors, 'text');
29
28
  fill: map-get($active-colors, 'text');
30
- box-shadow: 0px 0px 0 2px rgba(map-get($active-colors, 'border'), 0.5);
31
29
  }
32
30
 
33
31
  &.disabled,
@@ -0,0 +1,48 @@
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
+
12
+ $light-grey-color: #666666 !default;
13
+ $lighter-grey-color: #9b9b9b !default;
14
+ $lightest-grey-color: #cccccc !default;
15
+
16
+ $grey-bg-color: #f6f6f6 !default;
17
+ $green-bg-color: #f5fdf3 !default;
18
+ $blue-bg-color: #f5f9ff !default;
19
+ $orange-bg-color: #fffcf7 !default;
20
+ $red-bg-color: #ffeee6 !default;
21
+
22
+ $text-color: $grey-color !default;
23
+ $link-color: #4499ee !default;
24
+ $link-hover-color: #3377cc !default;
25
+
26
+ $line-color: #dfdfdf !default;
27
+ $light-line-color: #eeeeee !default;
28
+ $lighter-line-color: #f3f3f3 !default;
29
+
30
+ $border-color: $line-color !default;
31
+ $light-border-color: $light-line-color !default;
32
+ $lighter-border-color: $lighter-line-color !default;
33
+
34
+ $border-radius: 0.25rem !default;
35
+ $border-radius-s: 0.125rem !default;
36
+ $border-radius-l: 0.3rem !default;
37
+
38
+ $default-line-height: 1.5 !default;
39
+
40
+ $font-size: 1rem !default;
41
+ $font-size-s: 0.875rem !default;
42
+ $font-size-l: 1.125rem !default;
43
+ $font-size-xs: 0.75rem !default;
44
+
45
+ $z-index-float: 100 !default;
46
+ $z-index-dialog: 200 !default;
47
+ $z-index-popover: 300 !default;
48
+ $z-index-tooltip: 400 !default;
@@ -0,0 +1,93 @@
1
+ $button-font-size: $font-size !default;
2
+ $button-line-height: 1.5 !default;
3
+ $button-padding-v: 0.4375em !default;
4
+ $button-padding-h: 1.25em !default;
5
+ $button-padding: $button-padding-v $button-padding-h !default;
6
+
7
+ $small-button-font-size: $font-size-xs !default;
8
+ $small-button-line-height: 1.5 !default;
9
+ $small-button-padding-v: 0.25em !default;
10
+ $small-button-padding-h: 0.875em !default;
11
+ $small-button-padding: $small-button-padding-v $small-button-padding-h !default;
12
+
13
+ $default-button-colors: (
14
+ normal: (
15
+ bg: $white-color,
16
+ text: $ui-color,
17
+ border: $border-color
18
+ ),
19
+ hover: (
20
+ bg: $white-color,
21
+ text: #66cc33,
22
+ border: #66cc33
23
+ ),
24
+ active: (
25
+ bg: $white-color,
26
+ text: #22AA11,
27
+ border: #22AA11
28
+ ),
29
+ disable: (
30
+ bg: $white-color,
31
+ text: $lightest-grey-color,
32
+ border: $lighter-line-color
33
+ )
34
+ ) !default;
35
+
36
+ $primary-button-colors: (
37
+ normal: (
38
+ bg: $ui-color,
39
+ text: $white-color,
40
+ border: $ui-color
41
+ ),
42
+ hover: (
43
+ bg: #66cc33,
44
+ text: $white-color,
45
+ border: #66cc33
46
+ ),
47
+ active: (
48
+ bg: #22AA11,
49
+ text: $white-color,
50
+ border: #22AA11
51
+ ),
52
+ disable: (
53
+ bg: $border-color,
54
+ text: $white-color,
55
+ border: $border-color
56
+ )
57
+ ) !default;
58
+
59
+ $warning-button-colors: map-merge($default-button-colors, (
60
+ normal: (
61
+ bg: $white-color,
62
+ text: $red-color,
63
+ border: $red-color
64
+ ),
65
+ hover: (
66
+ bg: $red-color,
67
+ text: $white-color,
68
+ border: $red-color
69
+ ),
70
+ active: (
71
+ bg: #EE6633,
72
+ text: $white-color,
73
+ border: #EE6633
74
+ )
75
+ )) !default;
76
+
77
+ $icon-button-colors: map-merge($default-button-colors, (
78
+ normal: (
79
+ bg: $white-color,
80
+ text: $lighter-grey-color,
81
+ border: $border-color
82
+ ),
83
+ hover: (
84
+ bg: $white-color,
85
+ text: $lighter-grey-color,
86
+ border: $link-color
87
+ ),
88
+ active: (
89
+ bg: $white-color,
90
+ text: $lighter-grey-color,
91
+ border: $link-color
92
+ )
93
+ )) !default;
@@ -0,0 +1,2 @@
1
+ $table-line-color: $light-line-color !default;
2
+ $table-row-hover-color: $grey-bg-color !default;
@@ -0,0 +1,16 @@
1
+ @import 'tao/ui/globals';
2
+ @import 'tao/ui/shared/slide_box';
3
+
4
+ tao-slide-box {
5
+ & > .link-close {
6
+ right: 0.5rem;
7
+
8
+ &:hover {
9
+ fill: $grey-color;
10
+ }
11
+ }
12
+
13
+ .slide-box-content {
14
+ padding: 1.875rem;
15
+ }
16
+ }
@@ -1,46 +1,8 @@
1
1
  @import 'tao/ui/globals';
2
+ @import 'tao/ui/shared/tables';
2
3
 
3
4
  table.table {
4
- width: 100%;
5
- max-width: 100%;
6
- border-collapse: collapse;
7
-
8
- th {
9
- border-top: 1px solid $table-border-color;
10
- border-bottom: 1px solid $table-border-color;
11
- padding: 0.875rem 0.625rem;
12
- font-size: $font-size-xs;
13
- font-weight: normal;
14
- line-height: 1.125;
15
- color: $lighter-grey-color;
16
- text-align: left;
17
- }
18
-
19
- td {
20
- border-bottom: 1px solid $table-border-color;
21
- padding: 1.125rem 0.625rem;
22
- line-height: 1.125;
23
- text-align: left;
24
- }
25
-
26
- th.align-left,
27
- td.align-left {
28
- text-align: left;
29
- }
30
-
31
- th.align-right,
32
- td.align-right {
33
- text-align: right;
34
- }
35
-
36
- th.align-center,
37
- td.align-center {
38
- text-align: center;
39
- }
40
-
41
- @if not $mobile {
42
- tbody tr:hover {
43
- background-color: $table-row-hover-color;
44
- }
5
+ tbody tr:hover {
6
+ background-color: $table-row-hover-color;
45
7
  }
46
8
  }
@@ -1,49 +1,10 @@
1
+ @import 'tao/ui/shared/variables/base';
1
2
 
2
3
  $mobile: false !default;
3
4
 
4
- $ui-color: #44BB33 !default;
5
-
6
- $white-color: #ffffff !default;
7
- $grey-color: #4a4a4a !default;
8
- $black-color: #000000 !default;
9
- $red-color: #FF7755 !default;
10
- $orange-color: #FFAA00 !default;
11
- $green-color: #55BB33 !default;
12
- $blue-color: #2DB7F5 !default;
13
-
14
- $light-grey-color: #666666 !default;
15
- $lighter-grey-color: #999999 !default;
16
- $lightest-grey-color: #cccccc !default;
17
-
18
- $grey-bg-color: #efefef !default;
19
- $light-grey-bg-color: #f3f3f3 !default;
20
- $lighter-grey-bg-color: #f6f6f6 !default;
21
-
22
- $text-color: $grey-color !default;
23
- $link-color: #4499EE !default;
24
- $link-hover-color: #3377cc !default;
25
- $border-color: #dfdfdf !default;
26
-
27
- $border-width: 1px !default;
28
- $border-radius: 0.25rem !default;
29
- $border-radius-s: 0.125rem !default;
30
- $border-radius-l: 0.3rem !default;
31
-
32
- $default-line-height: 1.5;
33
-
34
- $font-size: 1rem !default;
35
- $font-size-s: 0.875rem !default;
36
- $font-size-l: 1.125rem !default;
37
- $font-size-xs: 0.75rem !default;
38
-
39
- $font-size-h1: 2rem !default;
5
+ $font-size-h1: 2.25rem !default;
40
6
  $font-size-h2: 1.5rem !default;
41
- $font-size-h3: 1.25rem !default;
7
+ $font-size-h3: 1.125rem !default;
42
8
  $font-size-h4: 1rem !default;
43
9
  $font-size-h5: 0.875rem !default;
44
10
  $font-size-h6: 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;
@@ -2,7 +2,7 @@ Description:
2
2
  Generate coffee file containing all svg icons.
3
3
 
4
4
  Example:
5
- `rails generate tao:icons basic`
5
+ `rails generate tao:icons base`
6
6
 
7
7
  Create coffee file:
8
- lib/assets/javascripts/tao/ui/icons/basic.coffee
8
+ lib/assets/javascripts/tao/ui/icons/base.coffee
@@ -1,3 +1,3 @@
1
- Tao.ui.icons += '''
1
+ Tao._icons += '''
2
2
  <%= icons_html %>
3
3
  '''