Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
54af6f72
Commit
54af6f72
authored
Jul 31, 2014
by
Randall Leeds
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1365 from hypothesis/form-error-styles
Update from error styles based on feedback
parents
1edc0a9e
43ced3d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
82 additions
and
4 deletions
+82
-4
forms.scss
h/static/styles/forms.scss
+82
-4
No files found.
h/static/styles/forms.scss
View file @
54af6f72
...
...
@@ -3,9 +3,39 @@
@import
"compass/utilities/general/clearfix"
;
.form-field
{
@include
clearfix
;
margin-bottom
:
10px
;
}
.form-heading
{
position
:
relative
;
font-size
:
1em
;
text-transform
:
uppercase
;
font-weight
:
bold
;
margin-top
:
0
;
margin-bottom
:
20px
;
span
{
position
:
relative
;
background
:
white
;
padding-right
:
5px
;
z-index
:
1
;
}
&
:
:
after
{
content
:
""
;
display
:
block
;
height
:
1px
;
background
:
$gray-lighter
;
width
:
100%
;
position
:
absolute
;
top
:
50%
;
left
:
0
;
margin-top
:
-1px
;
z-index
:
0
;
}
}
.form-description
{
margin-bottom
:
1em
;
}
...
...
@@ -78,16 +108,37 @@
}
}
.form-select
{
display
:
block
;
}
.form-error-list
{
position
:
relative
;
display
:
none
;
background
:
$hypothered
;
margin-top
:
(
10
/
13
*
1em
);
padding
:
(
4
/
13
*
1em
)
(
11
/
13
*
1em
);
float
:
left
;
border-radius
:
2px
;
&
:first-child
{
margin-top
:
5px
;
.form-error
{
font-size
:
12px
;
color
:
white
;
}
&
:after
{
bottom
:
100%
;
left
:
50%
;
border
:
solid
transparent
;
content
:
" "
;
height
:
0
;
width
:
0
;
position
:
absolute
;
pointer-events
:
none
;
border-color
:
rgba
(
$hypothered
,
0
);
border-bottom-color
:
$hypothered
;
border-width
:
4px
;
margin-left
:
-4px
;
}
}
...
...
@@ -126,7 +177,7 @@
.form-actions
{
@include
pie-clearfix
;
margin-top
:
5
px
;
margin-top
:
20
px
;
}
.form-actions-message
{
...
...
@@ -195,6 +246,27 @@
}
}
.btn-danger
{
@include
background
(
linear-gradient
(
top
,
$hypothered
,
shade
(
$hypothered
,
5%
)));
color
:
white
;
border-color
:
shade
(
$hypothered
,
15%
);
text-shadow
:
0
-1px
0
rgba
(
0
,
0
,
0
,
0
.1
);
&
:focus
,
&
:hover
,
&
:active
,
&
.js-hover
,
&
.js-focus
,
&
.js-active
{
@include
box-shadow
(
0
1px
0
rgba
(
0
,
0
,
0
,
0
.05
));
color
:
white
;
background
:
#e02b3c
;
border-color
:
$hypothered
;
}
&
:active
,
&
.js-active
{
@include
box-shadow
(
inset
0
1px
0
rgba
(
0
,
0
,
0
,
0
.3
));
color
:
white
;
background
:
shade
(
$hypothered
,
10%
);
border-color
:
shade
(
$hypothered
,
30%
);
}
}
.btn-clean
{
&
,
&
:focus
,
&
:hover
,
&
:active
,
&
.js-hover
,
&
.js-focus
,
&
.js-active
{
@include
box-shadow
(
none
);
...
...
@@ -283,3 +355,9 @@
@include
transition
(
transform
0
.15s
0
cubic-bezier
(
0
,
1
.8
,
1
,
1
.8
));
@include
transform
(
scale
(
1
));
}
// TODO: Move into seperate module stylesheet.
.account-form
{
margin-top
:
30
/
13
*
1em
;
margin-bottom
:
30
/
13
*
1em
;
}
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