Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b11c7912
Commit
b11c7912
authored
Dec 15, 2017
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update toggle styles to use icons
parent
a15c4d49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
30 deletions
+34
-30
app/assets/stylesheets/framework/toggle.scss
app/assets/stylesheets/framework/toggle.scss
+34
-30
No files found.
app/assets/stylesheets/framework/toggle.scss
View file @
b11c7912
...
...
@@ -27,7 +27,7 @@
border
:
0
;
outline
:
0
;
display
:
block
;
width
:
10
0px
;
width
:
5
0px
;
height
:
24px
;
cursor
:
pointer
;
user-select
:
none
;
...
...
@@ -42,31 +42,31 @@
background
:
none
;
}
&
:
:
before
{
color
:
$feature-toggle-text-color
;
font-size
:
12px
;
line-height
:
24px
;
position
:
absolute
;
top
:
0
;
left
:
25px
;
right
:
5px
;
text-align
:
center
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
animation
:
animate-disabled
.2s
ease-in
;
content
:
attr
(
data-disabled-text
);
}
&
:
:
after
{
.toggle-icon
{
position
:
relative
;
display
:
block
;
content
:
""
;
width
:
22px
;
height
:
18px
;
left
:
0
;
border-radius
:
9px
;
background
:
$feature-toggle-color
;
transition
:
all
.2s
ease
;
&
,
.toggle-icon-svg
{
width
:
18px
;
height
:
18px
;
}
.toggle-icon-svg
{
fill
:
$feature-toggle-color-disabled
;
}
.toggle-status-checked
{
display
:
none
;
}
.toggle-status-unchecked
{
display
:
inline
;
}
}
.loading-icon
{
...
...
@@ -77,11 +77,10 @@
top
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
}
&
.is-loading
{
&
:
:
before
{
.toggle-icon
{
display
:
none
;
}
...
...
@@ -100,15 +99,20 @@
&
.is-checked
{
background
:
$feature-toggle-color-enabled
;
&
:
:
before
{
left
:
5px
;
right
:
25px
;
animation
:
animate-enabled
.2s
ease-in
;
content
:
attr
(
data-enabled-text
);
}
.toggle-icon
{
left
:
calc
(
100%
-
18px
);
&
:
:
after
{
left
:
calc
(
100%
-
22px
);
.toggle-icon-svg
{
fill
:
$feature-toggle-color-enabled
;
}
.toggle-status-checked
{
display
:
inline
;
}
.toggle-status-unchecked
{
display
:
none
;
}
}
}
...
...
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