scss_ninja 0.1.0 → 0.1.4

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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +11 -0
  3. data/README.md +78 -4
  4. data/app/assets/stylesheets/border&radius.scss +174 -0
  5. data/app/assets/stylesheets/cards.scss +119 -0
  6. data/app/assets/stylesheets/carousel.scss +61 -0
  7. data/app/assets/stylesheets/columns.scss +228 -0
  8. data/app/assets/stylesheets/css/border&radius.css +228 -0
  9. data/app/assets/stylesheets/css/buttons.css +72 -0
  10. data/app/assets/stylesheets/css/cards.css +157 -0
  11. data/app/assets/stylesheets/css/carousel.css +13872 -0
  12. data/app/assets/stylesheets/css/columns.css +438 -0
  13. data/app/assets/stylesheets/css/forms.css +46 -0
  14. data/app/assets/stylesheets/css/heights.css +80 -0
  15. data/app/assets/stylesheets/css/margins&paddings.css +390 -0
  16. data/app/assets/stylesheets/css/modals.css +58 -0
  17. data/app/assets/stylesheets/css/nav.css +259 -0
  18. data/app/assets/stylesheets/css/opacity.css +40 -0
  19. data/app/assets/stylesheets/css/scss_ninja.css +14 -0
  20. data/app/assets/stylesheets/css/slidebtn.css +59 -0
  21. data/app/assets/stylesheets/css/tables.css +610 -0
  22. data/app/assets/stylesheets/css/texts&backgrounds.css +392 -0
  23. data/app/assets/stylesheets/forms.scss +40 -0
  24. data/app/assets/stylesheets/margins&paddings.scss +174 -30
  25. data/app/assets/stylesheets/modals.scss +53 -0
  26. data/app/assets/stylesheets/nav.scss +248 -0
  27. data/app/assets/stylesheets/opacity.scss +5 -0
  28. data/app/assets/stylesheets/scss_ninja.scss +8 -474
  29. data/app/assets/stylesheets/tables.scss +571 -0
  30. data/app/assets/stylesheets/texts&backgrounds.scss +12 -0
  31. data/lib/scss_ninja/version.rb +1 -1
  32. data/lib/scss_ninja.rb +1 -1
  33. data/scss_ninja.gemspec +1 -1
  34. metadata +26 -3
@@ -0,0 +1,248 @@
1
+
2
+ /* ############ Nav bar styles ############# */
3
+ @media only screen and (min-width: 826px) {
4
+ .nav-bar {
5
+ display: grid;
6
+ grid-template-columns: 2fr 8fr 2fr;
7
+ height: 70px;
8
+ width: 100%;
9
+ background-color: rgb(118, 233, 204);
10
+ font-size: 20px;
11
+ font-family: 'Times New Roman', Times, serif;
12
+
13
+ .checkbox,
14
+ .checkbox-lab {
15
+ display: none;
16
+ }
17
+
18
+ .nav-start {
19
+ grid-column: 1 / span 1;
20
+ padding: 0;
21
+ margin: 23px 0 0 0;
22
+
23
+ p {
24
+ padding: 0;
25
+ margin: 0 0 0 20px;
26
+ width: fit-content;
27
+ text-shadow: 2px 2px rgb(189, 186, 186);
28
+ font-weight: 900;
29
+ }
30
+
31
+ p::after {
32
+ content: '';
33
+ height: 7px;
34
+ width: 0;
35
+ display: block;
36
+ background-color: ivory;
37
+ border-radius: 2px;
38
+ }
39
+
40
+ p:hover::after {
41
+ width: 100%;
42
+ transition: width 0.2s ease-in-out;
43
+ }
44
+ }
45
+
46
+ .mid-nav {
47
+ grid-column: 2 / span 1;
48
+ margin: 0;
49
+ margin-top: 23px;
50
+
51
+ ul {
52
+ display: flex;
53
+ padding: 0;
54
+ margin: 0;
55
+
56
+ li {
57
+ list-style: none;
58
+ padding: 0;
59
+ margin: 0 auto 0 auto;
60
+ font-family: 'Times New Roman', Times, serif;
61
+ width: fit-content;
62
+
63
+ a {
64
+ text-decoration: none;
65
+ color: black;
66
+ width: fit-content;
67
+ font-weight: 900;
68
+ text-shadow: 2px 2px rgb(211, 210, 210);
69
+ }
70
+
71
+ a:hover::after {
72
+ content: '';
73
+ height: 7px;
74
+ background-color: aliceblue;
75
+ display: block;
76
+ border-radius: 2px;
77
+ }
78
+ }
79
+ }
80
+ }
81
+
82
+ .nav-end {
83
+ grid-column: 3 / span 1;
84
+ margin-top: 23px;
85
+ }
86
+ }
87
+ }
88
+
89
+ @media only screen and (max-width: 825px) {
90
+ .nav-bar {
91
+ all: initial;
92
+ position: relative;
93
+ display: grid;
94
+ grid-template-columns: 2fr 4fr 3fr;
95
+ height: 70px;
96
+ width: 100%;
97
+ background-color: rgb(118, 233, 204);
98
+ font-size: 20px;
99
+ font-family: 'Times New Roman', Times, serif;
100
+
101
+ .checkbox {
102
+ display: none;
103
+ }
104
+
105
+ .checkbox:checked ~ .mid-nav {
106
+ display: block;
107
+ }
108
+
109
+ .checkbox:checked ~ .checkbox-lab > span {
110
+ transform: rotate(45deg);
111
+ transition: transform 0.4s ease-in-out;
112
+ }
113
+
114
+ .checkbox:checked ~ .checkbox-lab > span:hover {
115
+ transform: rotate(180deg);
116
+ transition: transform 0.7s ease-in-out;
117
+ }
118
+
119
+ .checkbox:checked ~ .checkbox-lab > span::after {
120
+ transform: rotate(90deg);
121
+ bottom: 0;
122
+ }
123
+
124
+ .checkbox:checked ~ .checkbox-lab > span::before {
125
+ display: none;
126
+ }
127
+
128
+ .checkbox-lab {
129
+ display: block;
130
+ height: calc(70px - 23px);
131
+ margin: 30px 0 0 20px;
132
+ grid-column: 1 / span 1;
133
+ }
134
+
135
+ .checkbox-lab > span {
136
+ content: '';
137
+ display: block;
138
+ background-color: ivory;
139
+ width: 55px;
140
+ height: 6px;
141
+ position: relative;
142
+ }
143
+
144
+ .checkbox-lab > span::before {
145
+ content: '';
146
+ display: block;
147
+ background-color: ivory;
148
+ width: 55px;
149
+ height: 6px;
150
+ position: absolute;
151
+ top: 13px
152
+ }
153
+
154
+ .checkbox-lab > span::after {
155
+ content: '';
156
+ display: block;
157
+ background-color: ivory;
158
+ width: 55px;
159
+ height: 6px;
160
+ position: absolute;
161
+ bottom: 13px;
162
+ }
163
+
164
+ .nav-start {
165
+ grid-column: 2/ span 1;
166
+ padding: 0;
167
+ margin: 23px 0 0 0;
168
+
169
+ p {
170
+ padding: 0;
171
+ margin: 0 0 0 20px;
172
+ width: fit-content;
173
+ text-shadow: 2px 2px rgb(189, 186, 186);
174
+ font-weight: 900;
175
+ }
176
+
177
+ p::after {
178
+ content: '';
179
+ height: 7px;
180
+ width: 0;
181
+ display: block;
182
+ background-color: ivory;
183
+ border-radius: 2px;
184
+ }
185
+
186
+ p:hover::after {
187
+ width: 100%;
188
+ transition: width 0.2s ease-in-out;
189
+ }
190
+ }
191
+
192
+ .mid-nav {
193
+ display: none;
194
+ position: absolute;
195
+ top: 100%;
196
+ left: 0 !important;
197
+ margin: 0;
198
+ width: 100%;
199
+ height: 90vh;
200
+ background-color: rgb(13, 192, 192);
201
+ z-index: 1;
202
+
203
+ ul {
204
+ padding: 0;
205
+ margin-left: auto;
206
+ margin-right: auto;
207
+ width: 20%;
208
+ height: 30%;
209
+ margin-top: 30%;
210
+ align-items: center;
211
+
212
+ li {
213
+ list-style: none;
214
+ padding: 0;
215
+ margin: 0 auto;
216
+ width: fit-content;
217
+ font-family: 'Times New Roman', Times, serif;
218
+
219
+ a {
220
+ text-decoration: none;
221
+ color: black;
222
+ width: fit-content;
223
+ font-weight: 900;
224
+ text-shadow: 2px 2px rgb(211, 210, 210);
225
+ }
226
+
227
+ a:hover::after {
228
+ content: '';
229
+ height: 7px;
230
+ background-color: aliceblue;
231
+ border-radius: 2px;
232
+ display: block;
233
+ }
234
+
235
+ }
236
+ }
237
+ }
238
+
239
+ .nav-end {
240
+ grid-column: 3 / span 1;
241
+ margin-top: 23px;
242
+ }
243
+ }
244
+ }
245
+
246
+ .img-rounded {
247
+ border-radius: 50%;
248
+ }
@@ -0,0 +1,5 @@
1
+ @for $i from 1 through 10 {
2
+ .op-#{$i} {
3
+ opacity: $i * 0.1;
4
+ }
5
+ }
@@ -1,480 +1,14 @@
1
- body {
2
- margin: 0;
3
- }
4
-
5
- .flex-col {
6
- flex-direction: column;
7
- }
8
-
9
- .has-text-centered {
10
- text-align: center;
11
- align-content: center;
12
- width: 100%;
13
- }
14
-
15
- .is-fullwidth {
16
- width: inherit;
17
- }
18
-
19
- .submit {
20
- padding-left: 2.5rem;
21
- padding-right: 2.5rem;
22
- padding-top: 0.7rem;
23
- padding-bottom: 0.7rem;
24
- font-size: 17px;
25
- font-weight: 900;
26
- border: 1px solid rgb(9, 231, 194);
27
- border-radius: 7px;
28
- color: white;
29
- margin-bottom: 1.2rem;
30
- text-align: center;
31
- text-decoration: none;
32
- }
33
-
34
- .main {
35
- margin: 0;
36
- }
37
-
38
- .button {
39
- padding: 0.7rem 2.5rem 0.7rem 2.5rem;
40
- font-size: 17px;
41
- font-weight: 900;
42
- background-color: #000000;
43
- border: 1px solid rgb(9, 231, 194);
44
- border-radius: 7px;
45
- color: white;
46
- text-decoration: none;
47
- }
48
-
49
- /* ################ Styles for columns ################# */
50
-
51
- $column: 12;
52
-
53
- @for $i from 1 through $column {
54
- @if $column <= 11 {
55
- .column-#{$i} {
56
- width: (99% * ($i / $column));
57
- height: inherit;
58
- margin-right: 0 0.5% 0 0.5%;
59
- }
60
- } @else {
61
- .column-#{$i} {
62
- width: (100% * ($i / $column));
63
- height: inherit;
64
- }
65
- }
66
- }
67
-
68
- .columns {
69
- width: 100%;
70
- height: fit-content;
71
- display: flex;
72
- }
73
-
74
- .is-centered {
75
- align-self: center;
76
- justify-content: center;
77
- }
78
-
79
- /* ############ Styles for forms ############# */
80
-
81
- form {
82
- display: flex;
83
- flex-direction: column;
84
- width: 100%;
85
- font-family: 'Times New Roman', Times, serif;
86
- font-size: 17px;
87
- text-shadow: 2px 2px rgb(203, 203, 206);
88
-
89
- .label {
90
- font-weight: 900;
91
- }
92
-
93
- .field {
94
- margin-bottom: 1.2rem;
95
- }
96
-
97
- .input {
98
- width: 100%;
99
- height: 4vh;
100
- border: 1px solid rgb(224, 222, 222);
101
- border-radius: 5px;
102
- font-size: 25px;
103
- padding-left: 0.5%;
104
- }
105
-
106
- .actions {
107
- width: 100%;
108
-
109
- .submit {
110
- padding: 0.7rem 2.5rem 0.7rem 2.5rem;
111
- font-size: 17px;
112
- font-weight: 900;
113
- border: 1px solid rgb(9, 231, 194);
114
- border-radius: 7px;
115
- color: white;
116
- margin-bottom: 1.2rem;
117
- }
118
- }
119
- }
120
-
121
- /* ####### Styles for card ######## */
122
-
123
- .card {
124
- width: 94%;
125
- display: flex;
126
- border: 1px solid rgb(226, 222, 222);
127
- border-radius: 20px;
128
- padding: 0 3% 3% 0;
129
- box-shadow: 5px 10px rgb(233, 232, 232);
130
-
131
- .aside {
132
- display: flex;
133
- flex-direction: column;
134
- align-items: center;
135
- margin-left: 0;
136
- padding-left: 0;
137
- border: inherit;
138
- border-top-left-radius: inherit;
139
- font-family: 'Times New Roman', Times, serif;
140
-
141
- .aside-header {
142
- margin-top: 0%;
143
- }
144
-
145
- .aside-body {
146
- width: 100%;
147
- display: flex;
148
- flex-direction: column;
149
- justify-content: space-evenly;
150
- align-items: center;
151
- margin-left: 10px;
152
- padding-left: 0;
153
- }
154
- }
155
-
156
- .body {
157
- display: flex;
158
- flex-direction: column;
159
-
160
- .card-header {
161
- font-weight: 900;
162
- text-align: center;
163
- }
164
-
165
- .card-content {
166
- width: 100%;
167
- margin-left: 0.9%;
168
- }
169
-
170
- .card-footer {
171
- display: flex;
172
- justify-content: space-evenly;
173
- }
174
- }
175
- }
176
-
177
- .table {
178
- font-family: 'Times New Roman', Times, serif;
179
- width: 100%;
180
- background: #012b39;
181
- border: 1px solid rgb(133, 102, 102);
182
- border-radius: 10px;
183
- box-shadow: 5px 10px rgb(233, 232, 232);
184
-
185
- tr {
186
- th {
187
- width: inherit;
188
- // background-color: #000a0e;
189
- color: #e2b842;
190
- font-weight: 900;
191
- font-size: 19px;
192
- padding: 0.75em 1em;
193
- text-align: center;
194
- }
195
-
196
- td {
197
- color: #fff;
198
- padding: 0.65em 1em;
199
- text-align: center;
200
- font-weight: 600;
201
-
202
- a {
203
- text-decoration: none;
204
- color: inherit;
205
- }
206
- }
207
- }
208
-
209
- tbody tr:nth-child(odd) {
210
- background: #e4a9a9;
211
- box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
212
- &:hover {
213
- background-color: #012b39;
214
- color: #000000 !important;
215
- }
216
- }
217
-
218
- tbody tr:nth-child(even) {
219
- &:hover {
220
- background-color: #e4a9a9;
221
- transition: all 0.1s ease-in-out;
222
- color: #e4a9a9;
223
- }
224
- }
225
- }
226
-
227
- /* ############ Nav bar styles ############# */
228
- @media only screen and (min-width: 826px) {
229
- .nav-bar {
230
- display: grid;
231
- grid-template-columns: 2fr 8fr 2fr;
232
- height: 70px;
233
- width: 100%;
234
- background-color: rgb(118, 233, 204);
235
- font-size: 20px;
236
- font-family: 'Times New Roman', Times, serif;
237
-
238
- .checkbox,
239
- .checkbox-lab {
240
- display: none;
241
- }
242
-
243
- .nav-start {
244
- grid-column: 1 / span 1;
245
- padding: 0;
246
- margin: 23px 0 0 0;
247
-
248
- p {
249
- padding: 0;
250
- margin: 0 0 0 20px;
251
- width: fit-content;
252
- text-shadow: 2px 2px rgb(189, 186, 186);
253
- font-weight: 900;
254
- }
255
-
256
- p::after {
257
- content: '';
258
- height: 7px;
259
- width: 0;
260
- display: block;
261
- background-color: ivory;
262
- border-radius: 2px;
263
- }
264
-
265
- p:hover::after {
266
- width: 100%;
267
- transition: width 0.2s ease-in-out;
268
- }
269
- }
270
-
271
- .mid-nav {
272
- grid-column: 2 / span 1;
273
- margin: 0;
274
- margin-top: 23px;
275
-
276
- ul {
277
- display: flex;
278
- padding: 0;
279
- margin: 0;
280
-
281
- li {
282
- list-style: none;
283
- padding: 0;
284
- margin: 0 auto 0 auto;
285
- font-family: 'Times New Roman', Times, serif;
286
- width: fit-content;
287
-
288
- a {
289
- text-decoration: none;
290
- color: black;
291
- width: fit-content;
292
- font-weight: 900;
293
- text-shadow: 2px 2px rgb(211, 210, 210);
294
- }
295
-
296
- a:hover::after {
297
- content: '';
298
- height: 7px;
299
- background-color: aliceblue;
300
- display: block;
301
- border-radius: 2px;
302
- }
303
- }
304
- }
305
- }
306
-
307
- .nav-end {
308
- grid-column: 3 / span 1;
309
- margin-top: 23px;
310
- }
311
- }
312
- }
313
-
314
- @media only screen and (max-width: 825px) {
315
- .nav-bar {
316
- all: initial;
317
- position: relative;
318
- display: grid;
319
- grid-template-columns: 2fr 4fr 3fr;
320
- height: 70px;
321
- width: 100%;
322
- background-color: rgb(118, 233, 204);
323
- font-size: 20px;
324
- font-family: 'Times New Roman', Times, serif;
325
-
326
- .checkbox {
327
- display: none;
328
- }
329
-
330
- .checkbox:checked ~ .mid-nav {
331
- display: block;
332
- }
333
-
334
- .checkbox:checked ~ .checkbox-lab > span {
335
- transform: rotate(45deg);
336
- transition: transform 0.4s ease-in-out;
337
- }
338
-
339
- .checkbox:checked ~ .checkbox-lab > span:hover {
340
- transform: rotate(180deg);
341
- transition: transform 0.7s ease-in-out;
342
- }
343
-
344
- .checkbox:checked ~ .checkbox-lab > span::after {
345
- transform: rotate(90deg);
346
- bottom: 0;
347
- }
348
-
349
- .checkbox:checked ~ .checkbox-lab > span::before {
350
- display: none;
351
- }
352
-
353
- .checkbox-lab {
354
- display: block;
355
- height: calc(70px - 23px);
356
- margin: 30px 0 0 20px;
357
- grid-column: 1 / span 1;
358
- }
359
-
360
- .checkbox-lab > span {
361
- content: '';
362
- display: block;
363
- background-color: ivory;
364
- width: 55px;
365
- height: 6px;
366
- position: relative;
367
- }
368
-
369
- .checkbox-lab > span::before {
370
- content: '';
371
- display: block;
372
- background-color: ivory;
373
- width: 55px;
374
- height: 6px;
375
- position: absolute;
376
- top: 13px
377
- }
378
-
379
- .checkbox-lab > span::after {
380
- content: '';
381
- display: block;
382
- background-color: ivory;
383
- width: 55px;
384
- height: 6px;
385
- position: absolute;
386
- bottom: 13px;
387
- }
388
-
389
- .nav-start {
390
- grid-column: 2/ span 1;
391
- padding: 0;
392
- margin: 23px 0 0 0;
393
-
394
- p {
395
- padding: 0;
396
- margin: 0 0 0 20px;
397
- width: fit-content;
398
- text-shadow: 2px 2px rgb(189, 186, 186);
399
- font-weight: 900;
400
- }
401
-
402
- p::after {
403
- content: '';
404
- height: 7px;
405
- width: 0;
406
- display: block;
407
- background-color: ivory;
408
- border-radius: 2px;
409
- }
410
-
411
- p:hover::after {
412
- width: 100%;
413
- transition: width 0.2s ease-in-out;
414
- }
415
- }
416
-
417
- .mid-nav {
418
- display: none;
419
- position: absolute;
420
- top: 100%;
421
- left: 0 !important;
422
- margin: 0;
423
- width: 100%;
424
- height: 90vh;
425
- background-color: rgb(13, 192, 192);
426
- z-index: 1;
427
-
428
- ul {
429
- padding: 0;
430
- margin-left: auto;
431
- margin-right: auto;
432
- width: 20%;
433
- height: 30%;
434
- margin-top: 30%;
435
- align-items: center;
436
-
437
- li {
438
- list-style: none;
439
- padding: 0;
440
- margin: 0 auto;
441
- width: fit-content;
442
- font-family: 'Times New Roman', Times, serif;
443
-
444
- a {
445
- text-decoration: none;
446
- color: black;
447
- width: fit-content;
448
- font-weight: 900;
449
- text-shadow: 2px 2px rgb(211, 210, 210);
450
- }
451
-
452
- a:hover::after {
453
- content: '';
454
- height: 7px;
455
- background-color: aliceblue;
456
- border-radius: 2px;
457
- display: block;
458
- }
459
-
460
- }
461
- }
462
- }
463
-
464
- .nav-end {
465
- grid-column: 3 / span 1;
466
- margin-top: 23px;
467
- }
468
- }
469
- }
470
-
471
- .img-rounded {
472
- border-radius: 50%;
473
- }
474
-
475
1
  @import url('./margins&paddings.scss');
476
2
  @import url('./texts&backgrounds.scss');
477
3
  @import url('./heights.scss');
478
4
  @import url('./buttons.scss');
479
5
  @import url('./carousel.scss');
480
6
  @import url('./slidebtn.scss');
7
+ @import url('./columns.scss');
8
+ @import url('./nav.scss');
9
+ @import url('./tables.scss');
10
+ @import url('./cards.scss');
11
+ @import url('./forms.scss');
12
+ @import url('./border&radius.scss');
13
+ @import url('./opacity.scss');
14
+ @import url('./modals.scss');