fortitude-sass 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/assets/stylesheets/fortitude.scss +1 -0
- data/app/assets/stylesheets/fortitude/blocks/_tooltip.scss +188 -0
- data/bower.json +1 -1
- data/lib/fortitude-sass/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf2f6787ffbb440494bbefd651419a115866d159
|
4
|
+
data.tar.gz: 5c08769a0bd0eaaf0c50b19d8e95e7fd2a49edf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 599b08d94175459fcff21a426445243185c9b971c2722789f6620cc5ef4a17b091544ae40664f03cd99a8b95fccb7d70486930195dc3be9a5e4b8842a1e38c04
|
7
|
+
data.tar.gz: f524e31b12db6a431cadd1f2030238c9ded300a96d85d1c31f6bd0ca6fe1a9a533d94a4d57088d7bbbd562780153b4dea49b135cc3766fd1ebc73437e0d9ce99
|
data/Gemfile.lock
CHANGED
@@ -27,6 +27,7 @@
|
|
27
27
|
@import "fortitude/blocks/tabs-navigation";
|
28
28
|
@import "fortitude/blocks/tabs";
|
29
29
|
@import "fortitude/blocks/text";
|
30
|
+
@import "fortitude/blocks/tooltip";
|
30
31
|
@import "fortitude/blocks/ui-list";
|
31
32
|
@import "fortitude/trumps/responsive-border";
|
32
33
|
@import "fortitude/trumps/responsive-column";
|
@@ -0,0 +1,188 @@
|
|
1
|
+
/*------------------------------------*\
|
2
|
+
#TOOLTIP
|
3
|
+
\*------------------------------------*/
|
4
|
+
|
5
|
+
$fortitude-tooltip-width: 18rem;
|
6
|
+
$fortitude-tooltip-border-radius: 0.2rem;
|
7
|
+
$fortitude-tooltip-arrow-size: 0.6rem;
|
8
|
+
$fortitude-tooltip-color: #ffffff;
|
9
|
+
$fortitude-tooltip-background-color: rgba(30,30,30, 0.9);
|
10
|
+
$fortitude-tooltip-padding: 0.8rem;
|
11
|
+
$fortitude-tooltip-font-size: 1rem;
|
12
|
+
$fortitude-tooltip-line-height: 1.4rem;
|
13
|
+
$fortitude-tooltip-padding-vertical: $fortitude-tooltip-padding;
|
14
|
+
$fortitude-tooltip-padding-horizontal: $fortitude-tooltip-padding;
|
15
|
+
$fortitude-tooltip-min-height: $fortitude-tooltip-line-height + ($fortitude-tooltip-padding * 2);
|
16
|
+
|
17
|
+
@mixin fortitude-tooltip {
|
18
|
+
position: relative;
|
19
|
+
cursor: pointer;
|
20
|
+
|
21
|
+
&::before,
|
22
|
+
&::after {
|
23
|
+
position: absolute;
|
24
|
+
visibility: hidden;
|
25
|
+
opacity: 0;
|
26
|
+
transform: translate3d(0, 0, 0);
|
27
|
+
transition:
|
28
|
+
opacity 0.15s ease-in-out,
|
29
|
+
visibility 0.15s ease-in-out,
|
30
|
+
transform 0.15s cubic-bezier(0.71, 1.7, 0.77, 1.24);
|
31
|
+
pointer-events: none;
|
32
|
+
}
|
33
|
+
|
34
|
+
&:hover::before,
|
35
|
+
&:hover::after {
|
36
|
+
visibility: visible;
|
37
|
+
opacity: 1;
|
38
|
+
}
|
39
|
+
|
40
|
+
&::before {
|
41
|
+
z-index: 1001;
|
42
|
+
border: $fortitude-tooltip-arrow-size solid transparent;
|
43
|
+
background: transparent;
|
44
|
+
content: "";
|
45
|
+
}
|
46
|
+
|
47
|
+
&::after {
|
48
|
+
z-index: 1000;
|
49
|
+
padding: $fortitude-tooltip-padding-vertical $fortitude-tooltip-padding-horizontal;
|
50
|
+
width: $fortitude-tooltip-width;
|
51
|
+
background-color: $fortitude-tooltip-background-color;
|
52
|
+
border-radius: $fortitude-tooltip-border-radius;
|
53
|
+
color: $fortitude-tooltip-color;
|
54
|
+
content: attr(data-tooltip);
|
55
|
+
font-size: $fortitude-tooltip-font-size;
|
56
|
+
line-height: $fortitude-tooltip-line-height;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
@mixin fortitude-tooltip--top {
|
61
|
+
&::before,
|
62
|
+
&::after {
|
63
|
+
bottom: 100%;
|
64
|
+
left: 50%;
|
65
|
+
}
|
66
|
+
|
67
|
+
&::before {
|
68
|
+
margin-left: -$fortitude-tooltip-arrow-size;
|
69
|
+
margin-bottom: -($fortitude-tooltip-arrow-size * 2);
|
70
|
+
border-top-color: $fortitude-tooltip-background-color;
|
71
|
+
}
|
72
|
+
|
73
|
+
&::after {
|
74
|
+
margin-left: -($fortitude-tooltip-width / 2);
|
75
|
+
}
|
76
|
+
|
77
|
+
&:hover::before,
|
78
|
+
&:hover::after,
|
79
|
+
&:focus::before,
|
80
|
+
&:focus::after {
|
81
|
+
transform: translateY(-(($fortitude-base-spacing-unit / 4) + $fortitude-tooltip-arrow-size));
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
@mixin fortitude-tooltip--right {
|
86
|
+
&::before,
|
87
|
+
&::after {
|
88
|
+
bottom: 50%;
|
89
|
+
left: 100%;
|
90
|
+
}
|
91
|
+
|
92
|
+
&::before {
|
93
|
+
top: $fortitude-tooltip-padding-vertical - (($fortitude-tooltip-arrow-size / 2) + ($fortitude-tooltip-padding-vertical / 2));
|
94
|
+
margin-bottom: 0;
|
95
|
+
margin-left: -($fortitude-tooltip-arrow-size * 2);
|
96
|
+
border-top-color: transparent;
|
97
|
+
border-right-color: $fortitude-tooltip-background-color;
|
98
|
+
}
|
99
|
+
|
100
|
+
&::after {
|
101
|
+
margin-left: 0;
|
102
|
+
margin-bottom: -($fortitude-tooltip-padding-vertical + 0.7rem);
|
103
|
+
}
|
104
|
+
|
105
|
+
&:hover::before,
|
106
|
+
&:hover::after,
|
107
|
+
&:focus::before,
|
108
|
+
&:focus::after {
|
109
|
+
transform: translateX((($fortitude-base-spacing-unit / 4) + $fortitude-tooltip-arrow-size));
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
@mixin fortitude-tooltip--bottom {
|
114
|
+
&::before,
|
115
|
+
&::after {
|
116
|
+
top: 100%;
|
117
|
+
bottom: auto;
|
118
|
+
left: 50%;
|
119
|
+
}
|
120
|
+
|
121
|
+
&::before {
|
122
|
+
margin-top: -($fortitude-tooltip-arrow-size * 2);
|
123
|
+
margin-bottom: 0;
|
124
|
+
border-top-color: transparent;
|
125
|
+
border-bottom-color: $fortitude-tooltip-background-color;
|
126
|
+
}
|
127
|
+
|
128
|
+
&::after {
|
129
|
+
margin-left: -($fortitude-tooltip-width / 2);
|
130
|
+
}
|
131
|
+
|
132
|
+
&:hover::before,
|
133
|
+
&:hover::after,
|
134
|
+
&:focus::before,
|
135
|
+
&:focus::after {
|
136
|
+
transform: translateY((($fortitude-base-spacing-unit / 4) + $fortitude-tooltip-arrow-size));
|
137
|
+
}
|
138
|
+
}
|
139
|
+
|
140
|
+
@mixin fortitude-tooltip--left {
|
141
|
+
&::before,
|
142
|
+
&::after {
|
143
|
+
right: 100%;
|
144
|
+
bottom: 50%;
|
145
|
+
left: auto;
|
146
|
+
}
|
147
|
+
|
148
|
+
&::before {
|
149
|
+
top: $fortitude-tooltip-padding-vertical - (($fortitude-tooltip-arrow-size / 2) + ($fortitude-tooltip-padding-vertical / 2));
|
150
|
+
margin-left: 0;
|
151
|
+
margin-right: -($fortitude-tooltip-arrow-size * 2);
|
152
|
+
margin-bottom: 0;
|
153
|
+
border-top-color: transparent;
|
154
|
+
border-left-color: $fortitude-tooltip-background-color;
|
155
|
+
}
|
156
|
+
|
157
|
+
&::after {
|
158
|
+
margin-left: 0;
|
159
|
+
margin-bottom: -($fortitude-tooltip-padding-vertical + 0.7rem);
|
160
|
+
}
|
161
|
+
|
162
|
+
&:hover::before,
|
163
|
+
&:hover::after,
|
164
|
+
&:focus::before,
|
165
|
+
&:focus::after {
|
166
|
+
transform: translateX(-(($fortitude-base-spacing-unit / 4) + $fortitude-tooltip-arrow-size));
|
167
|
+
}
|
168
|
+
}
|
169
|
+
|
170
|
+
.#{$fortitude-namespace}tooltip {
|
171
|
+
@include fortitude-tooltip;
|
172
|
+
}
|
173
|
+
|
174
|
+
.#{$fortitude-namespace}tooltip--top {
|
175
|
+
@include fortitude-tooltip--top;
|
176
|
+
}
|
177
|
+
|
178
|
+
.#{$fortitude-namespace}tooltip--right {
|
179
|
+
@include fortitude-tooltip--right;
|
180
|
+
}
|
181
|
+
|
182
|
+
.#{$fortitude-namespace}tooltip--bottom {
|
183
|
+
@include fortitude-tooltip--bottom;
|
184
|
+
}
|
185
|
+
|
186
|
+
.#{$fortitude-namespace}tooltip--left {
|
187
|
+
@include fortitude-tooltip--left;
|
188
|
+
}
|
data/bower.json
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fortitude-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Reisman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
@@ -130,6 +130,7 @@ files:
|
|
130
130
|
- app/assets/stylesheets/fortitude/blocks/_tabs-navigation.scss
|
131
131
|
- app/assets/stylesheets/fortitude/blocks/_tabs.scss
|
132
132
|
- app/assets/stylesheets/fortitude/blocks/_text.scss
|
133
|
+
- app/assets/stylesheets/fortitude/blocks/_tooltip.scss
|
133
134
|
- app/assets/stylesheets/fortitude/blocks/_ui-list.scss
|
134
135
|
- app/assets/stylesheets/fortitude/generic/_box-sizing.scss
|
135
136
|
- app/assets/stylesheets/fortitude/generic/_clearfix.scss
|