Skip to content

Commit b3ad64f

Browse files
committed
[design] improve link shadows
1 parent 1f1f03e commit b3ad64f

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

‎css/base.css‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,9 @@
8383
--animation-speed-fast:0.2s;
8484
--animation-speed-medium:0.4s;
8585
--animation-speed-slow:0.6s;
86-
--shadow-small:02px1pxrgba(0,0,0,0.1),03px2pxrgba(0,0,0,0.1);
87-
--shadow-medium:04px10pxrgba(0,0,0,0.1),06px15pxrgba(0,0,0,0.1);
88-
--shadow-large:04px10pxrgba(0,0,0,0.1),06px30pxrgba(0,0,0,0.1);
89-
--shadow-small-inset: inset 01px1pxrgba(0,0,0,0.05);
90-
--shadow-medium-inset: inset 02px2pxrgba(0,0,0,0.1);
91-
--shadow-large-inset: inset 03px3pxrgba(0,0,0,0.15);
86+
--shadow-small:01px2pxrgba(0,0,0,0.1),02px4pxrgba(0,0,0,0.2);
87+
--shadow-medium:02px4pxrgba(0,0,0,0.1),04px8pxrgba(0,0,0,0.2);
88+
--shadow-large:03px6pxrgba(0,0,0,0.1),06px12pxrgba(0,0,0,0.2);
9289
--z-index-background:1000;
9390
--z-index-link:2000;
9491
--z-index-header:3000;

‎css/link.css‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
text-decoration: none;
9898
outline: none;
9999
background-color:rgb(var(--gray-03));
100-
box-shadow:02px4px0rgba(0,0,0,0.4);
100+
box-shadow:var(--shadow-large);
101101
}
102102

103103
.is-link-style-block .link-panel-front{
@@ -395,7 +395,7 @@
395395
.is-link-edit .link-item:hover .link-panel-front,
396396
.is-link-edit .link-item:focus .link-panel-front{
397397
height:calc(100%-var(--link-item-edit-height));
398-
box-shadow:02px4px0rgba(0,0,0,0.4);
398+
box-shadow:var(--shadow-medium);
399399
}
400400

401401
.is-link-edit.is-link-url-show .link-item:focus .link-panel-front,

0 commit comments

Comments
(0)