Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
ef881a07
Commit
ef881a07
authored
Jun 24, 2016
by
Matthew Taylor
Committed by
GitHub
Jun 24, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #610 from mewtaylor/cleanup/teacher-styling
styling cleanup for teacher registration
parents
49edaf02
97516b1e
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
190 additions
and
193 deletions
+190
-193
src/components/deck/deck.scss
src/components/deck/deck.scss
+94
-97
src/components/forms/charcount.scss
src/components/forms/charcount.scss
+6
-8
src/components/forms/checkbox-group.scss
src/components/forms/checkbox-group.scss
+6
-4
src/components/forms/checkbox.scss
src/components/forms/checkbox.scss
+27
-27
src/components/forms/radio-group.scss
src/components/forms/radio-group.scss
+28
-28
src/components/forms/select.scss
src/components/forms/select.scss
+25
-25
src/components/registration/steps.jsx
src/components/registration/steps.jsx
+4
-4
No files found.
src/components/deck/deck.scss
View file @
ef881a07
...
@@ -14,141 +14,138 @@
...
@@ -14,141 +14,138 @@
.step-navigation
{
.step-navigation
{
margin-top
:
2rem
;
margin-top
:
2rem
;
text-align
:
center
;
}
}
}
.slide
{
.slide
{
max-width
:
28
.75rem
;
max-width
:
28
.75rem
;
h2
,
h2
,
p
{
.description
{
text-align
:
center
;
text-align
:
center
;
color
:
$type-white
;
color
:
$type-white
;
}
}
.description
{
.description
{
margin-top
:
0
;
margin-top
:
0
;
margin-bottom
:
2rem
;
margin-bottom
:
2rem
;
}
}
}
}
.card
{
margin
:
0
auto
;
width
:
23
.75rem
;
&
,
.card
{
h2
,
margin
:
0
auto
;
p
{
width
:
23
.75rem
;
color
:
$type-gray
;
}
}
}
.step-navigation
{
text-align
:
center
;
}
.form
{
.form
{
padding
:
3rem
4rem
;
padding
:
3rem
4rem
;
.form-group
{
.form-group
{
margin-bottom
:
1
.2rem
;
margin-bottom
:
1
.2rem
;
&
.has-error
{
&
.has-error
{
.input
{
.input
{
border
:
1px
solid
$ui-orange
;
border
:
1px
solid
$ui-orange
;
}
}
}
}
}
}
.button
{
.button
{
margin
:
0
0
-3rem
-4rem
;
margin
:
0
0
-3rem
-4rem
;
border-radius
:
.5rem
;
border-radius
:
.5rem
;
box-shadow
:
none
;
width
:
23
.75rem
;
height
:
4rem
;
&
.card-button
{
display
:
block
;
border-top-left-radius
:
0
;
border-top-right-radius
:
0
;
background-color
:
$ui-aqua
;
}
&
:hover
{
box-shadow
:
none
;
box-shadow
:
none
;
width
:
23
.75rem
;
height
:
4rem
;
&
.card-button
{
display
:
block
;
border-top-left-radius
:
0
;
border-top-right-radius
:
0
;
background-color
:
$ui-aqua
;
}
&
:hover
{
box-shadow
:
none
;
}
}
}
}
}
}
.input
{
.input
{
width
:
$cols5
;
width
:
$cols5
;
}
}
.help-block
{
.help-block
{
$arrow-border-width
:
1rem
;
$arrow-border-width
:
1rem
;
display
:
block
;
position
:
absolute
;
margin-left
:
$arrow-border-width
;
border
:
1px
solid
$active-gray
;
border-radius
:
5px
;
background-color
:
$ui-orange
;
padding
:
1rem
;
max-width
:
18
.75rem
;
min-height
:
1rem
;
max-height
:
3rem
;
overflow
:
visible
;
color
:
$type-white
;
&
:before
{
display
:
block
;
display
:
block
;
position
:
absolute
;
position
:
absolute
;
top
:
1rem
;
margin-left
:
$arrow-border-width
;
left
:
-
$arrow-border-width
/
2
;
border
:
1px
solid
$active-gray
;
border-radius
:
5px
;
background-color
:
$ui-orange
;
padding
:
1rem
;
max-width
:
18
.75rem
;
min-height
:
1rem
;
max-height
:
3rem
;
overflow
:
visible
;
color
:
$type-white
;
transform
:
rotate
(
45deg
);
&
:before
{
display
:
block
;
position
:
absolute
;
top
:
1rem
;
left
:
-
$arrow-border-width
/
2
;
border-bottom
:
1px
solid
$active-gray
;
transform
:
rotate
(
45deg
);
border-left
:
1px
solid
$active-gray
;
border-radius
:
5px
;
background-color
:
$ui-orange
;
border-bottom
:
1px
solid
$active-gray
;
width
:
$arrow-border-width
;
border-left
:
1px
solid
$active-gray
;
height
:
$arrow-border-width
;
border-radius
:
5px
;
background-color
:
$ui-orange
;
width
:
$arrow-border-width
;
height
:
$arrow-border-width
;
content
:
""
;
content
:
""
;
}
}
}
}
}
@media
only
screen
and
(
max-width
:
$mobile
-
1
)
{
@media
only
screen
and
(
max-width
:
$mobile
-
1
)
{
.card
{
.deck
{
width
:
22
.5rem
;
.card
{
}
.form
{
text-align
:
left
;
.button
{
width
:
22
.5rem
;
width
:
22
.5rem
;
}
}
.form
{
text-align
:
left
;
.button
{
width
:
22
.5rem
;
}
}
}
}
}
}
@media
only
screen
and
(
max-width
:
$tablet
-
1
)
{
@media
only
screen
and
(
max-width
:
$tablet
-
1
)
{
.input
{
.deck
{
width
:
90%
;
.input
{
width
:
90%
;
}
}
}
}
}
@media
only
screen
and
(
max-width
:
$desktop
-
1
)
{
@media
only
screen
and
(
max-width
:
$desktop
-
1
)
{
.help-block
{
.deck
{
position
:
relative
;
.help-block
{
transform
:
none
;
position
:
relative
;
margin
:
inherit
;
transform
:
none
;
width
:
100%
;
margin
:
inherit
;
height
:
inherit
;
width
:
100%
;
height
:
inherit
;
&
:before
{
display
:
none
;
&
:before
{
display
:
none
;
}
}
}
}
}
}
}
src/components/forms/charcount.scss
View file @
ef881a07
@import
"../../colors"
;
@import
"../../colors"
;
p
{
.char-count
{
&
.char-count
{
letter-spacing
:
1px
;
letter-spacing
:
1px
;
color
:
lighten
(
$type-gray
,
30%
);
color
:
lighten
(
$type-gray
,
30%
);
font-weight
:
500
;
font-weight
:
500
;
&
.overmax
{
&
.overmax
{
color
:
$ui-orange
;
color
:
$ui-orange
;
}
}
}
}
}
src/components/forms/checkbox-group.scss
View file @
ef881a07
.checkbox-group
{
.checkbox-group
{
.col-sm-9
{
.row
{
flex-flow
:
column
wrap
;
.col-sm-9
{
flex-flow
:
column
wrap
;
.checkbox
{
.checkbox
{
margin
:
.5rem
0
;
margin
:
.5rem
0
;
}
}
}
}
}
}
}
src/components/forms/checkbox.scss
View file @
ef881a07
...
@@ -6,37 +6,37 @@
...
@@ -6,37 +6,37 @@
label
{
label
{
font-weight
:
300
;
font-weight
:
300
;
}
}
}
}
input
{
input
{
&
[
type
=
checkbox
]
{
&
[
type
=
checkbox
]
{
display
:
block
;
display
:
block
;
float
:
left
;
float
:
left
;
margin-right
:
1rem
;
margin-right
:
1rem
;
border
:
1px
solid
$active-gray
;
border
:
1px
solid
$active-gray
;
border-radius
:
3px
;
border-radius
:
3px
;
width
:
1
.25rem
;
width
:
1
.25rem
;
height
:
1
.25rem
;
height
:
1
.25rem
;
appearance
:
none
;
appearance
:
none
;
&
:checked
,
&
:checked
,
&
:focus
{
&
:focus
{
outline
:
none
;
outline
:
none
;
}
}
&
:checked
{
&
:checked
{
transition
:
all
.5s
ease
;
transition
:
all
.5s
ease
;
box-shadow
:
0
0
0
.25rem
$active-gray
;
box-shadow
:
0
0
0
.25rem
$active-gray
;
background-color
:
$ui-blue
;
background-color
:
$ui-blue
;
text-align
:
center
;
text-align
:
center
;
text-indent
:
.125rem
;
text-indent
:
.125rem
;
line-height
:
1
.25rem
;
line-height
:
1
.25rem
;
font-size
:
.75rem
;
font-size
:
.75rem
;
&
:after
{
&
:after
{
color
:
$type-white
;
color
:
$type-white
;
content
:
"\2714"
;
content
:
"\2714"
;
}
}
}
}
}
}
}
}
...
...
src/components/forms/radio-group.scss
View file @
ef881a07
...
@@ -6,39 +6,39 @@
...
@@ -6,39 +6,39 @@
font-weight
:
300
;
font-weight
:
300
;
}
}
}
}
}
.col-sm-9
{
.col-sm-9
{
display
:
flex
;
display
:
flex
;
flex-flow
:
row
wrap
;
flex-flow
:
row
wrap
;
input
{
input
{
&
[
type
=
"radio"
]
{
&
[
type
=
"radio"
]
{
margin-top
:
1px
;
margin-top
:
1px
;
border
:
1px
solid
$active-gray
;
border
:
1px
solid
$active-gray
;
border-radius
:
50%
;
border-radius
:
50%
;
width
:
.875rem
;
width
:
.875rem
;
height
:
.875rem
;
height
:
.875rem
;
appearance
:
none
;
appearance
:
none
;
&
:checked
,
&
:checked
,
&
:focus
{
&
:focus
{
outline
:
none
;
outline
:
none
;
}
}
&
:checked
{
&
:checked
{
transition
:
all
.25s
ease
;
transition
:
all
.25s
ease
;
box-shadow
:
0
0
0
.25rem
$active-gray
;
box-shadow
:
0
0
0
.25rem
$active-gray
;
background-color
:
$ui-blue
;
background-color
:
$ui-blue
;
&
:after
{
&
:after
{
display
:
block
;
display
:
block
;
transform
:
translate
(
.25rem
,
.25rem
);
transform
:
translate
(
.25rem
,
.25rem
);
border-radius
:
50%
;
border-radius
:
50%
;
background-color
:
$ui-white
;
background-color
:
$ui-white
;
width
:
.25rem
;
width
:
.25rem
;
height
:
.25rem
;
height
:
.25rem
;
content
:
""
;
content
:
""
;
}
}
}
}
}
}
}
...
...
src/components/forms/select.scss
View file @
ef881a07
...
@@ -5,34 +5,34 @@
...
@@ -5,34 +5,34 @@
label
{
label
{
font-weight
:
500
;
font-weight
:
500
;
}
}
}
select
{
transition
:
all
.5s
ease
;
margin
:
.75rem
0
;
border
:
1px
solid
$active-gray
;
border-radius
:
5px
;
background
:
$ui-light-gray
url("../../../static/svgs/forms/carot.svg")
no-repeat
right
center
;
padding-right
:
4rem
;
width
:
100%
;
height
:
3rem
;
text-indent
:
1rem
;
font-size
:
.875rem
;
appearance
:
none
;
&
:focus
{
select
{
transition
:
all
.5s
ease
;
transition
:
all
.5s
ease
;
outline
:
none
;
margin
:
.75rem
0
;
border
:
1px
solid
$ui-blue
;
border
:
1px
solid
$active-gray
;
}
border-radius
:
5px
;
background
:
$ui-light-gray
url("../../../static/svgs/forms/carot.svg")
no-repeat
right
center
;
padding-right
:
4rem
;
width
:
100%
;
height
:
3rem
;
text-indent
:
1rem
;
font-size
:
.875rem
;
appearance
:
none
;
&
:focus
,
&
:focus
{
&
:hover
{
transition
:
all
.5s
ease
;
background
:
$ui-light-gray
url("../../../static/svgs/forms/carot-hover.svg")
no-repeat
right
center
;
outline
:
none
;
}
border
:
1px
solid
$ui-blue
;
}
>
option
{
&
:focus
,
background-color
:
$ui-white
;
&
:hover
{
width
:
100%
;
background
:
$ui-light-gray
url("../../../static/svgs/forms/carot-hover.svg")
no-repeat
right
center
;
}
>
option
{
background-color
:
$ui-white
;
width
:
100%
;
}
}
}
}
}
src/components/registration/steps.jsx
View file @
ef881a07
...
@@ -291,7 +291,7 @@ module.exports = {
...
@@ -291,7 +291,7 @@ module.exports = {
<
h2
>
<
h2
>
<
intl
.
FormattedMessage
id=
"teacherRegistration.phoneStepTitle"
/>
<
intl
.
FormattedMessage
id=
"teacherRegistration.phoneStepTitle"
/>
</
h2
>
</
h2
>
<
p
>
<
p
className=
"description"
>
<
intl
.
FormattedMessage
id=
"teacherRegistration.phoneStepDescription"
/>
<
intl
.
FormattedMessage
id=
"teacherRegistration.phoneStepDescription"
/>
<
Tooltip
title=
{
'
?
'
}
<
Tooltip
title=
{
'
?
'
}
tipContent=
{
formatMessage
({
id
:
'
teacherRegistration.nameStepTooltip
'
})
}
/>
tipContent=
{
formatMessage
({
id
:
'
teacherRegistration.nameStepTooltip
'
})
}
/>
...
@@ -359,7 +359,7 @@ module.exports = {
...
@@ -359,7 +359,7 @@ module.exports = {
<
h2
>
<
h2
>
<
intl
.
FormattedMessage
id=
"teacherRegistration.orgStepTitle"
/>
<
intl
.
FormattedMessage
id=
"teacherRegistration.orgStepTitle"
/>
</
h2
>
</
h2
>
<
p
>
<
p
className=
"description"
>
<
intl
.
FormattedMessage
id=
"teacherRegistration.orgStepDescription"
/>
<
intl
.
FormattedMessage
id=
"teacherRegistration.orgStepDescription"
/>
<
Tooltip
title=
{
'
?
'
}
<
Tooltip
title=
{
'
?
'
}
tipContent=
{
formatMessage
({
id
:
'
teacherRegistration.nameStepTooltip
'
})
}
/>
tipContent=
{
formatMessage
({
id
:
'
teacherRegistration.nameStepTooltip
'
})
}
/>
...
@@ -448,7 +448,7 @@ module.exports = {
...
@@ -448,7 +448,7 @@ module.exports = {
return
this
.
props
.
onNextStep
(
formData
);
return
this
.
props
.
onNextStep
(
formData
);
}
else
{
}
else
{
return
invalidate
({
return
invalidate
({
'
all
'
:
<
FormattedMessage
id
=
"
teacherRegistration.addressValidationError
"
/>
'
all
'
:
<
intl
.
FormattedMessage
id
=
"
teacherRegistration.addressValidationError
"
/>
});
});
}
}
}.
bind
(
this
));
}.
bind
(
this
));
...
@@ -693,7 +693,7 @@ module.exports = {
...
@@ -693,7 +693,7 @@ module.exports = {
<
Slide
className=
"error-step"
>
<
Slide
className=
"error-step"
>
<
h2
>
Something went wrong
</
h2
>
<
h2
>
Something went wrong
</
h2
>
<
Card
>
<
Card
>
<
h
2
>
There was an error while processing your registration
</
h2
>
<
h
4
>
There was an error while processing your registration
</
h4
>
<
p
>
<
p
>
{
this
.
props
.
registrationError
}
{
this
.
props
.
registrationError
}
</
p
>
</
p
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment