Skip to content

Commit a54c194

Browse files
committed
Auto merge of #4170 - Turbo87:header-shadows, r=locks
Header: Add drop shadows to main elements ### Before ![2021-11-12 17 36 47 localhost 6fd786e02624](https://user-images.githubusercontent.com/141300/141501991-3edcba3b-73bd-4f15-a7df-a3d823800e18.png) ### After ![2021-11-12 17 36 15 localhost 01e3e91540f7](https://user-images.githubusercontent.com/141300/141501996-7afe1a6c-1633-41e4-aff3-546b6213b4c3.png)
2 parents e32f2ba + d8507c3 commit a54c194

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

app/components/header.module.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@
8888
display: none;
8989
margin: 0 0 20px;
9090
font-size: 45px;
91-
color: #dfffdb;
9291
text-align: center;
92+
color: white;
93+
text-shadow: 1px 3px 2px var(--green900);
9394

9495
.hero & {
9596
display: block;

app/components/search-form.module.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
}
44

55
.input {
6+
--search-form-focus-shadow: 0 0 0 4px var(--yellow500);
7+
68
font-size: 90%;
79
border: none;
810
color: black;
@@ -14,7 +16,7 @@
1416
background-position: 6px 6px;
1517
background-size: 14px 15px;
1618
border-radius: 15px;
17-
box-shadow: none;
19+
box-shadow: 1px 2px 4px 0 var(--green900);
1820
transition: box-shadow 150ms;
1921

2022
.size-big & {
@@ -26,7 +28,8 @@
2628

2729
&:focus {
2830
outline: none;
29-
box-shadow: 0 0 0 4px var(--yellow500);
31+
box-shadow: var(--search-form-focus-shadow),
32+
1px 2px 3px 4px var(--green900);
3033
}
3134
}
3235

app/styles/application.module.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
--main-color: #383838;
1818
--main-color-light: #858585;
19+
--main-shadow-color: var(--green900);
1920
--main-bg: #f9f7ec;
2021
--main-bg-dark: #edebdd;
2122
--gray-border: #d5d3cb;
@@ -106,8 +107,10 @@ noscript {
106107
display: flex;
107108
justify-content: center;
108109
width: 100%;
110+
position: relative;
109111
background-color: var(--main-bg);
110112
color: var(--main-color);
113+
box-shadow: 0 0 6px 0 var(--main-shadow-color);
111114
}
112115

113116
.inner-main {

0 commit comments

Comments
 (0)