fortitude-sass 0.6.1 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/app/assets/stylesheets/fortitude/api/blocks/_badge.scss +32 -54
- data/app/assets/stylesheets/fortitude/api/blocks/_bare-list.scss +1 -5
- data/app/assets/stylesheets/fortitude/api/blocks/_block-list.scss +17 -19
- data/app/assets/stylesheets/fortitude/api/blocks/_box.scss +13 -12
- data/app/assets/stylesheets/fortitude/api/blocks/_button.scss +28 -79
- data/app/assets/stylesheets/fortitude/api/blocks/_container.scss +11 -7
- data/app/assets/stylesheets/fortitude/api/blocks/_flag.scss +67 -140
- data/app/assets/stylesheets/fortitude/api/blocks/_flashbar.scss +2 -2
- data/app/assets/stylesheets/fortitude/api/blocks/_fluid-container.scss +1 -1
- data/app/assets/stylesheets/fortitude/api/blocks/_inline-list.scss +2 -2
- data/app/assets/stylesheets/fortitude/api/blocks/_input.scss +178 -160
- data/app/assets/stylesheets/fortitude/api/blocks/_layout.scss +103 -62
- data/app/assets/stylesheets/fortitude/api/blocks/_list-navigation.scss +3 -3
- data/app/assets/stylesheets/fortitude/api/blocks/_media.scss +74 -32
- data/app/assets/stylesheets/fortitude/api/blocks/_modal.scss +0 -1
- data/app/assets/stylesheets/fortitude/api/blocks/_navigationbar.scss +0 -1
- data/app/assets/stylesheets/fortitude/api/blocks/_shade.scss +1 -7
- data/app/assets/stylesheets/fortitude/api/blocks/_tabs-navigation.scss +9 -24
- data/app/assets/stylesheets/fortitude/api/blocks/_tabs.scss +8 -2
- data/app/assets/stylesheets/fortitude/api/blocks/_text.scss +0 -1
- data/app/assets/stylesheets/fortitude/api/blocks/_tooltip.scss +52 -21
- data/app/assets/stylesheets/fortitude/api/blocks/_ui-list.scss +17 -22
- data/app/assets/stylesheets/fortitude/api/blocks/_wings.scss +0 -1
- data/app/assets/stylesheets/fortitude/base/_lists.scss +2 -9
- data/app/assets/stylesheets/fortitude/blocks/_box.scss +0 -4
- data/app/assets/stylesheets/fortitude/blocks/_flag.scss +67 -59
- data/app/assets/stylesheets/fortitude/blocks/_input.scss +10 -7
- data/app/assets/stylesheets/fortitude/blocks/_layout.scss +8 -8
- data/app/assets/stylesheets/fortitude/blocks/_media.scss +36 -27
- data/app/assets/stylesheets/fortitude/blocks/_navigationbar.scss +22 -0
- data/app/assets/stylesheets/fortitude/blocks/_ui-list.scss +2 -2
- data/app/assets/stylesheets/fortitude/tools/_functions.scss +4 -0
- data/bower.json +1 -1
- data/lib/fortitude-sass/version.rb +1 -1
- metadata +2 -2
@@ -2,8 +2,14 @@
|
|
2
2
|
#TABS
|
3
3
|
\*------------------------------------*/
|
4
4
|
|
5
|
-
@mixin fortitude-tabs__target {
|
6
|
-
|
5
|
+
@mixin fortitude-tabs__target($extensions: ()) {
|
6
|
+
$is-active: fortitude-contains($extensions, active);
|
7
|
+
|
8
|
+
@if $is-active {
|
9
|
+
@include fortitude-tabs__target--is-active;
|
10
|
+
} @else {
|
11
|
+
display: none;
|
12
|
+
}
|
7
13
|
}
|
8
14
|
|
9
15
|
@mixin fortitude-tabs__target--is-active {
|
@@ -1 +0,0 @@
|
|
1
|
-
|
@@ -14,9 +14,21 @@ $fortitude-tooltip-padding-vertical: $fortitude-tooltip-padding !default;
|
|
14
14
|
$fortitude-tooltip-padding-horizontal: $fortitude-tooltip-padding !default;
|
15
15
|
$fortitude-tooltip-min-height: $fortitude-tooltip-line-height + $fortitude-tooltip-padding * 2 !default;
|
16
16
|
|
17
|
-
@mixin fortitude-tooltip {
|
17
|
+
@mixin fortitude-tooltip($extensions: ()) {
|
18
|
+
$is-top: fortitude-contains($extensions, top);
|
19
|
+
$is-right: fortitude-contains($extensions, right);
|
20
|
+
$is-bottom: fortitude-contains($extensions, bottom);
|
21
|
+
$is-left: fortitude-contains($extensions, left);
|
22
|
+
|
18
23
|
position: relative;
|
19
24
|
cursor: pointer;
|
25
|
+
|
26
|
+
&:hover::before,
|
27
|
+
&:hover::after {
|
28
|
+
visibility: visible;
|
29
|
+
opacity: 1;
|
30
|
+
}
|
31
|
+
|
20
32
|
&::before,
|
21
33
|
&::after {
|
22
34
|
position: absolute;
|
@@ -26,17 +38,14 @@ $fortitude-tooltip-min-height: $fortitude-tooltip-line-height + $fortitude-toolt
|
|
26
38
|
transition: opacity 0.15s ease-in-out, visibility 0.15s ease-in-out, transform 0.15s cubic-bezier(0.71, 1.7, 0.77, 1.24);
|
27
39
|
pointer-events: none;
|
28
40
|
}
|
29
|
-
|
30
|
-
&:hover::after {
|
31
|
-
visibility: visible;
|
32
|
-
opacity: 1;
|
33
|
-
}
|
41
|
+
|
34
42
|
&::before {
|
35
43
|
z-index: 1001;
|
36
44
|
border: $fortitude-tooltip-arrow-size solid transparent;
|
37
45
|
background: transparent;
|
38
46
|
content: "";
|
39
47
|
}
|
48
|
+
|
40
49
|
&::after {
|
41
50
|
z-index: 1000;
|
42
51
|
padding: $fortitude-tooltip-padding-vertical $fortitude-tooltip-padding-horizontal;
|
@@ -48,36 +57,57 @@ $fortitude-tooltip-min-height: $fortitude-tooltip-line-height + $fortitude-toolt
|
|
48
57
|
font-size: $fortitude-tooltip-font-size;
|
49
58
|
line-height: $fortitude-tooltip-line-height;
|
50
59
|
}
|
60
|
+
|
61
|
+
@if $is-top {
|
62
|
+
@include fortitude-tooltip--top;
|
63
|
+
} @else if $is-right {
|
64
|
+
@include fortitude-tooltip--right;
|
65
|
+
} @else if $is-bottom {
|
66
|
+
@include fortitude-tooltip--bottom;
|
67
|
+
} @else if $is-left {
|
68
|
+
@include fortitude-tooltip--left;
|
69
|
+
}
|
51
70
|
}
|
52
71
|
|
53
72
|
@mixin fortitude-tooltip--top {
|
73
|
+
&:hover::before,
|
74
|
+
&:hover::after,
|
75
|
+
&:focus::before,
|
76
|
+
&:focus::after {
|
77
|
+
transform: translateY(-($fortitude-base-spacing-unit / 4 + $fortitude-tooltip-arrow-size));
|
78
|
+
}
|
79
|
+
|
54
80
|
&::before,
|
55
81
|
&::after {
|
56
82
|
bottom: 100%;
|
57
83
|
left: 50%;
|
58
84
|
}
|
85
|
+
|
59
86
|
&::before {
|
60
87
|
margin-left: -$fortitude-tooltip-arrow-size;
|
61
88
|
margin-bottom: -($fortitude-tooltip-arrow-size * 2);
|
62
89
|
border-top-color: $fortitude-tooltip-background-color;
|
63
90
|
}
|
91
|
+
|
64
92
|
&::after {
|
65
93
|
margin-left: -($fortitude-tooltip-width / 2);
|
66
94
|
}
|
95
|
+
}
|
96
|
+
|
97
|
+
@mixin fortitude-tooltip--right {
|
67
98
|
&:hover::before,
|
68
99
|
&:hover::after,
|
69
100
|
&:focus::before,
|
70
101
|
&:focus::after {
|
71
|
-
transform:
|
102
|
+
transform: translateX($fortitude-base-spacing-unit / 4 + $fortitude-tooltip-arrow-size);
|
72
103
|
}
|
73
|
-
}
|
74
104
|
|
75
|
-
@mixin fortitude-tooltip--right {
|
76
105
|
&::before,
|
77
106
|
&::after {
|
78
107
|
bottom: 50%;
|
79
108
|
left: 100%;
|
80
109
|
}
|
110
|
+
|
81
111
|
&::before {
|
82
112
|
top: $fortitude-tooltip-padding-vertical - ($fortitude-tooltip-arrow-size / 2 + $fortitude-tooltip-padding-vertical / 2);
|
83
113
|
margin-bottom: 0;
|
@@ -85,49 +115,55 @@ $fortitude-tooltip-min-height: $fortitude-tooltip-line-height + $fortitude-toolt
|
|
85
115
|
border-top-color: transparent;
|
86
116
|
border-right-color: $fortitude-tooltip-background-color;
|
87
117
|
}
|
118
|
+
|
88
119
|
&::after {
|
89
120
|
margin-left: 0;
|
90
121
|
margin-bottom: -($fortitude-tooltip-padding-vertical + 0.7rem);
|
91
122
|
}
|
123
|
+
}
|
124
|
+
|
125
|
+
@mixin fortitude-tooltip--bottom {
|
92
126
|
&:hover::before,
|
93
127
|
&:hover::after,
|
94
128
|
&:focus::before,
|
95
129
|
&:focus::after {
|
96
|
-
transform:
|
130
|
+
transform: translateY($fortitude-base-spacing-unit / 4 + $fortitude-tooltip-arrow-size);
|
97
131
|
}
|
98
|
-
}
|
99
132
|
|
100
|
-
@mixin fortitude-tooltip--bottom {
|
101
133
|
&::before,
|
102
134
|
&::after {
|
103
135
|
top: 100%;
|
104
136
|
bottom: auto;
|
105
137
|
left: 50%;
|
106
138
|
}
|
139
|
+
|
107
140
|
&::before {
|
108
141
|
margin-top: -($fortitude-tooltip-arrow-size * 2);
|
109
142
|
margin-bottom: 0;
|
110
143
|
border-top-color: transparent;
|
111
144
|
border-bottom-color: $fortitude-tooltip-background-color;
|
112
145
|
}
|
146
|
+
|
113
147
|
&::after {
|
114
148
|
margin-left: -($fortitude-tooltip-width / 2);
|
115
149
|
}
|
150
|
+
}
|
151
|
+
|
152
|
+
@mixin fortitude-tooltip--left {
|
116
153
|
&:hover::before,
|
117
154
|
&:hover::after,
|
118
155
|
&:focus::before,
|
119
156
|
&:focus::after {
|
120
|
-
transform:
|
157
|
+
transform: translateX(-($fortitude-base-spacing-unit / 4 + $fortitude-tooltip-arrow-size));
|
121
158
|
}
|
122
|
-
}
|
123
159
|
|
124
|
-
@mixin fortitude-tooltip--left {
|
125
160
|
&::before,
|
126
161
|
&::after {
|
127
162
|
right: 100%;
|
128
163
|
bottom: 50%;
|
129
164
|
left: auto;
|
130
165
|
}
|
166
|
+
|
131
167
|
&::before {
|
132
168
|
top: $fortitude-tooltip-padding-vertical - ($fortitude-tooltip-arrow-size / 2 + $fortitude-tooltip-padding-vertical / 2);
|
133
169
|
margin-left: 0;
|
@@ -136,14 +172,9 @@ $fortitude-tooltip-min-height: $fortitude-tooltip-line-height + $fortitude-toolt
|
|
136
172
|
border-top-color: transparent;
|
137
173
|
border-left-color: $fortitude-tooltip-background-color;
|
138
174
|
}
|
175
|
+
|
139
176
|
&::after {
|
140
177
|
margin-left: 0;
|
141
178
|
margin-bottom: -($fortitude-tooltip-padding-vertical + 0.7rem);
|
142
179
|
}
|
143
|
-
&:hover::before,
|
144
|
-
&:hover::after,
|
145
|
-
&:focus::before,
|
146
|
-
&:focus::after {
|
147
|
-
transform: translateX(-($fortitude-base-spacing-unit / 4 + $fortitude-tooltip-arrow-size));
|
148
|
-
}
|
149
180
|
}
|
@@ -2,16 +2,9 @@
|
|
2
2
|
#UI-LIST
|
3
3
|
\*------------------------------------*/
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
**/
|
9
|
-
|
10
|
-
// Predefine the variables below in order to alter and enable specific features.
|
11
|
-
$fortitude-ui-list-padding: $fortitude-base-spacing-unit !default;
|
12
|
-
$fortitude-ui-list-padding--small: halve($fortitude-ui-list-padding) !default;
|
13
|
-
$fortitude-ui-list-padding--large: double($fortitude-ui-list-padding) !default;
|
14
|
-
|
5
|
+
$fortitude-ui-list-padding--default: $fortitude-base-spacing-unit !default;
|
6
|
+
$fortitude-ui-list-padding--small: halve($fortitude-ui-list-padding--default) !default;
|
7
|
+
$fortitude-ui-list-padding--large: double($fortitude-ui-list-padding--default) !default;
|
15
8
|
$fortitude-ui-list-border-width: 0.1rem !default;
|
16
9
|
$fortitude-ui-list-border-style: solid !default;
|
17
10
|
$fortitude-ui-list-border-color: #ccc !default;
|
@@ -19,7 +12,7 @@ $fortitude-ui-list-border-color: #ccc !default;
|
|
19
12
|
$fortitude-enable-ui-list--small: false !default;
|
20
13
|
$fortitude-enable-ui-list--large: false !default;
|
21
14
|
|
22
|
-
@mixin fortitude-ui-list {
|
15
|
+
@mixin fortitude-ui-list($extensions: ()) {
|
23
16
|
border: 0 $fortitude-ui-list-border-style $fortitude-ui-list-border-color;
|
24
17
|
margin: 0;
|
25
18
|
padding: 0;
|
@@ -27,24 +20,26 @@ $fortitude-enable-ui-list--large: false !default;
|
|
27
20
|
border-top-width: $fortitude-ui-list-border-width;
|
28
21
|
}
|
29
22
|
|
30
|
-
@mixin fortitude-ui-list__item($
|
23
|
+
@mixin fortitude-ui-list__item($extensions: ()) {
|
24
|
+
$is-small: fortitude-contains($extensions, small);
|
25
|
+
$is-large: fortitude-contains($extensions, large);
|
26
|
+
|
31
27
|
border: 0 $fortitude-ui-list-border-style $fortitude-ui-list-border-color;
|
32
28
|
border-bottom-width: $fortitude-ui-list-border-width;
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
@else if $
|
37
|
-
@include fortitude-ui-
|
38
|
-
}
|
39
|
-
|
40
|
-
padding: $fortitude-ui-list-padding;
|
29
|
+
|
30
|
+
@if $is-small {
|
31
|
+
@include fortitude-ui-list__item--small;
|
32
|
+
} @else if $is-large {
|
33
|
+
@include fortitude-ui-list__item--small;
|
34
|
+
} @else {
|
35
|
+
padding: $fortitude-ui-list-padding--default;
|
41
36
|
}
|
42
37
|
}
|
43
38
|
|
44
|
-
@mixin fortitude-ui-
|
39
|
+
@mixin fortitude-ui-list__item--small {
|
45
40
|
padding: $fortitude-ui-list-padding--small;
|
46
41
|
}
|
47
42
|
|
48
|
-
@mixin fortitude-ui-
|
43
|
+
@mixin fortitude-ui-list__item--large {
|
49
44
|
padding: $fortitude-ui-list-padding--large;
|
50
45
|
}
|
@@ -1 +0,0 @@
|
|
1
|
-
|
@@ -2,13 +2,6 @@
|
|
2
2
|
#LISTS
|
3
3
|
\*------------------------------------*/
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
**/
|
8
|
-
li {
|
9
|
-
> ul,
|
10
|
-
> ol {
|
11
|
-
margin-bottom: 0;
|
12
|
-
margin-left: $fortitude-base-spacing-unit;
|
13
|
-
}
|
5
|
+
ul, ol {
|
6
|
+
margin-left: $fortitude-base-spacing-unit;
|
14
7
|
}
|
@@ -13,104 +13,112 @@
|
|
13
13
|
@include fortitude-flag__object;
|
14
14
|
}
|
15
15
|
|
16
|
+
.#{$fortitude-namespace}flag__object > img,
|
17
|
+
.#{$fortitude-namespace}flag__object > video {
|
18
|
+
@include fortitude-flag__object__content;
|
19
|
+
}
|
20
|
+
|
16
21
|
.#{$fortitude-namespace}flag__body {
|
17
22
|
@include fortitude-flag__body;
|
18
23
|
}
|
19
24
|
|
20
|
-
@if $fortitude-enable-flag--
|
25
|
+
@if $fortitude-enable-flag--top == true {
|
21
26
|
/**
|
22
|
-
*
|
27
|
+
* Vertically top aligned flag objects.
|
23
28
|
**/
|
24
|
-
.#{$fortitude-namespace}flag--
|
25
|
-
|
26
|
-
@include fortitude-
|
29
|
+
.#{$fortitude-namespace}flag--top {
|
30
|
+
.#{$fortitude-namespace}flag__object {
|
31
|
+
@include fortitude-flag__object--top;
|
27
32
|
}
|
28
|
-
|
29
|
-
|
30
|
-
* Small reversed flags.
|
31
|
-
**/
|
32
|
-
&.#{$fortitude-namespace}flag--rev {
|
33
|
-
> .#{$fortitude-namespace}flag__object {
|
34
|
-
@include fortitude-flag--small--rev__object;
|
35
|
-
}
|
36
|
-
}
|
33
|
+
.#{$fortitude-namespace}flag__body {
|
34
|
+
@include fortitude-flag__body--top;
|
37
35
|
}
|
38
36
|
}
|
39
37
|
}
|
40
38
|
|
41
|
-
@if $fortitude-enable-flag--
|
39
|
+
@if $fortitude-enable-flag--bottom == true {
|
42
40
|
/**
|
43
|
-
*
|
41
|
+
* Vertically bottom aligned flag objects.
|
44
42
|
**/
|
45
|
-
.#{$fortitude-namespace}flag--
|
46
|
-
|
47
|
-
@include fortitude-
|
43
|
+
.#{$fortitude-namespace}flag--bottom {
|
44
|
+
.#{$fortitude-namespace}flag__object {
|
45
|
+
@include fortitude-flag__object--bottom;
|
48
46
|
}
|
49
|
-
|
50
|
-
|
51
|
-
* Large reversed flags.
|
52
|
-
**/
|
53
|
-
&.#{$fortitude-namespace}flag--rev {
|
54
|
-
> .#{$fortitude-namespace}flag__object {
|
55
|
-
@include fortitude-flag--large--rev__object;
|
56
|
-
}
|
57
|
-
}
|
47
|
+
.#{$fortitude-namespace}flag__body {
|
48
|
+
@include fortitude-flag__body--bottom;
|
58
49
|
}
|
59
50
|
}
|
60
51
|
}
|
61
52
|
|
62
|
-
@if $fortitude-enable-flag--
|
53
|
+
@if $fortitude-enable-flag--flush == true {
|
63
54
|
/**
|
64
|
-
*
|
65
|
-
* to the left.
|
55
|
+
* Flush flag objects have no space between the image- and text-content.
|
66
56
|
**/
|
67
|
-
.#{$fortitude-namespace}flag--
|
68
|
-
@include fortitude-flag--rev;
|
57
|
+
.#{$fortitude-namespace}flag--flush {
|
69
58
|
> .#{$fortitude-namespace}flag__object {
|
70
|
-
@include fortitude-
|
71
|
-
}
|
72
|
-
> .#{$fortitude-namespace}flag__body {
|
73
|
-
@include fortitude-flag--rev__body;
|
59
|
+
@include fortitude-flag__object--flush;
|
74
60
|
}
|
75
61
|
}
|
76
62
|
}
|
77
63
|
|
78
|
-
@if $fortitude-enable-flag--
|
64
|
+
@if $fortitude-enable-flag--small == true {
|
79
65
|
/**
|
80
|
-
*
|
66
|
+
* Small flags.
|
81
67
|
**/
|
82
|
-
.#{$fortitude-namespace}flag--
|
68
|
+
.#{$fortitude-namespace}flag--small {
|
83
69
|
> .#{$fortitude-namespace}flag__object {
|
84
|
-
@include fortitude-
|
70
|
+
@include fortitude-flag__object--small;
|
85
71
|
}
|
86
72
|
}
|
87
73
|
}
|
88
74
|
|
89
|
-
@if $fortitude-enable-flag--
|
75
|
+
@if $fortitude-enable-flag--large == true {
|
90
76
|
/**
|
91
|
-
*
|
77
|
+
* Large flags.
|
92
78
|
**/
|
93
|
-
.#{$fortitude-namespace}flag--
|
94
|
-
.#{$fortitude-namespace}flag__object {
|
95
|
-
@include fortitude-
|
96
|
-
}
|
97
|
-
.#{$fortitude-namespace}flag__body {
|
98
|
-
@include fortitude-flag--top__body;
|
79
|
+
.#{$fortitude-namespace}flag--large {
|
80
|
+
> .#{$fortitude-namespace}flag__object {
|
81
|
+
@include fortitude-flag__object--large;
|
99
82
|
}
|
100
83
|
}
|
101
84
|
}
|
102
85
|
|
103
|
-
@if $fortitude-enable-flag--
|
86
|
+
@if $fortitude-enable-flag--rev == true {
|
104
87
|
/**
|
105
|
-
*
|
88
|
+
* Reversed flag objects have their image-content to the right, and text-content
|
89
|
+
* to the left.
|
106
90
|
**/
|
107
|
-
.#{$fortitude-namespace}flag--
|
108
|
-
|
109
|
-
|
91
|
+
.#{$fortitude-namespace}flag--rev {
|
92
|
+
@include fortitude-flag--rev;
|
93
|
+
> .#{$fortitude-namespace}flag__object {
|
94
|
+
@include fortitude-flag__object--rev;
|
110
95
|
}
|
111
|
-
.#{$fortitude-namespace}flag__body {
|
112
|
-
@include fortitude-
|
96
|
+
> .#{$fortitude-namespace}flag__body {
|
97
|
+
@include fortitude-flag__body--rev;
|
113
98
|
}
|
99
|
+
|
100
|
+
@if $fortitude-enable-flag--small == true {
|
101
|
+
/**
|
102
|
+
* Reversed Small flags.
|
103
|
+
**/
|
104
|
+
&.#{$fortitude-namespace}flag--small {
|
105
|
+
> .#{$fortitude-namespace}flag__object {
|
106
|
+
@include fortitude-flag__object--rev--small;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
@if $fortitude-enable-flag--large == true {
|
112
|
+
/**
|
113
|
+
* Large reversed flags.
|
114
|
+
**/
|
115
|
+
&.#{$fortitude-namespace}flag--large {
|
116
|
+
> .#{$fortitude-namespace}flag__object {
|
117
|
+
@include fortitude-flag__object--rev--large;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
114
122
|
}
|
115
123
|
}
|
116
124
|
|
@@ -118,15 +126,15 @@
|
|
118
126
|
.#{$fortitude-namespace}flag--responsive {
|
119
127
|
@include fortitude-flag--responsive {
|
120
128
|
> .#{$fortitude-namespace}flag__object {
|
121
|
-
@include fortitude-
|
129
|
+
@include fortitude-flag__object--responsive;
|
122
130
|
}
|
123
131
|
> .#{$fortitude-namespace}flag__body {
|
124
|
-
@include fortitude-
|
132
|
+
@include fortitude-flag__body--responsive;
|
125
133
|
}
|
126
134
|
@if $fortitude-enable-flag--small == true {
|
127
135
|
&.#{$fortitude-namespace}flag--small {
|
128
136
|
> .#{$fortitude-namespace}flag__object {
|
129
|
-
@include fortitude-
|
137
|
+
@include fortitude-flag__object--responsive--small;
|
130
138
|
}
|
131
139
|
}
|
132
140
|
}
|