moovui 0.1.2 → 0.1.3
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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/chosen.jquery.js +111 -66
- data/app/assets/javascripts/foundation.tooltips.custom.js +10 -3
- data/app/assets/javascripts/jquery.placeholder.js +185 -0
- data/app/assets/javascripts/shBrushSass.js +4 -3
- data/app/assets/javascripts/shCore.custom.js +6 -0
- data/app/assets/stylesheets/bourbon/_bourbon-deprecated-upcoming.scss +1 -1
- data/app/assets/stylesheets/globals/_base.scss +4 -3
- data/app/assets/stylesheets/globals/_entypo.scss +4 -6
- data/app/assets/stylesheets/globals/_header.scss +8 -14
- data/app/assets/stylesheets/globals/_mixins.scss +7 -4
- data/app/assets/stylesheets/globals/_vars.scss +9 -9
- data/app/assets/stylesheets/modules/_accordion.scss +5 -6
- data/app/assets/stylesheets/modules/_actions.scss +3 -0
- data/app/assets/stylesheets/modules/{_notice.scss → _alert.scss} +32 -22
- data/app/assets/stylesheets/modules/_btn.scss +147 -37
- data/app/assets/stylesheets/modules/_btnbar.scss +16 -12
- data/app/assets/stylesheets/modules/_code.scss +15 -1
- data/app/assets/stylesheets/modules/_copy.scss +4 -1
- data/app/assets/stylesheets/modules/_definition.scss +15 -6
- data/app/assets/stylesheets/modules/_disabled.scss +12 -0
- data/app/assets/stylesheets/modules/_docs.scss +3 -79
- data/app/assets/stylesheets/modules/_dropdown.scss +2 -2
- data/app/assets/stylesheets/modules/_flex.scss +26 -18
- data/app/assets/stylesheets/modules/_grid.scss +14 -15
- data/app/assets/stylesheets/modules/_input.scss +21 -7
- data/app/assets/stylesheets/modules/_label.scss +29 -1
- data/app/assets/stylesheets/modules/_list.scss +2 -3
- data/app/assets/stylesheets/modules/_modal.scss +15 -11
- data/app/assets/stylesheets/modules/_pane.scss +58 -5
- data/app/assets/stylesheets/modules/_select.scss +96 -28
- data/app/assets/stylesheets/modules/_sidebar.scss +10 -10
- data/app/assets/stylesheets/modules/_syntax-highlighter.scss +12 -2
- data/app/assets/stylesheets/modules/_table.scss +117 -44
- data/app/assets/stylesheets/modules/_tabs.scss +56 -0
- data/app/assets/stylesheets/modules/_toggle.scss +121 -0
- data/app/assets/stylesheets/modules/_tooltip.scss +34 -17
- data/app/assets/stylesheets/moovui.scss +12 -3
- data/lib/moovui/version.rb +1 -1
- metadata +14 -11
- data/app/assets/stylesheets/fonts/TSTARPRO-BoldWeb.eot +0 -0
- data/app/assets/stylesheets/fonts/TSTARPRO-BoldWeb.woff +0 -0
|
@@ -1,6 +1,34 @@
|
|
|
1
1
|
@if $moovui-init {
|
|
2
2
|
label {
|
|
3
3
|
display: inline-block;
|
|
4
|
-
margin: 0 0 5px;
|
|
5
4
|
}
|
|
6
5
|
}
|
|
6
|
+
|
|
7
|
+
label {
|
|
8
|
+
&.#{$moovui-prefix}inline {
|
|
9
|
+
float: left;
|
|
10
|
+
margin: 0 $sp $sp2 0;
|
|
11
|
+
padding: 3px 0;
|
|
12
|
+
min-width: 120px;
|
|
13
|
+
& + input {
|
|
14
|
+
display: inline-block;
|
|
15
|
+
margin-top: 0;
|
|
16
|
+
}
|
|
17
|
+
& + textarea {
|
|
18
|
+
display: inline-block;
|
|
19
|
+
margin-top: 0;
|
|
20
|
+
}
|
|
21
|
+
& + select {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
margin-top: 0;
|
|
24
|
+
vertical-align: middle;
|
|
25
|
+
& + .chosen-container {
|
|
26
|
+
display: inline-block;
|
|
27
|
+
margin-top: 0;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
&.#{$moovui-prefix}text-right {
|
|
31
|
+
min-width: 200px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -28,7 +28,7 @@ ol.copy, .copy ol {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
@mixin section-list {
|
|
31
|
-
li {
|
|
31
|
+
> li {
|
|
32
32
|
margin: 0 0 $sp;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -38,8 +38,7 @@ ol.copy, .copy ol {
|
|
|
38
38
|
margin: 0 0 $sp2 2em;
|
|
39
39
|
padding: 0 0 0 1em; // padding won't get overridden
|
|
40
40
|
li:before {
|
|
41
|
-
@include
|
|
42
|
-
@extend .icon-right:before;
|
|
41
|
+
@include icon-right;
|
|
43
42
|
color: #d3d5d5;
|
|
44
43
|
margin: 0 9px 0 -20px;
|
|
45
44
|
}
|
|
@@ -8,23 +8,26 @@
|
|
|
8
8
|
left: 0;
|
|
9
9
|
width: 100%;
|
|
10
10
|
height: 100%;
|
|
11
|
-
z-index:
|
|
11
|
+
z-index: 999;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.reveal-modal {
|
|
15
15
|
@include box-shadow(rgba(#000, 0.4) 0 0 10px);
|
|
16
16
|
@include radius;
|
|
17
17
|
background: #fff;
|
|
18
|
-
border: solid
|
|
18
|
+
border: 1px solid #666;
|
|
19
19
|
display: none;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
left: 50%;
|
|
20
|
+
position: fixed;
|
|
21
|
+
top: 15% !important;
|
|
22
|
+
left: 20%;
|
|
24
23
|
visibility: hidden;
|
|
25
24
|
width: 60%;
|
|
26
25
|
height: auto;
|
|
27
|
-
z-index:
|
|
26
|
+
z-index: 1000;
|
|
27
|
+
@include mobile {
|
|
28
|
+
left: 5%;
|
|
29
|
+
width: 90%;
|
|
30
|
+
}
|
|
28
31
|
}
|
|
29
32
|
|
|
30
33
|
.modal-header {
|
|
@@ -36,20 +39,21 @@
|
|
|
36
39
|
@include border-radius(8px);
|
|
37
40
|
background: #a2a2a2;
|
|
38
41
|
line-height: 14px;
|
|
39
|
-
padding: 0 0 0 4px;
|
|
40
42
|
position: absolute;
|
|
41
|
-
top:
|
|
43
|
+
top: 17px;
|
|
42
44
|
right: 16px;
|
|
45
|
+
text-align: center;
|
|
43
46
|
width: 16px;
|
|
44
47
|
height: 16px;
|
|
45
48
|
&:before {
|
|
46
49
|
content: "\00d7";
|
|
47
50
|
color: #fff;
|
|
48
|
-
font-size:
|
|
51
|
+
font-size: 15px;
|
|
49
52
|
}
|
|
50
53
|
}
|
|
51
54
|
h3 {
|
|
52
|
-
|
|
55
|
+
@include ellipsis;
|
|
56
|
+
margin: 0 30px 0 0;
|
|
53
57
|
text-shadow: #fff 0 1px;
|
|
54
58
|
}
|
|
55
59
|
}
|
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
@mixin pane {
|
|
2
|
-
@include border-radius(
|
|
3
|
-
@include box-shadow(#
|
|
2
|
+
@include border-radius(5px);
|
|
3
|
+
@include box-shadow(rgba(#000, 0.1) 0 1px 1px);
|
|
4
4
|
@include clearfix;
|
|
5
5
|
background: #eaedef;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
border: 1px solid #e2e5e7;
|
|
7
|
+
margin: 0 0 $sp2;
|
|
8
|
+
padding: $sp2 - 1px;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
@mixin subpane
|
|
11
|
+
@mixin subpane {
|
|
11
12
|
@include clearfix;
|
|
13
|
+
@include radius;
|
|
14
|
+
background: #fff;
|
|
15
|
+
border: 1px solid #ccc;
|
|
16
|
+
margin: 0 0 $sp2;
|
|
17
|
+
padding: $sp2 - 1px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@mixin subcontent {
|
|
12
21
|
@include radius;
|
|
13
22
|
background: $palegray;
|
|
14
23
|
border: 1px solid #ccc;
|
|
@@ -23,3 +32,47 @@
|
|
|
23
32
|
.#{$moovui-prefix}subpane {
|
|
24
33
|
@include subpane;
|
|
25
34
|
}
|
|
35
|
+
|
|
36
|
+
.#{$moovui-prefix}subcontent {
|
|
37
|
+
@include subcontent;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@mixin panel {
|
|
41
|
+
@include border-radius(6px);
|
|
42
|
+
background: #fff;
|
|
43
|
+
border: 1px solid #ccc;
|
|
44
|
+
margin: 0 0 $sp2;
|
|
45
|
+
padding: $sp2;
|
|
46
|
+
.title {
|
|
47
|
+
@include border-radius(5px 5px 0 0);
|
|
48
|
+
background: #eee;
|
|
49
|
+
border-bottom: 1px solid #ccc;
|
|
50
|
+
font-weight: bold;
|
|
51
|
+
margin: (-$sp2) (-$sp2) $sp2;
|
|
52
|
+
padding: 5px $sp2;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.#{$moovui-prefix}panel {
|
|
57
|
+
@include panel;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
ol > .#{$moovui-prefix}panel {
|
|
61
|
+
&:before {
|
|
62
|
+
@include border-radius(9px);
|
|
63
|
+
background: #999;
|
|
64
|
+
color: #fff;
|
|
65
|
+
content: counter(panel);
|
|
66
|
+
counter-increment: panel;
|
|
67
|
+
float: left;
|
|
68
|
+
font-size: 11px;
|
|
69
|
+
line-height: 17px;
|
|
70
|
+
margin: -12px 8px 0 -10px;
|
|
71
|
+
text-align: center;
|
|
72
|
+
width: 18px;
|
|
73
|
+
height: 18px;
|
|
74
|
+
}
|
|
75
|
+
&:first-child {
|
|
76
|
+
counter-reset: panel;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -1,54 +1,110 @@
|
|
|
1
1
|
@if $moovui-init {
|
|
2
|
+
select, .chosen-single {
|
|
3
|
+
$img: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAmCAYAAACh1knUAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3NpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpjYzM3MzM1Ni1lMzJlLTQ1MWEtOGUyOS1lN2ZjY2U5NzAzNGMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QThCRkY1N0U1QkE5MTFFMzhGQUNDODdBRkQxQkRBNzMiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QThCRkY1N0Q1QkE5MTFFMzhGQUNDODdBRkQxQkRBNzMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MWRlZTVhMTMtZjQwMC00OWU1LTgxNGYtMWVkODNlZmUyOTEzIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOmNjMzczMzU2LWUzMmUtNDUxYS04ZTI5LWU3ZmNjZTk3MDM0YyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PhIuXMcAAADtSURBVHjaYrh06dJ/IPgAxAwDiZkYBgkYdcioQ0YdMuqQUYeMOmTUIfQGLORocnFy6WFhYZFiYMQi+Z+B4c+fP8/27NtTQnOH9PT1sE2eNJmBkQnTJf///WfIzctlo0vUGBgYTAsJDfnPw8PDwMfHB8cgPkgcJE+vNHLDw8NjpbqaOriZBw4JIA3ig8RB8nRLrIyMjJujY6IvgkIC5AgQHRkVeREkTu9c8x9o+eS4uLh37OzsDLGxse8FBASmQJIrGYAKrXhFIJ4GpcluxbNQoQi4D8RZoyXrqENGHTLqkFGHjDpk1CFDzSEAAQYAvBID8mlySUQAAAAASUVORK5CYII=);
|
|
4
|
+
background: #f4f4f4 $img no-repeat 100% 50%;
|
|
5
|
+
@include background($img no-repeat 100% 50%, linear-gradient(#fff 1px, #f9f9f9 1px, #eaeaea));
|
|
6
|
+
@include border-radius(2px);
|
|
7
|
+
@include box-shadow(rgba(#000, 0.1) 0 1px 1px);
|
|
8
|
+
@include transition(0.3s);
|
|
9
|
+
// ugly but bourbon mixin doesn't convert box-shadow into prefixed
|
|
10
|
+
-webkit-transition-property: -webkit-box-shadow, box-shadow, border-color;
|
|
11
|
+
-moz-transition-property: box-shadow, border-color;
|
|
12
|
+
transition-property: box-shadow, border-color;
|
|
13
|
+
border: 1px solid #ccc;
|
|
14
|
+
color: #777;
|
|
15
|
+
letter-spacing: 0.5px;
|
|
16
|
+
text-shadow: #fff 0 1px;
|
|
17
|
+
}
|
|
18
|
+
|
|
2
19
|
select {
|
|
3
20
|
@include appearance(none);
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
21
|
+
font: 12px/18px $font;
|
|
22
|
+
display: block;
|
|
23
|
+
margin: 0 0 $sp2;
|
|
24
|
+
padding: 5px 44px 6px 10px;
|
|
25
|
+
max-width: 100%;
|
|
26
|
+
height: 30px;
|
|
27
|
+
@media (-moz-device-pixel-ratio) {
|
|
28
|
+
@include background(linear-gradient(#fff 1px, #f9f9f9 1px, #eaeaea));
|
|
29
|
+
padding-right: 26px;
|
|
30
|
+
padding-left: 6px;
|
|
31
|
+
}
|
|
32
|
+
&::-ms-expand {
|
|
33
|
+
display: none;
|
|
34
|
+
}
|
|
35
|
+
&.#{$moovui-prefix}error {
|
|
36
|
+
@include box-shadow($red 0 0 0 1px);
|
|
37
|
+
border-color: $red;
|
|
38
|
+
& + .chosen-container .chosen-single {
|
|
39
|
+
@include box-shadow($red 0 0 0 1px);
|
|
40
|
+
border-color: $red;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
label + & {
|
|
44
|
+
margin-top: 5px;
|
|
45
|
+
& + .chosen-container {
|
|
46
|
+
margin-top: 5px;
|
|
47
|
+
}
|
|
12
48
|
}
|
|
13
49
|
}
|
|
14
50
|
|
|
51
|
+
option {
|
|
52
|
+
text-shadow: none; // for Firefox
|
|
53
|
+
}
|
|
54
|
+
|
|
15
55
|
.chosen-container {
|
|
16
|
-
font-size:
|
|
56
|
+
font-size: 12px;
|
|
17
57
|
margin: 0 0 $sp2;
|
|
18
58
|
position: relative;
|
|
59
|
+
text-align: left;
|
|
19
60
|
vertical-align: middle;
|
|
20
61
|
}
|
|
21
62
|
.chosen-container-active .chosen-single {
|
|
22
|
-
border-color: #
|
|
63
|
+
border-color: #b5b5b5;
|
|
64
|
+
}
|
|
65
|
+
.chosen-container-single-nosearch .chosen-search {
|
|
66
|
+
position: absolute;
|
|
67
|
+
left: -9999px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
table select, table .chosen-container {
|
|
71
|
+
margin-bottom: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.text-center {
|
|
75
|
+
select, .chosen-container {
|
|
76
|
+
margin-right: auto;
|
|
77
|
+
margin-left: auto;
|
|
78
|
+
}
|
|
23
79
|
}
|
|
24
80
|
|
|
25
81
|
.chosen-single {
|
|
26
|
-
|
|
27
|
-
background: #fafafa;
|
|
28
|
-
border: 1px solid #ccc;
|
|
29
|
-
color: $text-color;
|
|
82
|
+
cursor: default;
|
|
30
83
|
display: block;
|
|
31
84
|
font-weight: normal;
|
|
32
85
|
line-height: $line-height;
|
|
33
|
-
padding:
|
|
86
|
+
padding: 2px 44px 2px 10px;
|
|
34
87
|
position: relative;
|
|
88
|
+
span {
|
|
89
|
+
@include ellipsis;
|
|
90
|
+
display: block;
|
|
91
|
+
}
|
|
35
92
|
div {
|
|
36
|
-
|
|
37
|
-
position: absolute;
|
|
38
|
-
top: 6px;
|
|
39
|
-
right: $sp;
|
|
40
|
-
&:before {
|
|
41
|
-
@include entypo-icon;
|
|
42
|
-
@extend .icon-chevron-down:before;
|
|
43
|
-
}
|
|
93
|
+
display: none;
|
|
44
94
|
}
|
|
45
95
|
}
|
|
96
|
+
.chosen-disabled .chosen-single {
|
|
97
|
+
background-color: #eee;
|
|
98
|
+
color: #aaa;
|
|
99
|
+
outline: 0;
|
|
100
|
+
pointer-events: none;
|
|
101
|
+
}
|
|
46
102
|
|
|
47
103
|
.chosen-drop {
|
|
48
|
-
@include box-shadow(rgba(#000, 0.
|
|
49
|
-
@include radius;
|
|
104
|
+
@include box-shadow(rgba(#000, 0.1) 0 0 2px 1px);
|
|
105
|
+
@include border-radius(2px);
|
|
50
106
|
background: #fff;
|
|
51
|
-
|
|
107
|
+
border: 1px solid #d6d6d6;
|
|
52
108
|
overflow: hidden;
|
|
53
109
|
position: absolute;
|
|
54
110
|
top: 100%;
|
|
@@ -73,13 +129,18 @@ select {
|
|
|
73
129
|
}
|
|
74
130
|
|
|
75
131
|
.chosen-results {
|
|
132
|
+
background: #f9f9f9;
|
|
133
|
+
@include background(linear-gradient(#fafafa, #f8f8f8));
|
|
76
134
|
overflow-x: hidden;
|
|
77
135
|
overflow-y: auto;
|
|
78
136
|
position: relative;
|
|
79
|
-
|
|
137
|
+
padding: 7px 0;
|
|
138
|
+
max-height: 150px;
|
|
80
139
|
li {
|
|
140
|
+
color: #666;
|
|
81
141
|
display: none;
|
|
82
|
-
|
|
142
|
+
letter-spacing: 0.5px;
|
|
143
|
+
padding: 1px 21px 1px 16px;
|
|
83
144
|
white-space: nowrap;
|
|
84
145
|
}
|
|
85
146
|
.active-result {
|
|
@@ -91,4 +152,11 @@ select {
|
|
|
91
152
|
color: #fff;
|
|
92
153
|
}
|
|
93
154
|
}
|
|
155
|
+
|
|
156
|
+
// IE doesn't respect letter-spacing on select
|
|
157
|
+
@media (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
|
158
|
+
select, .chosen-single, .chosen-results li {
|
|
159
|
+
letter-spacing: 0;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
94
162
|
}
|
|
@@ -11,18 +11,17 @@
|
|
|
11
11
|
height: 0;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
.active [data-section-title]
|
|
14
|
+
.active [data-section-title] {
|
|
15
15
|
color: inherit;
|
|
16
16
|
}
|
|
17
17
|
[data-section-title] {
|
|
18
|
-
padding: 5px
|
|
18
|
+
padding: 5px 30px 5px $sp;
|
|
19
19
|
position: absolute;
|
|
20
20
|
top: 0;
|
|
21
21
|
left: 0;
|
|
22
22
|
width: 20%;
|
|
23
23
|
&:before {
|
|
24
|
-
@
|
|
25
|
-
@include entypo-icon;
|
|
24
|
+
@include icon-pencil;
|
|
26
25
|
color: $lightgray;
|
|
27
26
|
float: right;
|
|
28
27
|
margin-right: -20px;
|
|
@@ -44,24 +43,26 @@
|
|
|
44
43
|
|
|
45
44
|
@mixin doc-sidebar {
|
|
46
45
|
@include radius;
|
|
47
|
-
color: #7c8899;
|
|
48
46
|
font-size: 12px;
|
|
49
47
|
overflow: hidden;
|
|
50
48
|
width: 20%;
|
|
49
|
+
z-index: 1;
|
|
51
50
|
[data-section-title], a {
|
|
52
51
|
margin: 0 0 1px;
|
|
53
52
|
padding: 5px $sp;
|
|
54
53
|
}
|
|
54
|
+
[data-section-title] {
|
|
55
|
+
color: #7c8899;
|
|
56
|
+
}
|
|
55
57
|
[data-section-title]:after {
|
|
56
|
-
@include
|
|
57
|
-
@extend .icon-plus:before;
|
|
58
|
+
@include icon-plus;
|
|
58
59
|
float: right;
|
|
59
60
|
font-size: 12px;
|
|
60
61
|
opacity: 0.5;
|
|
61
62
|
font-weight: normal;
|
|
62
63
|
}
|
|
63
64
|
.active > [data-section-title]:after {
|
|
64
|
-
|
|
65
|
+
content: $icon-minus;
|
|
65
66
|
}
|
|
66
67
|
> section {
|
|
67
68
|
> [data-section-title] {
|
|
@@ -104,8 +105,7 @@
|
|
|
104
105
|
opacity: 0.8;
|
|
105
106
|
}
|
|
106
107
|
&[target="_blank"]:after {
|
|
107
|
-
@include
|
|
108
|
-
@extend .icon-popup:before;
|
|
108
|
+
@include icon-popup;
|
|
109
109
|
float: right;
|
|
110
110
|
opacity: 0.5;
|
|
111
111
|
}
|
|
@@ -21,17 +21,24 @@
|
|
|
21
21
|
font-size: 9px;
|
|
22
22
|
font-weight: bold;
|
|
23
23
|
letter-spacing: 1px;
|
|
24
|
+
line-height: 16px;
|
|
24
25
|
position: absolute;
|
|
25
|
-
right:
|
|
26
|
+
right: 2px;
|
|
26
27
|
top: 0;
|
|
27
28
|
text-transform: uppercase;
|
|
28
29
|
}
|
|
30
|
+
table, tbody, tr, td {
|
|
31
|
+
display: block;
|
|
32
|
+
}
|
|
29
33
|
table {
|
|
30
34
|
background: none;
|
|
31
35
|
margin: 0;
|
|
32
36
|
}
|
|
37
|
+
tr {
|
|
38
|
+
background: none;
|
|
39
|
+
}
|
|
33
40
|
td {
|
|
34
|
-
border: 0;
|
|
41
|
+
border: 0 !important;
|
|
35
42
|
}
|
|
36
43
|
a {
|
|
37
44
|
color: inherit;
|
|
@@ -39,9 +46,11 @@
|
|
|
39
46
|
}
|
|
40
47
|
.container {
|
|
41
48
|
@include border-radius(0 0 $radius 0);
|
|
49
|
+
display: inline-block;
|
|
42
50
|
padding: $sp;
|
|
43
51
|
}
|
|
44
52
|
.gutter {
|
|
53
|
+
@include border-radius($radius 0 0 $radius !important);
|
|
45
54
|
background: #777;
|
|
46
55
|
color: #fff;
|
|
47
56
|
padding: $sp 6px;
|
|
@@ -50,6 +59,7 @@
|
|
|
50
59
|
width: 35px;
|
|
51
60
|
}
|
|
52
61
|
.code {
|
|
62
|
+
overflow: auto;
|
|
53
63
|
padding: 0;
|
|
54
64
|
width: 100%;
|
|
55
65
|
}
|
|
@@ -1,63 +1,136 @@
|
|
|
1
1
|
@if $moovui-init {
|
|
2
2
|
table {
|
|
3
|
-
@include radius;
|
|
4
|
-
background:
|
|
5
|
-
width: 100%;
|
|
6
|
-
margin: 0 0 $sp;
|
|
3
|
+
@include border-radius(5px);
|
|
4
|
+
background: #fff;
|
|
7
5
|
border-collapse: separate;
|
|
8
6
|
border-spacing: 0;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
margin: 0 0 $sp2;
|
|
8
|
+
width: 100%;
|
|
9
|
+
thead {
|
|
10
|
+
color: #fff;
|
|
11
|
+
font-size: 11px;
|
|
12
|
+
letter-spacing: 0.5px;
|
|
13
|
+
text-transform: uppercase;
|
|
14
|
+
white-space: nowrap;
|
|
13
15
|
th, td {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
background: #b0b8c0;
|
|
17
|
+
font-weight: normal;
|
|
18
|
+
padding: 5px $sp;
|
|
19
|
+
text-align: left;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
th, tbody:first-child tr:first-child td {
|
|
23
|
+
&:first-child {
|
|
24
|
+
border-top-left-radius: 5px;
|
|
25
|
+
}
|
|
26
|
+
&:last-child {
|
|
27
|
+
border-top-right-radius: 5px;
|
|
17
28
|
}
|
|
18
29
|
}
|
|
19
|
-
}
|
|
20
30
|
|
|
21
|
-
td
|
|
22
|
-
|
|
23
|
-
border: 1px solid $lightgray;
|
|
24
|
-
border-top: 0;
|
|
25
|
-
&:not(:first-child) {
|
|
26
|
-
border-left: 0;
|
|
31
|
+
tbody:first-child tr:first-child td {
|
|
32
|
+
border-top: 1px solid $lightgray;
|
|
27
33
|
}
|
|
28
|
-
|
|
29
|
-
|
|
34
|
+
|
|
35
|
+
tr {
|
|
36
|
+
background: $palegray;
|
|
37
|
+
&:last-child td {
|
|
38
|
+
border-bottom: 1px solid $lightgray;
|
|
39
|
+
&:first-child {
|
|
40
|
+
border-bottom-left-radius: 5px;
|
|
41
|
+
}
|
|
42
|
+
&:last-child {
|
|
43
|
+
border-bottom-right-radius: 5px;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
30
46
|
}
|
|
31
|
-
}
|
|
32
47
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
thead {
|
|
38
|
-
color: rgba(#000, 0.5);
|
|
39
|
-
font-size: 11px;
|
|
40
|
-
font-weight: bold;
|
|
41
|
-
text-align: right;
|
|
42
|
-
text-transform: uppercase;
|
|
43
|
-
text-align: left;
|
|
44
|
-
white-space: nowrap;
|
|
45
|
-
th, td {
|
|
46
|
-
border-top: 1px solid $lightgray;
|
|
48
|
+
tr.#{$moovui-prefix}disabled td, tr.#{$moovui-prefix}idle td {
|
|
49
|
+
border-color: #a0a4a6;
|
|
47
50
|
}
|
|
48
|
-
|
|
49
|
-
|
|
51
|
+
|
|
52
|
+
td.#{$moovui-prefix}disabled, td.#{$moovui-prefix}idle {
|
|
53
|
+
border-color: #a0a4a6;
|
|
50
54
|
}
|
|
51
|
-
|
|
52
|
-
|
|
55
|
+
|
|
56
|
+
td {
|
|
57
|
+
border-bottom: 1px solid $lightgray;
|
|
58
|
+
padding: 8px $sp;
|
|
59
|
+
&:first-child {
|
|
60
|
+
border-left: 1px solid $lightgray;
|
|
61
|
+
padding-left: $sp - 1px;
|
|
62
|
+
}
|
|
63
|
+
&:last-child {
|
|
64
|
+
border-right: 1px solid $lightgray;
|
|
65
|
+
padding-right : $sp - 1px;
|
|
66
|
+
}
|
|
53
67
|
}
|
|
54
68
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
table.#{$moovui-prefix}alt {
|
|
72
|
+
@include border-radius(0);
|
|
73
|
+
border: 0;
|
|
74
|
+
thead {
|
|
75
|
+
color: #666;
|
|
76
|
+
font-size: 12px;
|
|
77
|
+
text-transform: none;
|
|
78
|
+
th, td {
|
|
79
|
+
@include background(linear-gradient(#fbfbfb, #eaeaea));
|
|
80
|
+
background-color: #f2f2f2;
|
|
81
|
+
border-top: 1px solid $lightgray;
|
|
82
|
+
border-bottom: 1px solid #b8b8b8;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
tr {
|
|
87
|
+
background: #fafafa;
|
|
88
|
+
&:nth-child(even) {
|
|
89
|
+
background: #fff;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
thead + tbody tr:first-child td {
|
|
94
|
+
@include box-shadow(rgba(#000, 0.1) 0 2px 1px -1px inset);
|
|
58
95
|
}
|
|
59
|
-
|
|
60
|
-
|
|
96
|
+
thead + tbody tr:first-child {
|
|
97
|
+
&.#{$moovui-prefix}disabled td, td.#{$moovui-prefix}disabled,
|
|
98
|
+
&.#{$moovui-prefix}idle td, td.#{$moovui-prefix}idle {
|
|
99
|
+
@include box-shadow(rgba(#000, 0.2) 0 2px 1px -1px inset);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
td {
|
|
104
|
+
border-left: 0;
|
|
105
|
+
border-right: 0;
|
|
106
|
+
padding: 12px $sp;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
th, tbody:first-child tr:first-child td {
|
|
110
|
+
border-radius: 0;
|
|
111
|
+
}
|
|
112
|
+
tr:last-child td {
|
|
113
|
+
border-radius: 0;
|
|
114
|
+
border-bottom-width: 1px;
|
|
61
115
|
}
|
|
62
116
|
}
|
|
63
117
|
}
|
|
118
|
+
|
|
119
|
+
table.#{$moovui-prefix}no-borders {
|
|
120
|
+
background: none;
|
|
121
|
+
border: 0;
|
|
122
|
+
margin: 0;
|
|
123
|
+
thead {
|
|
124
|
+
color: #666;
|
|
125
|
+
th, td {
|
|
126
|
+
background: none;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
tr {
|
|
130
|
+
background: none;
|
|
131
|
+
}
|
|
132
|
+
th, tr td {
|
|
133
|
+
border: 0;
|
|
134
|
+
padding: 0;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
@if $moovui-init {
|
|
2
|
+
[data-section="tabs"] {
|
|
3
|
+
position: relative;
|
|
4
|
+
margin-bottom: $sp2;
|
|
5
|
+
> section {
|
|
6
|
+
padding-top: 29px;
|
|
7
|
+
&.active > [data-section-title] {
|
|
8
|
+
background: #fff;
|
|
9
|
+
border-bottom: 0;
|
|
10
|
+
}
|
|
11
|
+
&:not(.active) {
|
|
12
|
+
padding: 0 !important;
|
|
13
|
+
> [data-section-content] {
|
|
14
|
+
opacity: 0;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
padding: 0;
|
|
17
|
+
position: absolute;
|
|
18
|
+
max-width: 100%;
|
|
19
|
+
height: 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
> [data-section-title] {
|
|
23
|
+
@include border-radius(3px 3px 0 0);
|
|
24
|
+
background: #eee;
|
|
25
|
+
border: 1px solid #ccc;
|
|
26
|
+
color: inherit;
|
|
27
|
+
font-size: 12px;
|
|
28
|
+
font-weight: bold;
|
|
29
|
+
margin-bottom: 0;
|
|
30
|
+
padding: 3px ($sp2 - 1px) 1px;
|
|
31
|
+
position: absolute;
|
|
32
|
+
top: 0;
|
|
33
|
+
left: 0;
|
|
34
|
+
width: auto;
|
|
35
|
+
a {
|
|
36
|
+
width: 100%;
|
|
37
|
+
display: inline-block;
|
|
38
|
+
white-space: nowrap;
|
|
39
|
+
}
|
|
40
|
+
&:not([style]) {
|
|
41
|
+
visibility: hidden;
|
|
42
|
+
}
|
|
43
|
+
&:focus {
|
|
44
|
+
z-index: 1;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
> [data-section-content] {
|
|
48
|
+
@include border-radius(0 0 3px 3px);
|
|
49
|
+
@include clearfix;
|
|
50
|
+
background: #fff;
|
|
51
|
+
border: 1px solid #ccc;
|
|
52
|
+
padding: $sp4 - 1px;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|