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 @@
.step-navigation
{
margin-top
:
2rem
;
text-align
:
center
;
}
}
.slide
{
max-width
:
28
.75rem
;
.slide
{
max-width
:
28
.75rem
;
h2
,
p
{
text-align
:
center
;
color
:
$type-white
;
}
h2
,
.description
{
text-align
:
center
;
color
:
$type-white
;
}
.description
{
margin-top
:
0
;
margin-bottom
:
2rem
;
.description
{
margin-top
:
0
;
margin-bottom
:
2rem
;
}
}
}
.card
{
margin
:
0
auto
;
width
:
23
.75rem
;
&
,
h2
,
p
{
color
:
$type-gray
;
.card
{
margin
:
0
auto
;
width
:
23
.75rem
;
}
}
.step-navigation
{
text-align
:
center
;
}
.form
{
padding
:
3rem
4rem
;
.form
{
padding
:
3rem
4rem
;
.form-group
{
margin-bottom
:
1
.2rem
;
.form-group
{
margin-bottom
:
1
.2rem
;
&
.has-error
{
.input
{
border
:
1px
solid
$ui-orange
;
&
.has-error
{
.input
{
border
:
1px
solid
$ui-orange
;
}
}
}
}
.button
{
margin
:
0
0
-3rem
-4rem
;
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
{
.button
{
margin
:
0
0
-3rem
-4rem
;
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
;
}
}
}
}
.input
{
width
:
$cols5
;
}
.input
{
width
:
$cols5
;
}
.help-block
{
$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
{
.help-block
{
$arrow-border-width
:
1rem
;
display
:
block
;
position
:
absolute
;
top
:
1rem
;
left
:
-
$arrow-border-width
/
2
;
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
;
transform
:
rotate
(
45deg
);
&
:before
{
display
:
block
;
position
:
absolute
;
top
:
1rem
;
left
:
-
$arrow-border-width
/
2
;
border-bottom
:
1px
solid
$active-gray
;
border-left
:
1px
solid
$active-gray
;
border-radius
:
5px
;
transform
:
rotate
(
45deg
);
background-color
:
$ui-orange
;
width
:
$arrow-border-width
;
height
:
$arrow-border-width
;
border-bottom
:
1px
solid
$active-gray
;
border-left
:
1px
solid
$active-gray
;
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
)
{
.card
{
width
:
22
.5rem
;
}
.form
{
text-align
:
left
;
.button
{
.deck
{
.card
{
width
:
22
.5rem
;
}
.form
{
text-align
:
left
;
.button
{
width
:
22
.5rem
;
}
}
}
}
@media
only
screen
and
(
max-width
:
$tablet
-
1
)
{
.input
{
width
:
90%
;
.deck
{
.input
{
width
:
90%
;
}
}
}
@media
only
screen
and
(
max-width
:
$desktop
-
1
)
{
.help-block
{
position
:
relative
;
transform
:
none
;
margin
:
inherit
;
width
:
100%
;
height
:
inherit
;
&
:before
{
display
:
none
;
.deck
{
.help-block
{
position
:
relative
;
transform
:
none
;
margin
:
inherit
;
width
:
100%
;
height
:
inherit
;
&
:before
{
display
:
none
;
}
}
}
}
src/components/forms/charcount.scss
View file @
ef881a07
@import
"../../colors"
;
p
{
&
.char-count
{
letter-spacing
:
1px
;
color
:
lighten
(
$type-gray
,
30%
);
font-weight
:
500
;
.char-count
{
letter-spacing
:
1px
;
color
:
lighten
(
$type-gray
,
30%
);
font-weight
:
500
;
&
.overmax
{
color
:
$ui-orange
;
}
&
.overmax
{
color
:
$ui-orange
;
}
}
src/components/forms/checkbox-group.scss
View file @
ef881a07
.checkbox-group
{
.col-sm-9
{
flex-flow
:
column
wrap
;
.row
{
.col-sm-9
{
flex-flow
:
column
wrap
;
.checkbox
{
margin
:
.5rem
0
;
.checkbox
{
margin
:
.5rem
0
;
}
}
}
}
src/components/forms/checkbox.scss
View file @
ef881a07
...
...
@@ -6,37 +6,37 @@
label
{
font-weight
:
300
;
}
}
}
input
{
&
[
type
=
checkbox
]
{
display
:
block
;
float
:
left
;
margin-right
:
1rem
;
border
:
1px
solid
$active-gray
;
border-radius
:
3px
;
width
:
1
.25rem
;
height
:
1
.25rem
;
appearance
:
none
;
input
{
&
[
type
=
checkbox
]
{
display
:
block
;
float
:
left
;
margin-right
:
1rem
;
border
:
1px
solid
$active-gray
;
border-radius
:
3px
;
width
:
1
.25rem
;
height
:
1
.25rem
;
appearance
:
none
;
&
:checked
,
&
:focus
{
outline
:
none
;
}
&
:checked
,
&
:focus
{
outline
:
none
;
}
&
:checked
{
transition
:
all
.5s
ease
;
box-shadow
:
0
0
0
.25rem
$active-gray
;
background-color
:
$ui-blue
;
text-align
:
center
;
text-indent
:
.125rem
;
line-height
:
1
.25rem
;
font-size
:
.75rem
;
&
:checked
{
transition
:
all
.5s
ease
;
box-shadow
:
0
0
0
.25rem
$active-gray
;
background-color
:
$ui-blue
;
text-align
:
center
;
text-indent
:
.125rem
;
line-height
:
1
.25rem
;
font-size
:
.75rem
;
&
:after
{
color
:
$type-white
;
content
:
"\2714"
;
&
:after
{
color
:
$type-white
;
content
:
"\2714"
;
}
}
}
}
}
...
...
src/components/forms/radio-group.scss
View file @
ef881a07
...
...
@@ -6,39 +6,39 @@
font-weight
:
300
;
}
}
}
.col-sm-9
{
display
:
flex
;
flex-flow
:
row
wrap
;
.col-sm-9
{
display
:
flex
;
flex-flow
:
row
wrap
;
input
{
&
[
type
=
"radio"
]
{
margin-top
:
1px
;
border
:
1px
solid
$active-gray
;
border-radius
:
50%
;
width
:
.875rem
;
height
:
.875rem
;
appearance
:
none
;
input
{
&
[
type
=
"radio"
]
{
margin-top
:
1px
;
border
:
1px
solid
$active-gray
;
border-radius
:
50%
;
width
:
.875rem
;
height
:
.875rem
;
appearance
:
none
;
&
:checked
,
&
:focus
{
outline
:
none
;
}
&
:checked
,
&
:focus
{
outline
:
none
;
}
&
:checked
{
transition
:
all
.25s
ease
;
box-shadow
:
0
0
0
.25rem
$active-gray
;
background-color
:
$ui-blue
;
&
:checked
{
transition
:
all
.25s
ease
;
box-shadow
:
0
0
0
.25rem
$active-gray
;
background-color
:
$ui-blue
;
&
:after
{
display
:
block
;
transform
:
translate
(
.25rem
,
.25rem
);
border-radius
:
50%
;
background-color
:
$ui-white
;
width
:
.25rem
;
height
:
.25rem
;
content
:
""
;
&
:after
{
display
:
block
;
transform
:
translate
(
.25rem
,
.25rem
);
border-radius
:
50%
;
background-color
:
$ui-white
;
width
:
.25rem
;
height
:
.25rem
;
content
:
""
;
}
}
}
}
...
...
src/components/forms/select.scss
View file @
ef881a07
...
...
@@ -5,34 +5,34 @@
label
{
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
;
outline
:
none
;
border
:
1px
solid
$ui-blue
;
}
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
,
&
:hover
{
background
:
$ui-light-gray
url("../../../static/svgs/forms/carot-hover.svg")
no-repeat
right
center
;
}
&
:focus
{
transition
:
all
.5s
ease
;
outline
:
none
;
border
:
1px
solid
$ui-blue
;
}
>
option
{
background-color
:
$ui-white
;
width
:
100%
;
&
:focus
,
&
:hover
{
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 = {
<
h2
>
<
intl
.
FormattedMessage
id=
"teacherRegistration.phoneStepTitle"
/>
</
h2
>
<
p
>
<
p
className=
"description"
>
<
intl
.
FormattedMessage
id=
"teacherRegistration.phoneStepDescription"
/>
<
Tooltip
title=
{
'
?
'
}
tipContent=
{
formatMessage
({
id
:
'
teacherRegistration.nameStepTooltip
'
})
}
/>
...
...
@@ -359,7 +359,7 @@ module.exports = {
<
h2
>
<
intl
.
FormattedMessage
id=
"teacherRegistration.orgStepTitle"
/>
</
h2
>
<
p
>
<
p
className=
"description"
>
<
intl
.
FormattedMessage
id=
"teacherRegistration.orgStepDescription"
/>
<
Tooltip
title=
{
'
?
'
}
tipContent=
{
formatMessage
({
id
:
'
teacherRegistration.nameStepTooltip
'
})
}
/>
...
...
@@ -448,7 +448,7 @@ module.exports = {
return
this
.
props
.
onNextStep
(
formData
);
}
else
{
return
invalidate
({
'
all
'
:
<
FormattedMessage
id
=
"
teacherRegistration.addressValidationError
"
/>
'
all
'
:
<
intl
.
FormattedMessage
id
=
"
teacherRegistration.addressValidationError
"
/>
});
}
}.
bind
(
this
));
...
...
@@ -693,7 +693,7 @@ module.exports = {
<
Slide
className=
"error-step"
>
<
h2
>
Something went wrong
</
h2
>
<
Card
>
<
h
2
>
There was an error while processing your registration
</
h2
>
<
h
4
>
There was an error while processing your registration
</
h4
>
<
p
>
{
this
.
props
.
registrationError
}
</
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