fortitude-sass 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/Gemfile.lock +1 -1
- data/app/assets/stylesheets/fortitude/api/blocks/_badge.scss +97 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_bare-list.scss +11 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_block-list.scss +41 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_box.scss +23 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_button.scss +163 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_container.scss +38 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_flag.scss +198 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_flashbar.scss +17 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_fluid-container.scss +8 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_inline-list.scss +11 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_input.scss +344 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_layout.scss +118 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_list-navigation.scss +22 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_media.scss +86 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_modal.scss +1 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_navigationbar.scss +1 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_shade.scss +18 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_table.scss +1 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_tabs-navigation.scss +45 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_tabs.scss +11 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_text.scss +1 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_tooltip.scss +149 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_ui-list.scss +50 -0
- data/app/assets/stylesheets/fortitude/api/blocks/_wings.scss +1 -0
- data/bower.json +1 -1
- data/lib/fortitude-sass/version.rb +1 -1
- metadata +25 -1
@@ -0,0 +1,149 @@
|
|
1
|
+
/*------------------------------------*\
|
2
|
+
#TOOLTIP
|
3
|
+
\*------------------------------------*/
|
4
|
+
|
5
|
+
$fortitude-tooltip-width: 18rem !default;
|
6
|
+
$fortitude-tooltip-border-radius: 0.2rem !default;
|
7
|
+
$fortitude-tooltip-arrow-size: 0.6rem !default;
|
8
|
+
$fortitude-tooltip-color: #ffffff !default;
|
9
|
+
$fortitude-tooltip-background-color: rgba(30, 30, 30, 0.9) !default;
|
10
|
+
$fortitude-tooltip-padding: 0.8rem !default;
|
11
|
+
$fortitude-tooltip-font-size: 1rem !default;
|
12
|
+
$fortitude-tooltip-line-height: 1.4rem !default;
|
13
|
+
$fortitude-tooltip-padding-vertical: $fortitude-tooltip-padding !default;
|
14
|
+
$fortitude-tooltip-padding-horizontal: $fortitude-tooltip-padding !default;
|
15
|
+
$fortitude-tooltip-min-height: $fortitude-tooltip-line-height + $fortitude-tooltip-padding * 2 !default;
|
16
|
+
|
17
|
+
@mixin fortitude-tooltip {
|
18
|
+
position: relative;
|
19
|
+
cursor: pointer;
|
20
|
+
&::before,
|
21
|
+
&::after {
|
22
|
+
position: absolute;
|
23
|
+
visibility: hidden;
|
24
|
+
opacity: 0;
|
25
|
+
transform: translate3d(0, 0, 0);
|
26
|
+
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
|
+
pointer-events: none;
|
28
|
+
}
|
29
|
+
&:hover::before,
|
30
|
+
&:hover::after {
|
31
|
+
visibility: visible;
|
32
|
+
opacity: 1;
|
33
|
+
}
|
34
|
+
&::before {
|
35
|
+
z-index: 1001;
|
36
|
+
border: $fortitude-tooltip-arrow-size solid transparent;
|
37
|
+
background: transparent;
|
38
|
+
content: "";
|
39
|
+
}
|
40
|
+
&::after {
|
41
|
+
z-index: 1000;
|
42
|
+
padding: $fortitude-tooltip-padding-vertical $fortitude-tooltip-padding-horizontal;
|
43
|
+
width: $fortitude-tooltip-width;
|
44
|
+
background-color: $fortitude-tooltip-background-color;
|
45
|
+
border-radius: $fortitude-tooltip-border-radius;
|
46
|
+
color: $fortitude-tooltip-color;
|
47
|
+
content: attr(data-tooltip);
|
48
|
+
font-size: $fortitude-tooltip-font-size;
|
49
|
+
line-height: $fortitude-tooltip-line-height;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
@mixin fortitude-tooltip--top {
|
54
|
+
&::before,
|
55
|
+
&::after {
|
56
|
+
bottom: 100%;
|
57
|
+
left: 50%;
|
58
|
+
}
|
59
|
+
&::before {
|
60
|
+
margin-left: -$fortitude-tooltip-arrow-size;
|
61
|
+
margin-bottom: -($fortitude-tooltip-arrow-size * 2);
|
62
|
+
border-top-color: $fortitude-tooltip-background-color;
|
63
|
+
}
|
64
|
+
&::after {
|
65
|
+
margin-left: -($fortitude-tooltip-width / 2);
|
66
|
+
}
|
67
|
+
&:hover::before,
|
68
|
+
&:hover::after,
|
69
|
+
&:focus::before,
|
70
|
+
&:focus::after {
|
71
|
+
transform: translateY(-($fortitude-base-spacing-unit / 4 + $fortitude-tooltip-arrow-size));
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
@mixin fortitude-tooltip--right {
|
76
|
+
&::before,
|
77
|
+
&::after {
|
78
|
+
bottom: 50%;
|
79
|
+
left: 100%;
|
80
|
+
}
|
81
|
+
&::before {
|
82
|
+
top: $fortitude-tooltip-padding-vertical - ($fortitude-tooltip-arrow-size / 2 + $fortitude-tooltip-padding-vertical / 2);
|
83
|
+
margin-bottom: 0;
|
84
|
+
margin-left: -($fortitude-tooltip-arrow-size * 2);
|
85
|
+
border-top-color: transparent;
|
86
|
+
border-right-color: $fortitude-tooltip-background-color;
|
87
|
+
}
|
88
|
+
&::after {
|
89
|
+
margin-left: 0;
|
90
|
+
margin-bottom: -($fortitude-tooltip-padding-vertical + 0.7rem);
|
91
|
+
}
|
92
|
+
&:hover::before,
|
93
|
+
&:hover::after,
|
94
|
+
&:focus::before,
|
95
|
+
&:focus::after {
|
96
|
+
transform: translateX($fortitude-base-spacing-unit / 4 + $fortitude-tooltip-arrow-size);
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
@mixin fortitude-tooltip--bottom {
|
101
|
+
&::before,
|
102
|
+
&::after {
|
103
|
+
top: 100%;
|
104
|
+
bottom: auto;
|
105
|
+
left: 50%;
|
106
|
+
}
|
107
|
+
&::before {
|
108
|
+
margin-top: -($fortitude-tooltip-arrow-size * 2);
|
109
|
+
margin-bottom: 0;
|
110
|
+
border-top-color: transparent;
|
111
|
+
border-bottom-color: $fortitude-tooltip-background-color;
|
112
|
+
}
|
113
|
+
&::after {
|
114
|
+
margin-left: -($fortitude-tooltip-width / 2);
|
115
|
+
}
|
116
|
+
&:hover::before,
|
117
|
+
&:hover::after,
|
118
|
+
&:focus::before,
|
119
|
+
&:focus::after {
|
120
|
+
transform: translateY($fortitude-base-spacing-unit / 4 + $fortitude-tooltip-arrow-size);
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
@mixin fortitude-tooltip--left {
|
125
|
+
&::before,
|
126
|
+
&::after {
|
127
|
+
right: 100%;
|
128
|
+
bottom: 50%;
|
129
|
+
left: auto;
|
130
|
+
}
|
131
|
+
&::before {
|
132
|
+
top: $fortitude-tooltip-padding-vertical - ($fortitude-tooltip-arrow-size / 2 + $fortitude-tooltip-padding-vertical / 2);
|
133
|
+
margin-left: 0;
|
134
|
+
margin-right: -($fortitude-tooltip-arrow-size * 2);
|
135
|
+
margin-bottom: 0;
|
136
|
+
border-top-color: transparent;
|
137
|
+
border-left-color: $fortitude-tooltip-background-color;
|
138
|
+
}
|
139
|
+
&::after {
|
140
|
+
margin-left: 0;
|
141
|
+
margin-bottom: -($fortitude-tooltip-padding-vertical + 0.7rem);
|
142
|
+
}
|
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
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
/*------------------------------------*\
|
2
|
+
#UI-LIST
|
3
|
+
\*------------------------------------*/
|
4
|
+
|
5
|
+
/**
|
6
|
+
* The UI list object creates blocky list items with a keyline separator out of
|
7
|
+
* a `ul` or `ol`.
|
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
|
+
|
15
|
+
$fortitude-ui-list-border-width: 0.1rem !default;
|
16
|
+
$fortitude-ui-list-border-style: solid !default;
|
17
|
+
$fortitude-ui-list-border-color: #ccc !default;
|
18
|
+
|
19
|
+
$fortitude-enable-ui-list--small: false !default;
|
20
|
+
$fortitude-enable-ui-list--large: false !default;
|
21
|
+
|
22
|
+
@mixin fortitude-ui-list {
|
23
|
+
border: 0 $fortitude-ui-list-border-style $fortitude-ui-list-border-color;
|
24
|
+
margin: 0;
|
25
|
+
padding: 0;
|
26
|
+
list-style: none;
|
27
|
+
border-top-width: $fortitude-ui-list-border-width;
|
28
|
+
}
|
29
|
+
|
30
|
+
@mixin fortitude-ui-list__item($fortitude-extension: null) {
|
31
|
+
border: 0 $fortitude-ui-list-border-style $fortitude-ui-list-border-color;
|
32
|
+
border-bottom-width: $fortitude-ui-list-border-width;
|
33
|
+
@if $fortitude-extension == small {
|
34
|
+
@include fortitude-ui-list--small__item;
|
35
|
+
}
|
36
|
+
@else if $fortitude-extension == large {
|
37
|
+
@include fortitude-ui-list--large__item;
|
38
|
+
}
|
39
|
+
@else {
|
40
|
+
padding: $fortitude-ui-list-padding;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
@mixin fortitude-ui-list--small__item {
|
45
|
+
padding: $fortitude-ui-list-padding--small;
|
46
|
+
}
|
47
|
+
|
48
|
+
@mixin fortitude-ui-list--large__item {
|
49
|
+
padding: $fortitude-ui-list-padding--large;
|
50
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
|
data/bower.json
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fortitude-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Reisman
|
@@ -100,6 +100,30 @@ files:
|
|
100
100
|
- app/assets/javascripts/fortitude/jquery/generic/wait-for-animation.js
|
101
101
|
- app/assets/javascripts/fortitude/jquery/index.js
|
102
102
|
- app/assets/stylesheets/fortitude.scss
|
103
|
+
- app/assets/stylesheets/fortitude/api/blocks/_badge.scss
|
104
|
+
- app/assets/stylesheets/fortitude/api/blocks/_bare-list.scss
|
105
|
+
- app/assets/stylesheets/fortitude/api/blocks/_block-list.scss
|
106
|
+
- app/assets/stylesheets/fortitude/api/blocks/_box.scss
|
107
|
+
- app/assets/stylesheets/fortitude/api/blocks/_button.scss
|
108
|
+
- app/assets/stylesheets/fortitude/api/blocks/_container.scss
|
109
|
+
- app/assets/stylesheets/fortitude/api/blocks/_flag.scss
|
110
|
+
- app/assets/stylesheets/fortitude/api/blocks/_flashbar.scss
|
111
|
+
- app/assets/stylesheets/fortitude/api/blocks/_fluid-container.scss
|
112
|
+
- app/assets/stylesheets/fortitude/api/blocks/_inline-list.scss
|
113
|
+
- app/assets/stylesheets/fortitude/api/blocks/_input.scss
|
114
|
+
- app/assets/stylesheets/fortitude/api/blocks/_layout.scss
|
115
|
+
- app/assets/stylesheets/fortitude/api/blocks/_list-navigation.scss
|
116
|
+
- app/assets/stylesheets/fortitude/api/blocks/_media.scss
|
117
|
+
- app/assets/stylesheets/fortitude/api/blocks/_modal.scss
|
118
|
+
- app/assets/stylesheets/fortitude/api/blocks/_navigationbar.scss
|
119
|
+
- app/assets/stylesheets/fortitude/api/blocks/_shade.scss
|
120
|
+
- app/assets/stylesheets/fortitude/api/blocks/_table.scss
|
121
|
+
- app/assets/stylesheets/fortitude/api/blocks/_tabs-navigation.scss
|
122
|
+
- app/assets/stylesheets/fortitude/api/blocks/_tabs.scss
|
123
|
+
- app/assets/stylesheets/fortitude/api/blocks/_text.scss
|
124
|
+
- app/assets/stylesheets/fortitude/api/blocks/_tooltip.scss
|
125
|
+
- app/assets/stylesheets/fortitude/api/blocks/_ui-list.scss
|
126
|
+
- app/assets/stylesheets/fortitude/api/blocks/_wings.scss
|
103
127
|
- app/assets/stylesheets/fortitude/base/_hr.scss
|
104
128
|
- app/assets/stylesheets/fortitude/base/_images.scss
|
105
129
|
- app/assets/stylesheets/fortitude/base/_lists.scss
|