-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made shadow generator responsive (#91)
fixes #54 ### **Add responsiveness to Shadow generator app and made it more accessible.** ### Laptop view ![image](https://github.com/Git21221/JS-beginner-projects/assets/122476829/e0e5c75c-3b0b-40e7-b7ab-834676cf62af) ### **Tab view** ![image](https://github.com/Git21221/JS-beginner-projects/assets/122476829/7c5a1641-372c-4cea-92a3-9a533ba245c1) ### **Moblie view** ![image](https://github.com/Git21221/JS-beginner-projects/assets/122476829/8a3e3b32-4c20-4cf8-a771-1b1d8df9ac9c)
- Loading branch information
Showing
3 changed files
with
112 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,96 +1,142 @@ | ||
@import url('https://fonts.googleapis.com/css2?family=Outfit&display=swap'); | ||
*{ | ||
|
||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
font-family: 'Outfit', sans-serif; | ||
} | ||
html , body{ | ||
|
||
html, | ||
body { | ||
height: 100%; | ||
width: 100%; | ||
|
||
|
||
} | ||
|
||
.title { | ||
padding-left: 2rem; | ||
font-size: 3rem; | ||
font-weight: 600; | ||
} | ||
.box{ | ||
|
||
.box { | ||
background: rgb(0, 0, 0); | ||
height: 200px; | ||
width: 200px; | ||
margin: 50px; | ||
box-shadow: -2px -1px 26px 1px grey; | ||
} | ||
body{ | ||
|
||
body { | ||
|
||
background: #000; | ||
color: white; | ||
min-height: 100vh; | ||
position: relative; | ||
height: 100vh; | ||
width: 100vw; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
#full-panel{ | ||
|
||
#full-panel { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 20px; | ||
align-items: center; | ||
justify-content: center; | ||
width: fit-content; | ||
} | ||
#full-panel h1{ | ||
|
||
#full-panel h1 { | ||
font-size: 50px; | ||
color: #fff; | ||
margin-bottom: 30px; | ||
} | ||
|
||
#main{ | ||
#main { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
column-gap: 20px; | ||
width: 100%; | ||
|
||
flex-wrap: wrap; | ||
|
||
} | ||
.parameter-lable{ | ||
|
||
.parameter-lable { | ||
display: flex; | ||
flex-direction: column; | ||
|
||
} | ||
|
||
.parameter-content { | ||
width: 100%; | ||
padding: 0 2rem; | ||
} | ||
.parameter{ | ||
|
||
.parameter { | ||
/* padding: 15px; */ | ||
display: flex; | ||
flex-direction: column; | ||
flex-wrap: wrap; | ||
justify-content: space-around; | ||
align-items: center; | ||
max-height: 0; | ||
|
||
overflow: hidden; | ||
transition: all ease 0.8s; | ||
} | ||
.block{ | ||
|
||
.parameter div { | ||
margin: 0 1rem; | ||
} | ||
|
||
.block { | ||
display: flex; | ||
flex-direction: column; | ||
width: 100%; | ||
padding: 0 3rem; | ||
} | ||
.block code{ | ||
|
||
.block code { | ||
max-height: 0; | ||
overflow: hidden; | ||
transition: all ease 0.8s; | ||
} | ||
.lable{ | ||
|
||
.lable { | ||
padding: 5px 10px; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
border: 1px solid #fff; | ||
margin-bottom: 10px; | ||
} | ||
.color-width{ | ||
width: 100%; | ||
cursor:crosshair; | ||
|
||
.color-width { | ||
width: 20rem; | ||
cursor: crosshair; | ||
} | ||
|
||
input { | ||
width: 20rem; | ||
} | ||
.lable-container{ | ||
|
||
.lable-container { | ||
border: 1px solid #fff; | ||
padding: 10px; | ||
margin-bottom: 10px; | ||
} | ||
.lable-container h2{ | ||
|
||
.lable-container h2 { | ||
font-size: 16px; | ||
} | ||
.lable h2{ | ||
|
||
.lable h2 { | ||
font-size: 22px; | ||
} | ||
.lable i:hover{ | ||
|
||
.lable i:hover { | ||
cursor: pointer; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters