Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Snowflake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
shelikhoo
Snowflake
Commits
eeae7412
Commit
eeae7412
authored
5 years ago
by
Antonela
Committed by
Cecylia Bocovich
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update to popup UI and addition of toggle
parent
19244c71
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
proxy/webext/popup.css
+94
-7
94 additions, 7 deletions
proxy/webext/popup.css
proxy/webext/popup.html
+14
-7
14 additions, 7 deletions
proxy/webext/popup.html
with
108 additions
and
14 deletions
proxy/webext/popup.css
+
94
−
7
View file @
eeae7412
...
...
@@ -2,20 +2,107 @@ body {
margin
:
10px
;
font-family
:
-apple-system
,
BlinkMacSystemFont
,
"Segoe UI"
,
Roboto
,
Oxygen-Sans
,
Ubuntu
,
Cantarell
,
"Helvetica Neue"
,
sans-serif
;
width
:
300px
;
font-size
:
12px
;
}
#active
{
padd
in
g
:
20px
;
marg
in
:
20px
0
;
text-align
:
center
;
}
.learn
{
padding-top
:
10px
;
border-top
:
1px
solid
grey
;
.b
{
border-top
:
1px
solid
gainsboro
;
padding
:
10px
;
position
:
relative
;
}
.
learn
a
{
display
:
bl
o
ck
;
color
:
grey
;
.
b
a
{
color
:
bl
a
ck
;
display
:
inline-block
;
text-decoration
:
none
;
}
.learn
:before
{
content
:
" "
;
display
:
block
;
position
:
absolute
;
top
:
12px
;
background-image
:
url(https://design.firefox.com/icons/icons/desktop/arrowhead-right-12.svg)
;
width
:
12px
;
height
:
12px
;
opacity
:
0.6
;
z-index
:
9999
;
right
:
0px
;
margin-right
:
10px
;
}
/* Snowflake Status */
.transfering
{
-webkit-animation
:
spin
8s
linear
infinite
;
-moz-animation
:
spin
8s
linear
infinite
;
animation
:
spin
8s
linear
infinite
;
fill
:
BlueViolet
;
}
@-moz-keyframes
spin
{
100
%
{
-moz-transform
:
rotate
(
360deg
);
}
}
@-webkit-keyframes
spin
{
100
%
{
-webkit-transform
:
rotate
(
360deg
);
}
}
@keyframes
spin
{
100
%
{
-webkit-transform
:
rotate
(
360deg
);
transform
:
rotate
(
360deg
);
}
}
/* Toggle */
.switch
{
position
:
relative
;
display
:
inline-block
;
width
:
30px
;
height
:
17px
;
float
:
right
;
}
.switch
input
{
opacity
:
0
;
width
:
0
;
height
:
0
;
}
.slider
{
position
:
absolute
;
cursor
:
pointer
;
top
:
0
;
left
:
0
;
right
:
0
;
bottom
:
0
;
background-color
:
#ccc
;
-webkit-transition
:
.4s
;
transition
:
.4s
;
border-radius
:
17px
;
}
.slider
:before
{
position
:
absolute
;
content
:
""
;
height
:
13px
;
width
:
13px
;
left
:
2px
;
bottom
:
2px
;
background-color
:
white
;
-webkit-transition
:
.4s
;
transition
:
.4s
;
border-radius
:
50%
;
}
input
:checked
+
.slider
{
background-color
:
BlueViolet
;
}
input
:focus
+
.slider
{
box-shadow
:
0
0
1px
BlueViolet
;
}
input
:checked
+
.slider
:before
{
-webkit-transform
:
translateX
(
13px
);
-ms-transform
:
translateX
(
13px
);
transform
:
translateX
(
13px
);
}
This diff is collapsed.
Click to expand it.
proxy/webext/popup.html
+
14
−
7
View file @
eeae7412
...
...
@@ -8,11 +8,18 @@
<body>
<div
id=
"active"
>
<img
src=
"icons/status-off.png"
/>
<p></p>
<p></p>
</div>
<div
class=
"learn"
>
<a
target=
"_blank"
href=
"https://snowflake.torproject.org/"
>
Learn more
</a>
</div>
</body>
<p></p>
<p></p>
</div>
<div
class=
"b toggle"
>
<label>
Turn Off
</label>
<label
class=
"switch"
>
<input
type=
"checkbox"
checked
>
<span
class=
"slider round"
></span>
</label>
</div>
<div
class=
"b learn"
>
<a
target=
"_blank"
href=
"https://snowflake.torproject.org/"
>
Learn more
</a>
</div>
</body>
</html>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment