Skip to content

Commit 47529c6

Browse files
committed
Gradient in upload icon
1 parent 7bffa8e commit 47529c6

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

frontend/src/common/components/Router/TabNavigation.scss

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
&__bar {
33
border-radius: 2rem;
44
margin: 0 0.75rem 0.75rem;
5-
box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
5+
box-shadow: 0 0.125rem 0.5rem rgb(0 0 0 / 10%);
66
height: var(--tab-bar-height, 3.5rem);
7-
--background: #ffffff;
7+
8+
--background: #fff;
89

910
/* Override default iOS padding */
1011
padding-bottom: 0;
@@ -45,7 +46,10 @@
4546
display: flex;
4647
align-items: center;
4748
justify-content: center;
48-
background-color: #4765ff;
49+
50+
/* Replace solid background with gradient */
51+
background-color: transparent;
52+
background-image: linear-gradient(135deg, #4765ff 0%, #6357fa 50%, #a557fa 100%);
4953
color: white;
5054
width: 3rem;
5155
height: 3rem;
@@ -54,9 +58,23 @@
5458
bottom: calc(50% - 0.5rem);
5559
left: 50%;
5660
transform: translateX(-50%);
57-
box-shadow: 0 0.25rem 0.5rem rgba(71, 101, 255, 0.3);
61+
62+
/* Enhanced shadow effect */
63+
box-shadow:
64+
0 0.5rem 1rem rgb(100 87 250 / 40%),
65+
0 0.125rem 0.25rem rgb(65 101 255 / 30%);
5866
z-index: 10;
5967

68+
/* Add slight transition for hover effects */
69+
transition:
70+
transform 0.2s ease,
71+
box-shadow 0.2s ease;
72+
73+
&:active {
74+
transform: translateX(-50%) scale(0.95);
75+
box-shadow: 0 0.25rem 0.5rem rgb(100 87 250 / 30%);
76+
}
77+
6078
.ls-tab-navigation__bar-button-icon {
6179
color: white;
6280
margin: 0;

0 commit comments

Comments
 (0)