Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
LuckySwap
interface
Commits
a8b3fda0
Commit
a8b3fda0
authored
Oct 27, 2018
by
Callil Capuozzo
Committed by
Chi Kei Chan
Oct 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CSS design adjustments (#92)
* CSS design adjustments * Desktop CSS (layouts and modals)
parent
f86f1948
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
102 additions
and
37 deletions
+102
-37
currency-panel.scss
src/components/CurrencyInputPanel/currency-panel.scss
+24
-4
header.scss
src/components/Header/header.scss
+17
-3
modal.scss
src/components/Modal/modal.scss
+1
-0
tab.scss
src/components/Tab/tab.scss
+2
-2
index.js
src/components/Web3Status/index.js
+8
-8
web3-status.scss
src/components/Web3Status/web3-status.scss
+6
-9
index.scss
src/index.scss
+2
-1
App.scss
src/pages/App.scss
+3
-5
pool.scss
src/pages/Pool/pool.scss
+15
-0
swap.scss
src/pages/Swap/swap.scss
+22
-3
variables.scss
src/variables.scss
+2
-2
No files found.
src/components/CurrencyInputPanel/currency-panel.scss
View file @
a8b3fda0
...
@@ -55,6 +55,7 @@
...
@@ -55,6 +55,7 @@
}
}
&
__input
{
&
__input
{
font-size
:
1
.5rem
;
@extend
%borderless-input
;
@extend
%borderless-input
;
&
--error
{
&
--error
{
color
:
$salmon-red
;
color
:
$salmon-red
;
...
@@ -139,6 +140,7 @@
...
@@ -139,6 +140,7 @@
&
__selected-token-logo
{
&
__selected-token-logo
{
margin-right
:
.4rem
;
margin-right
:
.4rem
;
border-radius
:
1rem
;
object-fit
:
contain
;
object-fit
:
contain
;
}
}
}
}
...
@@ -178,12 +180,16 @@
...
@@ -178,12 +180,16 @@
@extend
%row-nowrap
;
@extend
%row-nowrap
;
align-items
:
center
;
align-items
:
center
;
padding
:
1rem
1
.5rem
;
padding
:
1rem
1
.5rem
;
margin
:
.25rem
.5rem
;
justify-content
:
space-between
;
justify-content
:
space-between
;
cursor
:
pointer
;
cursor
:
pointer
;
user-select
:
none
;
user-select
:
none
;
&
--selected
{
&
--selected
{
background
:
$mercury-gray
;
background-color
:
$concrete-gray
;
box-sizing
:
border-box
;
border
:
1px
solid
$mercury-gray
;
border-radius
:
2
.5rem
;
.token-modal__token-label
{
.token-modal__token-label
{
color
:
$black
;
color
:
$black
;
...
@@ -211,12 +217,28 @@
...
@@ -211,12 +217,28 @@
&
__token-logo
{
&
__token-logo
{
object-fit
:
contain
;
object-fit
:
contain
;
border-radius
:
1rem
;
}
}
&
__token-label
{
&
__token-label
{
color
:
$
silver
-gray
;
color
:
$
dove
-gray
;
font-weight
:
200
;
font-weight
:
200
;
}
}
@media
only
screen
and
(
min-device-width
:
768px
)
{
max-width
:
560px
;
max-height
:
768px
;
position
:
absolute
;
margin-left
:
auto
;
margin-right
:
auto
;
border-radius
:
1rem
;
padding-bottom
:
1rem
;
left
:
0
;
right
:
0
;
bottom
:
0
;
top
:
0
;
margin-top
:
4rem
;
}
}
}
...
@@ -227,5 +249,3 @@
...
@@ -227,5 +249,3 @@
.token-modal-appear.modal-container-appear-active
{
.token-modal-appear.modal-container-appear-active
{
bottom
:
0
;
bottom
:
0
;
}
}
src/components/Header/header.scss
View file @
a8b3fda0
...
@@ -5,12 +5,14 @@
...
@@ -5,12 +5,14 @@
&
__top
{
&
__top
{
@extend
%row-nowrap
;
@extend
%row-nowrap
;
padding
:
1
.
5rem
1
.5rem
.5rem
1
.
5rem
;
padding
:
1
.
25rem
.7
5rem
;
align-items
:
center
;
align-items
:
center
;
border-bottom
:
1px
solid
$concrete-gray
;
}
}
&
__title
{
&
__title
{
font-size
:
1rem
;
font-size
:
1rem
;
font-weight
:
500
;
margin-left
:
1rem
;
margin-left
:
1rem
;
line-height
:
1
.5rem
;
line-height
:
1
.5rem
;
color
:
$wisteria-purple
;
color
:
$wisteria-purple
;
...
@@ -22,7 +24,7 @@
...
@@ -22,7 +24,7 @@
}
}
&
__navigation
{
&
__navigation
{
margin-bottom
:
2
rem
;
margin-bottom
:
1
rem
;
}
}
&
--inactive
{
&
--inactive
{
...
@@ -65,5 +67,17 @@
...
@@ -65,5 +67,17 @@
margin-left
:
1rem
;
margin-left
:
1rem
;
}
}
}
}
}
@media
only
screen
and
(
min-device-width
:
768px
)
{
position
:
fixed
;
top
:
0px
;
left
:
0px
;
width
:
100vw
;
width
:
100vw
;
&
__top
{
border
:
none
;
padding
:
1
.25rem
;
}
}
}
src/components/Modal/modal.scss
View file @
a8b3fda0
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
width
:
100vw
;
width
:
100vw
;
background-color
:
rgba
(
$black
,
.6
);
background-color
:
rgba
(
$black
,
.6
);
z-index
:
1000
;
z-index
:
1000
;
}
}
.modal-container-appear
{
.modal-container-appear
{
...
...
src/components/Tab/tab.scss
View file @
a8b3fda0
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
.tabs
{
.tabs
{
@extend
%row-nowrap
;
@extend
%row-nowrap
;
align-items
:
center
;
align-items
:
center
;
height
:
3
rem
;
height
:
2
.5
rem
;
background-color
:
$concrete-gray
;
background-color
:
$concrete-gray
;
border-radius
:
3rem
;
border-radius
:
3rem
;
box-shadow
:
0
0
0
.5px
darken
(
$concrete-gray
,
5
);
box-shadow
:
0
0
0
.5px
darken
(
$concrete-gray
,
5
);
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
@extend
%row-nowrap
;
@extend
%row-nowrap
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
height
:
3
rem
;
height
:
2
.5
rem
;
flex
:
1
0
auto
;
flex
:
1
0
auto
;
border-radius
:
3rem
;
border-radius
:
3rem
;
transition
:
300ms
ease-in-out
;
transition
:
300ms
ease-in-out
;
...
...
src/components/Web3Status/index.js
View file @
a8b3fda0
...
@@ -84,6 +84,13 @@ class Web3Status extends Component {
...
@@ -84,6 +84,13 @@ class Web3Status extends Component {
})}
})}
onClick
=
{
this
.
handleClick
}
onClick
=
{
this
.
handleClick
}
>
>
<
div
className
=
"
web3-status__text
"
>
{
hasPendingTransactions
?
getPendingText
(
pendingTransactions
)
:
getText
(
address
)
}
<
/div
>
<
div
<
div
className
=
"
web3-status__identicon
"
className
=
"
web3-status__identicon
"
ref
=
{
el
=>
{
ref
=
{
el
=>
{
...
@@ -96,16 +103,9 @@ class Web3Status extends Component {
...
@@ -96,16 +103,9 @@ class Web3Status extends Component {
}
}
el
.
innerHTML
=
''
;
el
.
innerHTML
=
''
;
el
.
appendChild
(
Jazzicon
(
1
8
,
parseInt
(
address
.
slice
(
2
),
16
)));
el
.
appendChild
(
Jazzicon
(
1
6
,
parseInt
(
address
.
slice
(
2
),
16
)));
}}
}}
/
>
/
>
<
div
className
=
"
web3-status__text
"
>
{
hasPendingTransactions
?
getPendingText
(
pendingTransactions
)
:
getText
(
address
)
}
<
/div
>
{
this
.
renderModal
()}
{
this
.
renderModal
()}
<
/div
>
<
/div
>
);
);
...
...
src/components/Web3Status/web3-status.scss
View file @
a8b3fda0
...
@@ -2,9 +2,8 @@
...
@@ -2,9 +2,8 @@
.web3-status
{
.web3-status
{
@extend
%row-nowrap
;
@extend
%row-nowrap
;
width
:
10
rem
;
height
:
2
rem
;
font-size
:
.9rem
;
font-size
:
.9rem
;
line-height
:
1rem
;
align-items
:
center
;
align-items
:
center
;
border
:
1px
solid
$mercury-gray
;
border
:
1px
solid
$mercury-gray
;
padding
:
.5rem
;
padding
:
.5rem
;
...
@@ -14,18 +13,18 @@
...
@@ -14,18 +13,18 @@
box-sizing
:
border-box
;
box-sizing
:
border-box
;
&
__identicon
{
&
__identicon
{
height
:
1
.125
rem
;
height
:
1rem
;
width
:
1
.125
rem
;
width
:
1rem
;
border-radius
:
1
.125rem
;
border-radius
:
1
.125rem
;
background-color
:
$silver-gray
;
background-color
:
$silver-gray
;
}
}
&
__text
{
&
__text
{
flex
:
1
1
auto
;
flex
:
1
1
auto
;
width
:
0
;
overflow
:
hidden
;
overflow
:
hidden
;
margin-left
:
1rem
;
margin-right
:
.75rem
;
font-size
:
.85rem
;
margin-left
:
.25rem
;
font-size
:
.75rem
;
}
}
&
__pending-container
{
&
__pending-container
{
...
@@ -96,5 +95,3 @@
...
@@ -96,5 +95,3 @@
.pending-modal-appear.modal-container-appear-active
{
.pending-modal-appear.modal-container-appear-active
{
bottom
:
0
;
bottom
:
0
;
}
}
src/index.scss
View file @
a8b3fda0
...
@@ -23,7 +23,8 @@ html, body {
...
@@ -23,7 +23,8 @@ html, body {
z-index
:
100
;
z-index
:
100
;
-webkit-tap-highlight-color
:
rgba
(
255
,
255
,
255
,
0
);
-webkit-tap-highlight-color
:
rgba
(
255
,
255
,
255
,
0
);
@media
only
screen
and
(
min-device-width
:
768px
)
{
@media
only
screen
and
(
min-device-width
:
768px
)
{
background-color
:
$concrete-gray
;
justify-content
:
center
;
align-items
:
center
;
}
}
}
}
...
...
src/pages/App.scss
View file @
a8b3fda0
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
position
:
relative
;
position
:
relative
;
@media
only
screen
and
(
min-device-width
:
768px
)
{
@media
only
screen
and
(
min-device-width
:
768px
)
{
box-shadow
:
0
0
8px
1px
$mercury-gray
;
margin-top
:
4rem
;
}
}
&
>
div
{
&
>
div
{
...
@@ -25,8 +25,6 @@
...
@@ -25,8 +25,6 @@
@extend
%col-nowrap
;
@extend
%col-nowrap
;
@media
only
screen
and
(
min-device-width
:
768px
)
{
@media
only
screen
and
(
min-device-width
:
768px
)
{
max-width
:
400px
;
max-width
:
560px
;
max-height
:
600px
;
margin
:
auto
;
}
}
}
}
\ No newline at end of file
src/pages/Pool/pool.scss
View file @
a8b3fda0
...
@@ -91,9 +91,24 @@
...
@@ -91,9 +91,24 @@
transition
:
250ms
ease-in-out
;
transition
:
250ms
ease-in-out
;
padding
:
1rem
0
.5rem
;
padding
:
1rem
0
.5rem
;
@media
only
screen
and
(
min-device-width
:
768px
)
{
max-width
:
560px
;
position
:
absolute
;
margin-left
:
auto
;
margin-right
:
auto
;
border-radius
:
1rem
;
padding-bottom
:
1rem
;
left
:
0
;
right
:
0
;
bottom
:
0
;
top
:
0
;
margin-top
:
4rem
;
}
&
__item
{
&
__item
{
padding
:
1rem
;
padding
:
1rem
;
font-size
:
1rem
;
font-size
:
1rem
;
cursor
:
pointer
;
&
:hover
{
&
:hover
{
background-color
:
$concrete-gray
;
background-color
:
$concrete-gray
;
...
...
src/pages/Swap/swap.scss
View file @
a8b3fda0
...
@@ -45,26 +45,46 @@
...
@@ -45,26 +45,46 @@
}
}
&
__summary-wrapper
{
&
__summary-wrapper
{
margin
:
2rem
1rem
;
background-color
:
$concrete-gray
;
border-top-left-radius
:
1rem
;
border-top-right-radius
:
1rem
;
padding
:
1rem
;
color
:
#737373
;
color
:
#737373
;
font-size
:
.75rem
;
font-size
:
.75rem
;
text-align
:
center
;
text-align
:
center
;
cursor
:
pointer
;
}
}
&
__summary-modal
{
&
__summary-modal
{
background-color
:
$white
;
background-color
:
$white
;
position
:
relative
;
position
:
relative
;
bottom
:
12rem
;
bottom
:
12rem
;
height
:
12rem
;
min-height
:
12rem
;
max-height
:
12rem
;
z-index
:
2000
;
z-index
:
2000
;
padding
:
1rem
;
padding
:
1rem
;
border-top-left-radius
:
1rem
;
border-top-left-radius
:
1rem
;
border-top-right-radius
:
1rem
;
border-top-right-radius
:
1rem
;
transition
:
250ms
ease-in-out
;
transition
:
250ms
ease-in-out
;
@media
only
screen
and
(
min-device-width
:
768px
)
{
max-width
:
560px
;
position
:
absolute
;
margin-left
:
auto
;
margin-right
:
auto
;
border-radius
:
1rem
;
padding-bottom
:
1rem
;
left
:
0
;
right
:
0
;
bottom
:
0
;
top
:
0
;
margin-top
:
4rem
;
}
.swap__open-details-container
{
.swap__open-details-container
{
padding
:
0
.5rem
0
;
padding
:
0
.5rem
0
;
margin-bottom
:
1rem
;
margin-bottom
:
1rem
;
cursor
:
pointer
;
}
}
}
}
...
@@ -72,7 +92,6 @@
...
@@ -72,7 +92,6 @@
@extend
%row-nowrap
;
@extend
%row-nowrap
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
padding
:
.625rem
1rem
;
font-size
:
.75rem
;
font-size
:
.75rem
;
color
:
$royal-blue
;
color
:
$royal-blue
;
...
...
src/variables.scss
View file @
a8b3fda0
...
@@ -15,7 +15,7 @@ $malibu-blue: #5CA2FF;
...
@@ -15,7 +15,7 @@ $malibu-blue: #5CA2FF;
$royal-blue
:
#2F80ED
;
$royal-blue
:
#2F80ED
;
// Purple
// Purple
$wisteria-purple
:
#
AE60B9
;
$wisteria-purple
:
#
DC6BE5
;
// Red
// Red
$salmon-red
:
#FF6871
;
$salmon-red
:
#FF6871
;
...
@@ -70,6 +70,6 @@ $pizazz-orange: #FF8F05;
...
@@ -70,6 +70,6 @@ $pizazz-orange: #FF8F05;
&
:
:
placeholder
{
&
:
:
placeholder
{
color
:
$
chalice
-gray
;
color
:
$
mercury
-gray
;
}
}
}
}
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