rpure-sass 0.1.1
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 +7 -0
- data/.gitignore +17 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/LICENSE +21 -0
- data/README.md +18 -0
- data/Rakefile +6 -0
- data/_config.yml +1 -0
- data/assets/fonts/DroidSans-Bold.ttf +0 -0
- data/assets/fonts/DroidSans.ttf +0 -0
- data/assets/javascripts/rpure/modal.js +258 -0
- data/assets/javascripts/rpure.js +1 -0
- data/assets/stylesheets/rpure/_base.scss +204 -0
- data/assets/stylesheets/rpure/_buttons.scss +188 -0
- data/assets/stylesheets/rpure/_forms.scss +286 -0
- data/assets/stylesheets/rpure/_grids-responsive.scss +603 -0
- data/assets/stylesheets/rpure/_grids.scss +190 -0
- data/assets/stylesheets/rpure/_menus.scss +176 -0
- data/assets/stylesheets/rpure/_modals.scss +164 -0
- data/assets/stylesheets/rpure/_tables.scss +55 -0
- data/assets/stylesheets/rpure.scss +18 -0
- data/bin/console +6 -0
- data/bin/setup +8 -0
- data/lib/rpure/sass/engine.rb +13 -0
- data/lib/rpure/sass/version.rb +5 -0
- data/lib/rpure-sass.rb +41 -0
- data/renovate.json +5 -0
- data/rpure-sass.gemspec +29 -0
- metadata +127 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
.rpure-g {
|
|
2
|
+
letter-spacing: -0.31em;
|
|
3
|
+
*letter-spacing: normal;
|
|
4
|
+
*word-spacing: -0.43em;
|
|
5
|
+
text-rendering: optimizespeed;
|
|
6
|
+
font-family: $roboto-slab;
|
|
7
|
+
display: -webkit-box;
|
|
8
|
+
display: -webkit-flex;
|
|
9
|
+
display: -ms-flexbox;
|
|
10
|
+
display: flex;
|
|
11
|
+
-webkit-flex-flow: row wrap;
|
|
12
|
+
-ms-flex-flow: row wrap;
|
|
13
|
+
flex-flow: row wrap;
|
|
14
|
+
-webkit-align-content: flex-start;
|
|
15
|
+
-ms-flex-line-pack: start;
|
|
16
|
+
align-content: flex-start;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
|
20
|
+
table .rpure-g {
|
|
21
|
+
display: block;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.opera-only :-o-prefocus, .rpure-g {
|
|
26
|
+
word-spacing: -0.43em;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.rpure-u {
|
|
30
|
+
display: inline-block;
|
|
31
|
+
*display: inline;
|
|
32
|
+
zoom: 1;
|
|
33
|
+
letter-spacing: normal;
|
|
34
|
+
word-spacing: normal;
|
|
35
|
+
vertical-align: top;
|
|
36
|
+
text-rendering: auto;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.rpure-g [class*="rpure-u"] {
|
|
40
|
+
font-family: sans-serif;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.rpure-u-1, .rpure-u-1-1, .rpure-u-1-2, .rpure-u-1-3, .rpure-u-2-3, .rpure-u-1-4, .rpure-u-3-4, .rpure-u-1-5, .rpure-u-2-5, .rpure-u-3-5, .rpure-u-4-5, .rpure-u-5-5, .rpure-u-1-6, .rpure-u-5-6, .rpure-u-1-8, .rpure-u-3-8, .rpure-u-5-8, .rpure-u-7-8, .rpure-u-1-12, .rpure-u-5-12, .rpure-u-7-12, .rpure-u-11-12, .rpure-u-1-24, .rpure-u-2-24, .rpure-u-3-24, .rpure-u-4-24, .rpure-u-5-24, .rpure-u-6-24, .rpure-u-7-24, .rpure-u-8-24, .rpure-u-9-24, .rpure-u-10-24, .rpure-u-11-24, .rpure-u-12-24, .rpure-u-13-24, .rpure-u-14-24, .rpure-u-15-24, .rpure-u-16-24, .rpure-u-17-24, .rpure-u-18-24, .rpure-u-19-24, .rpure-u-20-24, .rpure-u-21-24, .rpure-u-22-24, .rpure-u-23-24, .rpure-u-24-24 {
|
|
44
|
+
display: inline-block;
|
|
45
|
+
*display: inline;
|
|
46
|
+
zoom: 1;
|
|
47
|
+
letter-spacing: normal;
|
|
48
|
+
word-spacing: normal;
|
|
49
|
+
vertical-align: top;
|
|
50
|
+
text-rendering: auto;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.rpure-u-1-24 {
|
|
54
|
+
width: 4.1667%;
|
|
55
|
+
*width: 4.1357%;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.rpure-u-1-12, .rpure-u-2-24 {
|
|
59
|
+
width: 8.3333%;
|
|
60
|
+
*width: 8.3023%;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.rpure-u-1-8, .rpure-u-3-24 {
|
|
64
|
+
width: 12.5000%;
|
|
65
|
+
*width: 12.4690%;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.rpure-u-1-6, .rpure-u-4-24 {
|
|
69
|
+
width: 16.6667%;
|
|
70
|
+
*width: 16.6357%;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.rpure-u-1-5 {
|
|
74
|
+
width: 20%;
|
|
75
|
+
*width: 19.9690%;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.rpure-u-5-24 {
|
|
79
|
+
width: 20.8333%;
|
|
80
|
+
*width: 20.8023%;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.rpure-u-1-4, .rpure-u-6-24 {
|
|
84
|
+
width: 25%;
|
|
85
|
+
*width: 24.9690%;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.rpure-u-7-24 {
|
|
89
|
+
width: 29.1667%;
|
|
90
|
+
*width: 29.1357%;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.rpure-u-1-3, .rpure-u-8-24 {
|
|
94
|
+
width: 33.3333%;
|
|
95
|
+
*width: 33.3023%;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.rpure-u-3-8, .rpure-u-9-24 {
|
|
99
|
+
width: 37.5000%;
|
|
100
|
+
*width: 37.4690%;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.rpure-u-2-5 {
|
|
104
|
+
width: 40%;
|
|
105
|
+
*width: 39.9690%;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.rpure-u-5-12, .rpure-u-10-24 {
|
|
109
|
+
width: 41.6667%;
|
|
110
|
+
*width: 41.6357%;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.rpure-u-11-24 {
|
|
114
|
+
width: 45.8333%;
|
|
115
|
+
*width: 45.8023%;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.rpure-u-1-2, .rpure-u-12-24 {
|
|
119
|
+
width: 50%;
|
|
120
|
+
*width: 49.9690%;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.rpure-u-13-24 {
|
|
124
|
+
width: 54.1667%;
|
|
125
|
+
*width: 54.1357%;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.rpure-u-7-12, .rpure-u-14-24 {
|
|
129
|
+
width: 58.3333%;
|
|
130
|
+
*width: 58.3023%;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.rpure-u-3-5 {
|
|
134
|
+
width: 60%;
|
|
135
|
+
*width: 59.9690%;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.rpure-u-5-8, .rpure-u-15-24 {
|
|
139
|
+
width: 62.5000%;
|
|
140
|
+
*width: 62.4690%;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.rpure-u-2-3, .rpure-u-16-24 {
|
|
144
|
+
width: 66.6667%;
|
|
145
|
+
*width: 66.6357%;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.rpure-u-17-24 {
|
|
149
|
+
width: 70.8333%;
|
|
150
|
+
*width: 70.8023%;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.rpure-u-3-4, .rpure-u-18-24 {
|
|
154
|
+
width: 75%;
|
|
155
|
+
*width: 74.9690%;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.rpure-u-19-24 {
|
|
159
|
+
width: 79.1667%;
|
|
160
|
+
*width: 79.1357%;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.rpure-u-4-5 {
|
|
164
|
+
width: 80%;
|
|
165
|
+
*width: 79.9690%;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.rpure-u-5-6, .rpure-u-20-24 {
|
|
169
|
+
width: 83.3333%;
|
|
170
|
+
*width: 83.3023%;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.rpure-u-7-8, .rpure-u-21-24 {
|
|
174
|
+
width: 87.5000%;
|
|
175
|
+
*width: 87.4690%;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.rpure-u-11-12, .rpure-u-22-24 {
|
|
179
|
+
width: 91.6667%;
|
|
180
|
+
*width: 91.6357%;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.rpure-u-23-24 {
|
|
184
|
+
width: 95.8333%;
|
|
185
|
+
*width: 95.8023%;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.rpure-u-1, .rpure-u-1-1, .rpure-u-5-5, .rpure-u-24-24 {
|
|
189
|
+
width: 100%;
|
|
190
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
.rpure-menu {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.rpure-menu-fixed {
|
|
6
|
+
position: fixed;
|
|
7
|
+
left: 0;
|
|
8
|
+
top: 0;
|
|
9
|
+
z-index: 3;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.rpure-menu-list, .rpure-menu-item {
|
|
13
|
+
position: relative;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.rpure-menu-list {
|
|
17
|
+
list-style: none;
|
|
18
|
+
margin: 0;
|
|
19
|
+
padding: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.rpure-menu-item {
|
|
23
|
+
padding: 0;
|
|
24
|
+
margin: 0;
|
|
25
|
+
height: 100%;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.rpure-menu-link, .rpure-menu-heading {
|
|
29
|
+
display: block;
|
|
30
|
+
text-decoration: none;
|
|
31
|
+
white-space: nowrap;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.rpure-menu-horizontal {
|
|
35
|
+
width: 100%;
|
|
36
|
+
white-space: nowrap;
|
|
37
|
+
|
|
38
|
+
.rpure-menu-list {
|
|
39
|
+
display: inline-block;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.rpure-menu-item, .rpure-menu-heading, .rpure-menu-separator {
|
|
43
|
+
display: inline-block;
|
|
44
|
+
*display: inline;
|
|
45
|
+
zoom: 1;
|
|
46
|
+
vertical-align: middle;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.rpure-menu-item .rpure-menu-item {
|
|
51
|
+
display: block;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.rpure-menu-children {
|
|
55
|
+
display: none;
|
|
56
|
+
position: absolute;
|
|
57
|
+
left: 100%;
|
|
58
|
+
top: 0;
|
|
59
|
+
margin: 0;
|
|
60
|
+
padding: 0;
|
|
61
|
+
z-index: 3;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.rpure-menu-horizontal .rpure-menu-children {
|
|
65
|
+
left: 0;
|
|
66
|
+
top: auto;
|
|
67
|
+
width: inherit;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.rpure-menu-allow-hover:hover > .rpure-menu-children, .rpure-menu-active > .rpure-menu-children {
|
|
71
|
+
display: block;
|
|
72
|
+
position: absolute;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.rpure-menu-has-children > .rpure-menu-link:after {
|
|
76
|
+
padding-left: 0.5em;
|
|
77
|
+
content: "\25B8";
|
|
78
|
+
font-size: small;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.rpure-menu-horizontal .rpure-menu-has-children > .rpure-menu-link:after {
|
|
82
|
+
content: "\25BE";
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.rpure-menu-scrollable {
|
|
86
|
+
overflow-y: scroll;
|
|
87
|
+
overflow-x: hidden;
|
|
88
|
+
|
|
89
|
+
.rpure-menu-list {
|
|
90
|
+
display: block;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.rpure-menu-horizontal.rpure-menu-scrollable {
|
|
95
|
+
.rpure-menu-list {
|
|
96
|
+
display: inline-block;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
white-space: nowrap;
|
|
100
|
+
overflow-y: hidden;
|
|
101
|
+
overflow-x: auto;
|
|
102
|
+
-ms-overflow-style: none;
|
|
103
|
+
-webkit-overflow-scrolling: touch;
|
|
104
|
+
padding: .5em 0;
|
|
105
|
+
&::-webkit-scrollbar {
|
|
106
|
+
display: none;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.rpure-menu-separator {
|
|
111
|
+
background-color: #ccc;
|
|
112
|
+
height: 1px;
|
|
113
|
+
margin: .3em 0;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.rpure-menu-horizontal {
|
|
117
|
+
.rpure-menu-children .rpure-menu-separator {
|
|
118
|
+
background-color: #ccc;
|
|
119
|
+
height: 1px;
|
|
120
|
+
margin: .3em 0;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.rpure-menu-separator {
|
|
124
|
+
width: 1px;
|
|
125
|
+
height: 1.3em;
|
|
126
|
+
margin: 0 0.3em;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.rpure-menu-children .rpure-menu-separator {
|
|
130
|
+
display: block;
|
|
131
|
+
width: auto;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.rpure-menu-heading {
|
|
136
|
+
text-transform: uppercase;
|
|
137
|
+
color: #565d64;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.rpure-menu-link {
|
|
141
|
+
color: #777;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.rpure-menu-children {
|
|
145
|
+
background-color: #fff;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.rpure-menu-link, .rpure-menu-disabled, .rpure-menu-heading {
|
|
149
|
+
padding: .5em 1em;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.rpure-menu-disabled {
|
|
153
|
+
opacity: .5;
|
|
154
|
+
|
|
155
|
+
.rpure-menu-link:hover {
|
|
156
|
+
background-color: transparent;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.rpure-menu-active > .rpure-menu-link {
|
|
161
|
+
background-color: #eee;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.rpure-menu-link {
|
|
165
|
+
&:hover, &:focus {
|
|
166
|
+
background-color: #eee;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.rpure-menu-selected .rpure-menu-link {
|
|
171
|
+
color: #000;
|
|
172
|
+
|
|
173
|
+
&:visited {
|
|
174
|
+
color: #000;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
.rpuremodal-open {
|
|
2
|
+
overflow: hidden;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.rpuremodal {
|
|
6
|
+
display: none;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
position: fixed;
|
|
9
|
+
top: 0;
|
|
10
|
+
right: 0;
|
|
11
|
+
bottom: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
z-index: 1050;
|
|
14
|
+
-webkit-overflow-scrolling: touch;
|
|
15
|
+
outline: 0;
|
|
16
|
+
&.fade .rpuremodal-dialog {
|
|
17
|
+
-webkit-transform: translate(0, -25%);
|
|
18
|
+
-ms-transform: translate(0, -25%);
|
|
19
|
+
-o-transform: translate(0, -25%);
|
|
20
|
+
transform: translate(0, -25%);
|
|
21
|
+
-webkit-transition: -webkit-transform 0.3s ease-out;
|
|
22
|
+
-moz-transition: -moz-transform 0.3s ease-out;
|
|
23
|
+
-o-transition: -o-transform 0.3s ease-out;
|
|
24
|
+
transition: transform 0.3s ease-out;
|
|
25
|
+
}
|
|
26
|
+
&.in .rpuremodal-dialog {
|
|
27
|
+
-webkit-transform: translate(0, 0);
|
|
28
|
+
-ms-transform: translate(0, 0);
|
|
29
|
+
-o-transform: translate(0, 0);
|
|
30
|
+
transform: translate(0, 0);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.rpuremodal-open .rpuremodal {
|
|
35
|
+
overflow-x: hidden;
|
|
36
|
+
overflow-y: auto;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.rpuremodal-dialog {
|
|
40
|
+
position: relative;
|
|
41
|
+
width: auto;
|
|
42
|
+
margin: 10px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.rpuremodal-content {
|
|
46
|
+
position: relative;
|
|
47
|
+
background-color: white;
|
|
48
|
+
border: 1px solid transparent;
|
|
49
|
+
border: 1px solid transparent;
|
|
50
|
+
border-radius: 0;
|
|
51
|
+
-webkit-box-shadow: (0 3px 9px rgba(0, 0, 0, .5));
|
|
52
|
+
box-shadow: (0 3px 9px rgba(0, 0, 0, .5));
|
|
53
|
+
background-clip: padding-box;
|
|
54
|
+
|
|
55
|
+
outline: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.rpuremodal-backdrop {
|
|
59
|
+
position: fixed;
|
|
60
|
+
top: 0;
|
|
61
|
+
right: 0;
|
|
62
|
+
bottom: 0;
|
|
63
|
+
left: 0;
|
|
64
|
+
z-index: 1040;
|
|
65
|
+
background-color: white;
|
|
66
|
+
&.fade {
|
|
67
|
+
opacity: 0;
|
|
68
|
+
$opacity-ie: (0 * 100);
|
|
69
|
+
filter: alpha(opacity=$opacity-ie);
|
|
70
|
+
}
|
|
71
|
+
&.in {
|
|
72
|
+
opacity: .5;
|
|
73
|
+
$opacity-ie: (.5 * 100);
|
|
74
|
+
filter: alpha(opacity=$opacity-ie);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.rpuremodal-header {
|
|
79
|
+
padding: 15px;
|
|
80
|
+
border-bottom: 1px solid white;
|
|
81
|
+
&:before,
|
|
82
|
+
&:after {
|
|
83
|
+
content: " ";
|
|
84
|
+
display: table;
|
|
85
|
+
}
|
|
86
|
+
&:after {
|
|
87
|
+
clear: both;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.rpuremodal-header .close {
|
|
92
|
+
margin-top: -2px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.rpuremodal-title {
|
|
96
|
+
margin: 0;
|
|
97
|
+
line-height: 1.428571429;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.rpuremodal-body {
|
|
101
|
+
position: relative;
|
|
102
|
+
padding: 20px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.rpuremodal-footer {
|
|
106
|
+
padding: 20px;
|
|
107
|
+
text-align: right;
|
|
108
|
+
border-top: 1px solid white;
|
|
109
|
+
&:before,
|
|
110
|
+
&:after {
|
|
111
|
+
content: " ";
|
|
112
|
+
display: table;
|
|
113
|
+
}
|
|
114
|
+
&:after {
|
|
115
|
+
clear: both;
|
|
116
|
+
}
|
|
117
|
+
.btn + .btn {
|
|
118
|
+
margin-left: 5px;
|
|
119
|
+
margin-bottom: 0;
|
|
120
|
+
}
|
|
121
|
+
.btn-group .btn + .btn {
|
|
122
|
+
margin-left: -1px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.btn-block + .btn-block {
|
|
126
|
+
margin-left: 0;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.rpuremodal-scrollbar-measure {
|
|
131
|
+
position: absolute;
|
|
132
|
+
top: -9999px;
|
|
133
|
+
width: 50px;
|
|
134
|
+
height: 50px;
|
|
135
|
+
overflow: scroll;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@media (min-width: 768px) {
|
|
139
|
+
.rpuremodal-dialog {
|
|
140
|
+
width: 600px;
|
|
141
|
+
margin: 30px auto;
|
|
142
|
+
}
|
|
143
|
+
.rpuremodal-content {
|
|
144
|
+
-webkit-box-shadow: (0 5px 15px rgba(0, 0, 0, .5));
|
|
145
|
+
box-shadow: (0 5px 15px rgba(0, 0, 0, .5));
|
|
146
|
+
}
|
|
147
|
+
.rpuremodal-sm {
|
|
148
|
+
width: 300px;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
@media (min-width: 992px) {
|
|
153
|
+
.rpuremodal-lg {
|
|
154
|
+
width: 900px;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.rpuremodal .rpuremodal-wide .rpuremodal-dialog {
|
|
159
|
+
width: 70%;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.rpuremodal-wide .rpuremodal-body {
|
|
163
|
+
overflow-y: auto;
|
|
164
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
.rpure-table {
|
|
2
|
+
border-collapse: collapse;
|
|
3
|
+
border-spacing: 0;
|
|
4
|
+
empty-cells: show;
|
|
5
|
+
border: 1px solid #cbcbcb;
|
|
6
|
+
caption {
|
|
7
|
+
color: #000;
|
|
8
|
+
font: italic 85%/1 arial, sans-serif;
|
|
9
|
+
padding: 1em 0;
|
|
10
|
+
text-align: center;
|
|
11
|
+
}
|
|
12
|
+
td, th {
|
|
13
|
+
border-left: 1px solid #cbcbcb;
|
|
14
|
+
border-width: 0 0 0 1px;
|
|
15
|
+
font-size: inherit;
|
|
16
|
+
margin: 0;
|
|
17
|
+
overflow: visible;
|
|
18
|
+
padding: 0.5em 1em;
|
|
19
|
+
}
|
|
20
|
+
td:first-child, th:first-child {
|
|
21
|
+
border-left-width: 0;
|
|
22
|
+
}
|
|
23
|
+
thead {
|
|
24
|
+
background-color: #e0e0e0;
|
|
25
|
+
color: #000;
|
|
26
|
+
text-align: left;
|
|
27
|
+
vertical-align: bottom;
|
|
28
|
+
}
|
|
29
|
+
td {
|
|
30
|
+
background-color: transparent;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.rpure-table-odd td, .rpure-table-striped tr:nth-child(2n-1) td {
|
|
35
|
+
background-color: #f2f2f2;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.rpure-table-bordered {
|
|
39
|
+
td {
|
|
40
|
+
border-bottom: 1px solid #cbcbcb;
|
|
41
|
+
}
|
|
42
|
+
tbody > tr:last-child > td {
|
|
43
|
+
border-bottom-width: 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.rpure-table-horizontal {
|
|
48
|
+
td, th {
|
|
49
|
+
border-width: 0 0 1px 0;
|
|
50
|
+
border-bottom: 1px solid #cbcbcb;
|
|
51
|
+
}
|
|
52
|
+
tbody > tr:last-child > td {
|
|
53
|
+
border-bottom-width: 0;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Google Fonts
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: 'Droid Sans';
|
|
4
|
+
src:url(asset-path("../assets/DroidSans.ttf")) format("truetype");
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
// Font Variables
|
|
8
|
+
$roboto-slab: 'Droid Sans', serif;
|
|
9
|
+
$open-sans: 'Droid Sans', sans-serif;
|
|
10
|
+
|
|
11
|
+
@import 'rpure/base';
|
|
12
|
+
@import 'rpure/buttons';
|
|
13
|
+
@import 'rpure/forms';
|
|
14
|
+
@import 'rpure/grids';
|
|
15
|
+
@import 'rpure/grids-responsive';
|
|
16
|
+
@import 'rpure/menus';
|
|
17
|
+
@import 'rpure/tables';
|
|
18
|
+
@import 'rpure/modals';
|
data/bin/console
ADDED
data/bin/setup
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module Rpure
|
|
2
|
+
module Sass
|
|
3
|
+
module Rails
|
|
4
|
+
class Engine < ::Rails::Engine
|
|
5
|
+
initializer 'rpure-sass.assets.precompile' do |app|
|
|
6
|
+
app.config.assets.paths << root.join('assets/stylesheets').to_s
|
|
7
|
+
app.config.assets.paths << root.join('assets/javascripts').to_s
|
|
8
|
+
app.config.assets.paths << root.join('assets/fonts').to_s
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
data/lib/rpure-sass.rb
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module Rpure
|
|
2
|
+
module Sass
|
|
3
|
+
class << self
|
|
4
|
+
def load!
|
|
5
|
+
if defined?(::Rails)
|
|
6
|
+
register_rails_engine
|
|
7
|
+
elsif defined?(::Sprockets)
|
|
8
|
+
register_sprockets
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
configure_sass
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def gem_path
|
|
15
|
+
@gem_path ||= File.expand_path('..', File.dirname(__FILE__))
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def stylesheets_path
|
|
19
|
+
File.join(gem_path, 'assets/stylesheets')
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
private
|
|
23
|
+
|
|
24
|
+
def configure_sass
|
|
25
|
+
require 'sass'
|
|
26
|
+
|
|
27
|
+
::Sass.load_paths << stylesheets_path
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def register_rails_engine
|
|
31
|
+
require 'rpure/sass/engine'
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def register_sprockets
|
|
35
|
+
Sprockets.append_path(stylesheets_path)
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
Rpure::Sass.load!
|
data/rpure-sass.gemspec
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
+
require 'rpure/sass/version'
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |spec|
|
|
7
|
+
spec.name = 'rpure-sass'
|
|
8
|
+
spec.version = Rpure::Sass::VERSION
|
|
9
|
+
spec.authors = ['Efrem Ropelato']
|
|
10
|
+
spec.email = ['efrem.ropelato@gmail.com']
|
|
11
|
+
|
|
12
|
+
spec.summary = 'Sass framework Pure.CSS based and ready to use in Ruby projects'
|
|
13
|
+
spec.description = 'Sass framework Pure.CSS based and ready to use in Ruby projects'
|
|
14
|
+
spec.homepage = "https://efremropelato.github.io/rpure-sass/"
|
|
15
|
+
spec.license = 'MIT'
|
|
16
|
+
|
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
18
|
+
spec.bindir = 'exe'
|
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
20
|
+
spec.require_paths = ['lib']
|
|
21
|
+
|
|
22
|
+
spec.required_ruby_version = '>= 2.0.0'
|
|
23
|
+
|
|
24
|
+
spec.add_runtime_dependency 'sass', '>= 3.4'
|
|
25
|
+
|
|
26
|
+
spec.add_development_dependency 'railties', '>= 5.0'
|
|
27
|
+
spec.add_development_dependency 'rspec', '>= 3.5'
|
|
28
|
+
spec.add_development_dependency 'sprockets-rails', '>= 3.0'
|
|
29
|
+
end
|