upkey-track_stylebase 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +43 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/upkey/track_stylebase.rb +7 -0
- data/lib/upkey/track_stylebase/engine.rb +6 -0
- data/lib/upkey/track_stylebase/version.rb +5 -0
- data/upkey-track_stylebase.gemspec +27 -0
- data/vendor/assets/stylesheets/base/_common.scss +33 -0
- data/vendor/assets/stylesheets/base/_layout.scss +12 -0
- data/vendor/assets/stylesheets/base/_site.scss +27 -0
- data/vendor/assets/stylesheets/components/_buttons.scss +55 -0
- data/vendor/assets/stylesheets/components/_chat.scss +102 -0
- data/vendor/assets/stylesheets/components/_course.scss +113 -0
- data/vendor/assets/stylesheets/components/_date.scss +36 -0
- data/vendor/assets/stylesheets/components/_form.scss +122 -0
- data/vendor/assets/stylesheets/components/_gradepicker.scss +78 -0
- data/vendor/assets/stylesheets/components/_illustration.scss +41 -0
- data/vendor/assets/stylesheets/components/_natural_language.scss +110 -0
- data/vendor/assets/stylesheets/components/_progressbar.scss +35 -0
- data/vendor/assets/stylesheets/components/_quiz.scss +58 -0
- data/vendor/assets/stylesheets/components/_skills.scss +37 -0
- data/vendor/assets/stylesheets/components/_slider.scss +99 -0
- data/vendor/assets/stylesheets/components/_statement.scss +35 -0
- data/vendor/assets/stylesheets/components/_toggle.scss +138 -0
- data/vendor/assets/stylesheets/components/_topbar.scss +57 -0
- data/vendor/assets/stylesheets/components/_tutorial.scss +57 -0
- data/vendor/assets/stylesheets/components/_types.scss +50 -0
- data/vendor/assets/stylesheets/helpers/_variables.scss +11 -0
- data/vendor/assets/stylesheets/upkey_track_stylebase.scss +18 -0
- metadata +122 -0
@@ -0,0 +1,113 @@
|
|
1
|
+
/*--------------------------------
|
2
|
+
course
|
3
|
+
---------------------------------*/
|
4
|
+
.layout-default {
|
5
|
+
text-align: center;
|
6
|
+
}
|
7
|
+
|
8
|
+
.course {
|
9
|
+
padding: 50px 0 80px;
|
10
|
+
color: $blue;
|
11
|
+
position: relative;
|
12
|
+
}
|
13
|
+
|
14
|
+
.course__header,
|
15
|
+
.course__header h1,
|
16
|
+
.course__header h2,
|
17
|
+
.course__header h3,
|
18
|
+
.course__header h4 {
|
19
|
+
font-size: 30px;
|
20
|
+
font-weight: 500;
|
21
|
+
color: $blue;
|
22
|
+
|
23
|
+
br {
|
24
|
+
display: none;
|
25
|
+
}
|
26
|
+
|
27
|
+
@media(min-width: 640px) {
|
28
|
+
font-size: 44px;
|
29
|
+
|
30
|
+
br {
|
31
|
+
display: block;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
.course__content {
|
37
|
+
position: relative;
|
38
|
+
margin-bottom: 30px;
|
39
|
+
|
40
|
+
@media(min-width: 640px) {
|
41
|
+
min-height: 200px;
|
42
|
+
margin-bottom: 50px;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
.course__central {
|
47
|
+
margin-top: 4em;
|
48
|
+
|
49
|
+
h2 {
|
50
|
+
font-weight: lighter;
|
51
|
+
font-size: 40px;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
.course__footer {
|
56
|
+
display: flex;
|
57
|
+
flex-direction: column;
|
58
|
+
justify-content: center;
|
59
|
+
align-items: center;
|
60
|
+
|
61
|
+
.button {
|
62
|
+
margin-bottom: 5px;
|
63
|
+
}
|
64
|
+
|
65
|
+
@media(min-width: 640px) {
|
66
|
+
flex-direction: row;
|
67
|
+
margin-left: -10px;
|
68
|
+
|
69
|
+
.button {
|
70
|
+
margin: 0 0 0 10px;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
.course__media {
|
76
|
+
display: flex;
|
77
|
+
align-items: center;
|
78
|
+
justify-content: center;
|
79
|
+
|
80
|
+
&.left {
|
81
|
+
justify-content: flex-start;
|
82
|
+
}
|
83
|
+
|
84
|
+
&.right {
|
85
|
+
justify-content: flex-end;
|
86
|
+
}
|
87
|
+
|
88
|
+
@media(min-width: 640px) {
|
89
|
+
position: absolute;
|
90
|
+
top: 0;
|
91
|
+
right: 0;
|
92
|
+
bottom: 0;
|
93
|
+
left: 0;
|
94
|
+
z-index: -1;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
|
99
|
+
.layout-content-left {
|
100
|
+
|
101
|
+
.course__footer {
|
102
|
+
justify-content: flex-start;
|
103
|
+
align-items: flex-start;
|
104
|
+
}
|
105
|
+
|
106
|
+
.course__inner {
|
107
|
+
max-width: 610px;
|
108
|
+
}
|
109
|
+
|
110
|
+
.course__content {
|
111
|
+
position: static;
|
112
|
+
}
|
113
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
.date {
|
2
|
+
.date__selects {
|
3
|
+
display: flex;
|
4
|
+
|
5
|
+
.month {
|
6
|
+
margin-right: 5%;
|
7
|
+
}
|
8
|
+
|
9
|
+
.prompt {
|
10
|
+
width: 33%;
|
11
|
+
}
|
12
|
+
|
13
|
+
select {
|
14
|
+
font-size: 20px;
|
15
|
+
border: none;
|
16
|
+
-webkit-appearance: none;
|
17
|
+
background-image: none;
|
18
|
+
width: 100%;
|
19
|
+
border-bottom: 1px dashed $lightGrey;
|
20
|
+
|
21
|
+
&:focus {
|
22
|
+
outline: none;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
.date__confirmation {
|
28
|
+
margin-top: 3em;
|
29
|
+
display: none;
|
30
|
+
|
31
|
+
h2 {
|
32
|
+
font-weight: lighter;
|
33
|
+
font-size: 28px;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
@@ -0,0 +1,122 @@
|
|
1
|
+
.form__footnote {
|
2
|
+
color: $lightGrey;
|
3
|
+
margin-bottom: 30px;
|
4
|
+
}
|
5
|
+
|
6
|
+
.form__items {
|
7
|
+
display: flex;
|
8
|
+
flex-wrap: wrap;
|
9
|
+
}
|
10
|
+
|
11
|
+
.form__item {
|
12
|
+
margin-bottom: 45px;
|
13
|
+
|
14
|
+
&:nth-last-child(1) {
|
15
|
+
margin-bottom: 0;
|
16
|
+
}
|
17
|
+
|
18
|
+
@media(min-width: 640px) {
|
19
|
+
width: 50%;
|
20
|
+
|
21
|
+
&:nth-last-child(2) {
|
22
|
+
margin-bottom: 0;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
textarea {
|
27
|
+
width: 140%;
|
28
|
+
border: 1px solid $grey;
|
29
|
+
padding: 3px;
|
30
|
+
resize: none;
|
31
|
+
border-radius: 10px;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
.form__label {
|
36
|
+
display: block;
|
37
|
+
text-transform: uppercase;
|
38
|
+
font-size: 12px;
|
39
|
+
color: $grey;
|
40
|
+
letter-spacing: 2px;
|
41
|
+
margin-bottom: 15px;
|
42
|
+
}
|
43
|
+
|
44
|
+
.form__input {
|
45
|
+
padding: 0;
|
46
|
+
background: none;
|
47
|
+
border: none;
|
48
|
+
color: $grey;
|
49
|
+
font-size: 18px;
|
50
|
+
|
51
|
+
&:focus {
|
52
|
+
outline: none;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
.animated-form__wrapper {
|
57
|
+
.help:after {
|
58
|
+
content: '?';
|
59
|
+
font-weight: bold;
|
60
|
+
color: $white;
|
61
|
+
font-size: 12px;
|
62
|
+
background-color: $lightGrey;
|
63
|
+
padding-left: 5px;
|
64
|
+
padding-right: 4px;
|
65
|
+
padding-top: 3px;
|
66
|
+
padding-bottom: 2px;
|
67
|
+
border-radius: 100%;
|
68
|
+
|
69
|
+
&:hover {
|
70
|
+
cursor: pointer;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
.form__row {
|
75
|
+
width: 100%;
|
76
|
+
display: flex;
|
77
|
+
max-height: 140px;
|
78
|
+
overflow: hidden;
|
79
|
+
|
80
|
+
.form__item {
|
81
|
+
margin-top: 2em;
|
82
|
+
|
83
|
+
input {
|
84
|
+
width: 90%;
|
85
|
+
text-align: center;
|
86
|
+
border-bottom: 1px dashed $lightGrey;
|
87
|
+
|
88
|
+
&.big {
|
89
|
+
font-size: 24px;
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
.failed {
|
94
|
+
border-bottom: 1px dashed $red;
|
95
|
+
}
|
96
|
+
|
97
|
+
.error_message {
|
98
|
+
color: $red;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
103
|
+
|
104
|
+
.form-input__group {
|
105
|
+
margin-bottom: 2em;
|
106
|
+
margin-left: 1em;
|
107
|
+
|
108
|
+
.form-input__prompt h3 {
|
109
|
+
font-weight: lighter;
|
110
|
+
font-size: 24px;
|
111
|
+
margin-bottom: 0;
|
112
|
+
}
|
113
|
+
|
114
|
+
.form-input__example p {
|
115
|
+
color: $lightGrey;
|
116
|
+
margin-top: 0.25em;
|
117
|
+
|
118
|
+
&:before {
|
119
|
+
content: 'ex: '
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
@@ -0,0 +1,78 @@
|
|
1
|
+
.grade_selector {
|
2
|
+
width: 100%;
|
3
|
+
margin-top: 4em;
|
4
|
+
|
5
|
+
.grade_selector__menu {
|
6
|
+
min-width: 100%;
|
7
|
+
display: flex;
|
8
|
+
|
9
|
+
.menu_option {
|
10
|
+
background-color: lighten($lightGrey, 15%);
|
11
|
+
padding-top: 1em;
|
12
|
+
padding-bottom: 1em;
|
13
|
+
min-width: 20%;
|
14
|
+
|
15
|
+
&:first-child {
|
16
|
+
border-radius: 15px 0 0 15px;
|
17
|
+
}
|
18
|
+
|
19
|
+
&:last-child {
|
20
|
+
border-radius: 0 15px 15px 0;
|
21
|
+
}
|
22
|
+
|
23
|
+
&:hover {
|
24
|
+
cursor: pointer;
|
25
|
+
}
|
26
|
+
|
27
|
+
&.f:hover, &.f.active {
|
28
|
+
background-color: $red;
|
29
|
+
}
|
30
|
+
|
31
|
+
&.d:hover, &.d.active {
|
32
|
+
background-color: $orange;
|
33
|
+
}
|
34
|
+
|
35
|
+
&.c:hover, &.c.active {
|
36
|
+
background-color: $yellow;
|
37
|
+
}
|
38
|
+
|
39
|
+
&.b:hover, &.b.active {
|
40
|
+
background-color: $green;
|
41
|
+
}
|
42
|
+
|
43
|
+
&.a:hover, &.a.active {
|
44
|
+
background-color: darken($green, 20%);
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
.grade_selector__labels {
|
50
|
+
display: flex;
|
51
|
+
|
52
|
+
.label {
|
53
|
+
margin-left: 9.5%;
|
54
|
+
margin-right: 9.5%;
|
55
|
+
font-size: 22px;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
.grade_display {
|
61
|
+
.grade_display__selected {
|
62
|
+
margin-top: 2em;
|
63
|
+
|
64
|
+
h3 {
|
65
|
+
font-size: 36px;
|
66
|
+
font-weight: normal;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
.grade_display__response {
|
71
|
+
font-size: 24px;
|
72
|
+
font-weight: lighter;
|
73
|
+
|
74
|
+
.hidden {
|
75
|
+
display: none;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
.illustrations {
|
2
|
+
max-width: 760px;
|
3
|
+
margin: 40px auto 0;
|
4
|
+
|
5
|
+
@media(min-width: 740px) {
|
6
|
+
display: flex;
|
7
|
+
align-items: center;
|
8
|
+
justify-content: space-between;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
|
12
|
+
.illustration {
|
13
|
+
width: 100%;
|
14
|
+
max-width: 265px;
|
15
|
+
margin: 0 auto 30px;
|
16
|
+
box-shadow: 0 0 15px rgba(0,0,0,0.2);
|
17
|
+
border-radius: 5px;
|
18
|
+
overflow: hidden;
|
19
|
+
|
20
|
+
.button {
|
21
|
+
border-radius: 0;
|
22
|
+
}
|
23
|
+
|
24
|
+
@media(min-width: 740px) {
|
25
|
+
margin: 0 0 30px;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
.illustration__media {
|
30
|
+
height: 300px;
|
31
|
+
overflow: hidden;
|
32
|
+
padding: 15px;
|
33
|
+
display: flex;
|
34
|
+
align-items: center;
|
35
|
+
justify-content: center;
|
36
|
+
|
37
|
+
img {
|
38
|
+
max-width: 100%;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
@@ -0,0 +1,110 @@
|
|
1
|
+
.natural_language__form {
|
2
|
+
.natural_language__header {
|
3
|
+
display: flex;
|
4
|
+
margin-bottom: 0;
|
5
|
+
|
6
|
+
h2 {
|
7
|
+
width: 75%;
|
8
|
+
font-weight: normal;
|
9
|
+
margin-bottom: 0;
|
10
|
+
text-align: left;
|
11
|
+
}
|
12
|
+
|
13
|
+
.button {
|
14
|
+
margin-bottom: 0;
|
15
|
+
border-radius: 5px 5px 0 0;
|
16
|
+
}
|
17
|
+
|
18
|
+
.natural_language__reset .button {
|
19
|
+
background-color: $lightBlue;
|
20
|
+
}
|
21
|
+
|
22
|
+
.natural_language__tutorial .button {
|
23
|
+
background-color: $green;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
.row {
|
28
|
+
margin-bottom: 2em;
|
29
|
+
|
30
|
+
&.button_row {
|
31
|
+
margin-bottom: 1em;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
.natural_language__box {
|
36
|
+
border: 1px solid $lightGrey;
|
37
|
+
padding: 1.5em;
|
38
|
+
border-radius: 5px;
|
39
|
+
|
40
|
+
input,
|
41
|
+
textarea {
|
42
|
+
background: none;
|
43
|
+
border: none;
|
44
|
+
font-size: 28px;
|
45
|
+
border-bottom: 1px dashed $lightGrey;
|
46
|
+
|
47
|
+
&:focus {
|
48
|
+
outline: none;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
.button {
|
53
|
+
width: 33%;
|
54
|
+
background-color: $lightBlue;
|
55
|
+
}
|
56
|
+
|
57
|
+
.plus {
|
58
|
+
margin-left: 4.5%;
|
59
|
+
margin-right: 4.5%;
|
60
|
+
}
|
61
|
+
|
62
|
+
.col-30 {
|
63
|
+
width: 30%;
|
64
|
+
}
|
65
|
+
|
66
|
+
.col-50 {
|
67
|
+
width: 49%;
|
68
|
+
}
|
69
|
+
|
70
|
+
textarea {
|
71
|
+
width: 90%;
|
72
|
+
margin-right: 10%;
|
73
|
+
resize: none;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
.natural_language__entries {
|
78
|
+
font-size: 20px;
|
79
|
+
|
80
|
+
.natural_language__bullets {
|
81
|
+
text-align: left;
|
82
|
+
|
83
|
+
.entry {
|
84
|
+
margin-bottom: 1em;
|
85
|
+
|
86
|
+
.delete {
|
87
|
+
display: none;
|
88
|
+
border: 2px solid $lightGrey;
|
89
|
+
border-radius: 100%;
|
90
|
+
padding-left: 7px;
|
91
|
+
padding-right: 7px;
|
92
|
+
float: right;
|
93
|
+
margin-left: 10%;
|
94
|
+
font-weight: bolder;
|
95
|
+
background-color: $white;
|
96
|
+
|
97
|
+
&:hover {
|
98
|
+
color: $red;
|
99
|
+
border-color: $red;
|
100
|
+
cursor: pointer;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
.button {
|
107
|
+
width: 33%;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|