upkey-track_stylebase 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +12 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +5 -0
  5. data/CODE_OF_CONDUCT.md +74 -0
  6. data/Gemfile +6 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +43 -0
  9. data/Rakefile +6 -0
  10. data/bin/console +14 -0
  11. data/bin/setup +8 -0
  12. data/lib/upkey/track_stylebase.rb +7 -0
  13. data/lib/upkey/track_stylebase/engine.rb +6 -0
  14. data/lib/upkey/track_stylebase/version.rb +5 -0
  15. data/upkey-track_stylebase.gemspec +27 -0
  16. data/vendor/assets/stylesheets/base/_common.scss +33 -0
  17. data/vendor/assets/stylesheets/base/_layout.scss +12 -0
  18. data/vendor/assets/stylesheets/base/_site.scss +27 -0
  19. data/vendor/assets/stylesheets/components/_buttons.scss +55 -0
  20. data/vendor/assets/stylesheets/components/_chat.scss +102 -0
  21. data/vendor/assets/stylesheets/components/_course.scss +113 -0
  22. data/vendor/assets/stylesheets/components/_date.scss +36 -0
  23. data/vendor/assets/stylesheets/components/_form.scss +122 -0
  24. data/vendor/assets/stylesheets/components/_gradepicker.scss +78 -0
  25. data/vendor/assets/stylesheets/components/_illustration.scss +41 -0
  26. data/vendor/assets/stylesheets/components/_natural_language.scss +110 -0
  27. data/vendor/assets/stylesheets/components/_progressbar.scss +35 -0
  28. data/vendor/assets/stylesheets/components/_quiz.scss +58 -0
  29. data/vendor/assets/stylesheets/components/_skills.scss +37 -0
  30. data/vendor/assets/stylesheets/components/_slider.scss +99 -0
  31. data/vendor/assets/stylesheets/components/_statement.scss +35 -0
  32. data/vendor/assets/stylesheets/components/_toggle.scss +138 -0
  33. data/vendor/assets/stylesheets/components/_topbar.scss +57 -0
  34. data/vendor/assets/stylesheets/components/_tutorial.scss +57 -0
  35. data/vendor/assets/stylesheets/components/_types.scss +50 -0
  36. data/vendor/assets/stylesheets/helpers/_variables.scss +11 -0
  37. data/vendor/assets/stylesheets/upkey_track_stylebase.scss +18 -0
  38. metadata +122 -0
@@ -0,0 +1,35 @@
1
+ /*--------------------------------
2
+ PROGRESSBAR
3
+ ---------------------------------*/
4
+ .progressbar__track {
5
+ position: relative;
6
+ background: #f4f4f4;
7
+ height: 3px;
8
+
9
+ span {
10
+ display: block;
11
+ position: absolute;
12
+ top: 0;
13
+ left: 0;
14
+ bottom: 0;
15
+ background: $darkBlue;
16
+ transition: width 0.3s;
17
+ }
18
+ }
19
+
20
+
21
+ .progressbar__num {
22
+ text-transform: uppercase;
23
+ font-size: 9px;
24
+ letter-spacing: 2px;
25
+ font-weight: 500;
26
+ text-align: center;
27
+ color: $lightBlue;
28
+ padding-top: 5px;
29
+ padding-bottom: 5px;
30
+
31
+ span {
32
+ color: $darkBlue;
33
+ font-weight: 600;
34
+ }
35
+ }
@@ -0,0 +1,58 @@
1
+ .quiz__header h3 {
2
+ font-weight: lighter;
3
+ color: $blue;
4
+ font-size: 33px;
5
+ }
6
+
7
+ .quiz__options {
8
+ .option {
9
+ padding-top: 1em;
10
+ padding-bottom: 1em;
11
+ border: 1px solid $lightBlue;
12
+ background-color: $white;
13
+ width: 100%;
14
+ border-radius: 5px;
15
+ margin-bottom: 2em;
16
+ text-align: left;
17
+ padding-left: 1em;
18
+
19
+ &:hover {
20
+ color: $white;
21
+ background-color: $lightBlue;
22
+ cursor: pointer;
23
+
24
+ .option__letter {
25
+ background-color: $white;
26
+ color: $lightBlue;
27
+ }
28
+ }
29
+
30
+ span {
31
+ font-size: 24px;
32
+ }
33
+
34
+ .option__letter {
35
+ color: $white;
36
+ background-color: $lightBlue;
37
+ border-radius: 100%;
38
+ padding-left: 0.5em;
39
+ padding-right: 0.5em;
40
+ padding-top: 0.25em;
41
+ padding-bottom: 0.25em;
42
+ margin-right: 1em;
43
+ }
44
+
45
+ .option__response {
46
+ display: none;
47
+ text-align: center;
48
+ margin-top: 2em;
49
+ font-size: 16px;
50
+ margin-right: 2em;
51
+ margin-left: 1em;
52
+ }
53
+ }
54
+ }
55
+
56
+ .advance_button, .question__2 {
57
+ display: none;
58
+ }
@@ -0,0 +1,37 @@
1
+ .skills {
2
+ display: flex;
3
+ flex-wrap: wrap;
4
+
5
+ .skill {
6
+ margin-left: 2%;
7
+ margin-bottom: 1em;
8
+ padding-top: 0.2em;
9
+ padding-bottom: 0.2em;
10
+ padding-left: 1em;
11
+ padding-right: 1em;
12
+ background-color: $white;
13
+ border-radius: 20px;
14
+
15
+ &.technical {
16
+ color: $orange;
17
+ border: 2px solid $orange;
18
+
19
+ &:hover {
20
+ color: $white;
21
+ background-color: $orange;
22
+ cursor: pointer;
23
+ }
24
+ }
25
+
26
+ &.non_technical {
27
+ color: $lightBlue;
28
+ border: 2px solid $lightBlue;
29
+
30
+ &:hover {
31
+ color: $white;
32
+ background-color: $lightBlue;
33
+ cursor: pointer;
34
+ }
35
+ }
36
+ }
37
+ }
@@ -0,0 +1,99 @@
1
+ .gpa__slider {
2
+ margin-top: 1em;
3
+ margin-bottom: 3em;
4
+
5
+ input[type=range] {
6
+ -webkit-appearance: none;
7
+ margin: 18px 0;
8
+ width: 100%;
9
+ }
10
+
11
+ input[type=range]:focus {
12
+ outline: none;
13
+ }
14
+
15
+ input[type=range]::-webkit-slider-runnable-track {
16
+ width: 100%;
17
+ height: 20px;
18
+ cursor: pointer;
19
+ animate: 0.2s;
20
+ background: linear-gradient(to right, $red , $yellow, $green);
21
+ border-radius: 5px;
22
+ }
23
+
24
+ input[type=range]::-webkit-slider-thumb {
25
+ box-shadow: 1px 1px 1px $lightGrey;
26
+ border: 1px solid $lightGrey;
27
+ height: 36px;
28
+ width: 16px;
29
+ border-radius: 3px;
30
+ background: #ffffff;
31
+ cursor: pointer;
32
+ -webkit-appearance: none;
33
+ margin-top: -14px;
34
+ }
35
+
36
+ input[type=range]:focus::-webkit-slider-runnable-track {
37
+ background: $lightBlue;
38
+ }
39
+
40
+ input[type=range]::-moz-range-thumb {
41
+ box-shadow: 1px 1px 1px $lightGrey;
42
+ border: 1px solid $lightGrey;
43
+ height: 36px;
44
+ width: 16px;
45
+ border-radius: 3px;
46
+ background: #ffffff;
47
+ cursor: pointer;
48
+ }
49
+
50
+ input[type=range]::-ms-track {
51
+ width: 100%;
52
+ height: 20px;
53
+ cursor: pointer;
54
+ animate: 0.2s;
55
+ background: linear-gradient(to right, $red , $yellow, $green);
56
+ border-radius: 5px;
57
+ }
58
+
59
+ input[type=range]::-ms-fill-lower {
60
+ background: #2a6495;
61
+ border: 0.2px solid #010101;
62
+ border-radius: 2.6px;
63
+ box-shadow: 1px 1px 1px $lightGrey;
64
+ }
65
+
66
+ input[type=range]::-ms-fill-upper {
67
+ background: $lightBlue;
68
+ border: 0.2px solid #010101;
69
+ border-radius: 2.6px;
70
+ box-shadow: 1px 1px 1px $lightGrey;
71
+ }
72
+
73
+ input[type=range]::-ms-thumb {
74
+ box-shadow: 1px 1px 1px $lightGrey;
75
+ border: 1px solid $lightGrey;
76
+ height: 36px;
77
+ width: 16px;
78
+ border-radius: 3px;
79
+ background: #ffffff;
80
+ cursor: pointer;
81
+ }
82
+
83
+ input[type=range]:focus::-ms-fill-lower {
84
+ background: $lightBlue;
85
+ }
86
+
87
+ input[type=range]:focus::-ms-fill-upper {
88
+ background: $lightBlue;
89
+ }
90
+ }
91
+
92
+ .gpa__header {
93
+ margin-top: 2em;
94
+
95
+ h2 {
96
+ font-weight: lighter;
97
+ font-size: 32px;
98
+ }
99
+ }
@@ -0,0 +1,35 @@
1
+ .statement__container {
2
+ position: absolute;
3
+ right: 0;
4
+ border: 1px solid $grey;
5
+ max-width: 33%;
6
+ width: 33%;
7
+ height: 100%;
8
+ padding: 3em;
9
+ border-radius: 5px;
10
+ background-color: $white;
11
+ text-align: center;
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+
16
+ .statement__save-text {
17
+ position: absolute;
18
+ top: 6%;
19
+ display: none;
20
+ color: $green;
21
+ }
22
+
23
+ textarea {
24
+ font-size: 13px;
25
+ border: none;
26
+ resize: none;
27
+ width: 100%;
28
+ height: 90%;
29
+ align-self: center;
30
+
31
+ &:focus {
32
+ outline: none;
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,138 @@
1
+ .checkbox-toggle {
2
+ display: flex;
3
+ min-height: 100%;
4
+ justify-content: center;
5
+ margin-top: 1em;
6
+ flex-direction: column;
7
+ font-family: sans-serif;
8
+
9
+ ul,
10
+ li {
11
+ list-style: none;
12
+ margin: 0;
13
+ padding: 0;
14
+ }
15
+
16
+ .tg-list {
17
+ text-align: center;
18
+ display: flex;
19
+ align-items: center;
20
+ }
21
+
22
+ .tg-list-item {
23
+ margin: 0 2em;
24
+ }
25
+
26
+ h2 {
27
+ color: #777;
28
+ }
29
+
30
+ h4 {
31
+ color: #999;
32
+ }
33
+
34
+ .tgl {
35
+ display: none;
36
+
37
+ // add default box-sizing for this scope
38
+ &,
39
+ &:after,
40
+ &:before,
41
+ & *,
42
+ & *:after,
43
+ & *:before,
44
+ & + .tgl-btn {
45
+ box-sizing: border-box;
46
+ &::selection {
47
+ background: none;
48
+ }
49
+ }
50
+
51
+ + .tgl-btn {
52
+ outline: 0;
53
+ display: block;
54
+ width: 100%;
55
+ height: 2em;
56
+ position: relative;
57
+ cursor: pointer;
58
+ user-select: none;
59
+ &:after,
60
+ &:before {
61
+ position: relative;
62
+ display: block;
63
+ content: "";
64
+ width: 50%;
65
+ height: 100%;
66
+ }
67
+
68
+ &:after {
69
+ left: 0;
70
+ }
71
+
72
+ &:before {
73
+ display: none;
74
+ }
75
+ }
76
+
77
+ &:checked + .tgl-btn:after {
78
+ left: 50%;
79
+ }
80
+ }
81
+
82
+ // themes
83
+ .tgl-skewed {
84
+ + .tgl-btn {
85
+ border-radius: 5px;
86
+ overflow: hidden;
87
+ backface-visibility: hidden;
88
+ transition: all .2s ease;
89
+ font-family: sans-serif;
90
+ background: $lightBlue;
91
+
92
+ &:after,
93
+ &:before {
94
+ display: inline-block;
95
+ transition: all .2s ease;
96
+ width: 100%;
97
+ text-align: center;
98
+ position: absolute;
99
+ line-height: 2em;
100
+ font-weight: bold;
101
+ color: #fff;
102
+ text-shadow: 0 1px 0 rgba(0,0,0,.4);
103
+ }
104
+
105
+ &:after {
106
+ left: 100%;
107
+ content: attr(data-tg-on);
108
+ }
109
+
110
+ &:before {
111
+ left: 0;
112
+ content: attr(data-tg-off);
113
+ }
114
+
115
+ &:active {
116
+ background: $blue;
117
+ &:before {
118
+ left: -10%;
119
+ }
120
+ }
121
+ }
122
+
123
+ &:checked + .tgl-btn {
124
+ background: $orange;
125
+ &:before {
126
+ left: -100%;
127
+ }
128
+
129
+ &:after {
130
+ left: 0;
131
+ }
132
+
133
+ &:active:after {
134
+ left: 10%;
135
+ }
136
+ }
137
+ }
138
+ }
@@ -0,0 +1,57 @@
1
+ /*--------------------------------
2
+ TOPBAR
3
+ ---------------------------------*/
4
+ .topbar {
5
+ background: rgb(50,218,255);
6
+ background: -moz-linear-gradient(left, rgba(50,218,255,1) 0%, rgba(83,141,255,1) 100%);
7
+ background: -webkit-linear-gradient(left, rgba(50,218,255,1) 0%,rgba(83,141,255,1) 100%);
8
+ background: linear-gradient(to right, rgba(50,218,255,1) 0%,rgba(83,141,255,1) 100%);
9
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#32daff', endColorstr='#538dff',GradientType=1 );
10
+ min-height: 65px;
11
+ display: flex;
12
+ justify-content: space-between;
13
+ align-items: center;
14
+ padding: 0 15px;
15
+ position: relative;
16
+ }
17
+
18
+ .back {
19
+ color: #fff;
20
+ font-size: 9px;
21
+ text-transform: uppercase;
22
+ letter-spacing: 2px;
23
+ font-weight: 500;
24
+
25
+ img {
26
+ vertical-align: middle;
27
+ margin-right: 10px;
28
+ }
29
+ }
30
+
31
+ .help {
32
+ color: #fff;
33
+ font-size: 9px;
34
+ text-transform: uppercase;
35
+ letter-spacing: 2px;
36
+ font-weight: 500;
37
+
38
+ img {
39
+ vertical-align: middle;
40
+ margin-left: 10px;
41
+ height: 30px;
42
+ }
43
+ }
44
+
45
+ .logo {
46
+ position: absolute;
47
+ left: 50%;
48
+ top: 50%;
49
+ margin-left: -22px;
50
+ margin-top: -21px;
51
+ }
52
+
53
+ @media(min-width: 640px) {
54
+ .topbar {
55
+ padding: 0 30px;
56
+ }
57
+ }