Skip to content

Commit eb06bef

Browse files
scss beautify
1 parent 12ad9e4 commit eb06bef

4 files changed

Lines changed: 85 additions & 87 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ Using the latest LTS version of node.js should work just fine: https://nodejs.or
3939
You should now be able to reach your site.
4040

4141
Keywords: React dropdown menu, Customizable menu component, User-friendly dropdown menu, Reusable dropdown template, React menu interface, Dropdown menu solution, Easy integration with React
42-
https://github.com/MaximilianPfitzenmaier/
42+
https://github.com/MaximilianPfitzenmaier/

src/assets/scss/default.scss

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ $screen-md-min: 768px;
44
// Medium devices
55
@mixin md {
66
@media (min-width: #{$screen-md-min}) {
7-
@content;
7+
@content;
88
}
99
}
1010

@@ -30,7 +30,7 @@ $screen-md-min: 768px;
3030
--color-links-hover: hsl(var(--hs-links) 45%);
3131
--color-border: hsl(277, 85%, 38%);
3232
--color-invalid: hsl(356, 100%, 71%);
33-
--color-font: hsl(210, 11%, 15%);
33+
--color-font: hsl(210, 11%, 15%);
3434
--gradient-background: radial-gradient(circle, rgba(152, 11, 238, 1) 0%, rgba(118, 15, 181, 1) 35%, rgba(58, 13, 85, 1) 100%);
3535
--font-body: -apple-system, 'Segoe UI', Helvetica Neue, Helvetica, Roboto, Arial, sans-serif, system-ui, 'Apple Color Emoji', 'Segoe UI Emoji';
3636
--font-display: roboto-regular, var(--font-body);
@@ -159,8 +159,7 @@ h6 {
159159

160160
@include md {
161161
flex-direction: row;
162-
}
163-
162+
}
164163
}
165164

166165
.mt-3 {
@@ -176,4 +175,4 @@ ol {
176175
li::marker {
177176
content: none;
178177
}
179-
}
178+
}

src/assets/scss/dropdown.scss

Lines changed: 73 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,87 @@
11
.dropdown {
2-
&--container {
3-
text-align: left;
4-
border: 1px solid #ccc;
5-
position: relative;
6-
border-radius: 5px;
2+
&--container {
3+
text-align: left;
4+
border: 1px solid #ccc;
5+
position: relative;
6+
border-radius: 5px;
7+
}
8+
9+
&--input {
10+
padding: 5px;
11+
display: flex;
12+
align-items: center;
13+
justify-content: space-between;
14+
user-select: none;
15+
cursor: pointer;
16+
17+
svg {
18+
transition: all 0.4s;
719
}
8-
9-
&--input {
10-
padding: 5px;
11-
display: flex;
12-
align-items: center;
13-
justify-content: space-between;
14-
user-select: none;
15-
cursor: pointer;
16-
17-
svg {
18-
transition: all .4s;
19-
}
2020

21-
&.open svg {
22-
transform: rotate(180deg);
23-
}
21+
&.open svg {
22+
transform: rotate(180deg);
2423
}
25-
26-
&--menu {
27-
position: absolute;
28-
transform: translateY(4px);
24+
}
25+
26+
&--menu {
27+
position: absolute;
28+
transform: translateY(4px);
29+
width: 100%;
30+
border: 1px solid #ccc;
31+
border-radius: 5px;
32+
overflow: auto;
33+
max-height: 150px;
34+
background-color: #fff;
35+
z-index: 99;
36+
37+
.search-box {
38+
padding: 5px;
39+
background-color: #eee;
40+
41+
input {
2942
width: 100%;
43+
box-sizing: border-box;
44+
padding: 5px;
3045
border: 1px solid #ccc;
3146
border-radius: 5px;
32-
overflow: auto;
33-
max-height: 150px;
34-
background-color: #fff;
35-
z-index: 99;
36-
37-
.search-box {
38-
padding: 5px;
39-
background-color: #eee;
40-
41-
input {
42-
width: 100%;
43-
box-sizing: border-box;
44-
padding: 5px;
45-
border: 1px solid #ccc;
46-
border-radius: 5px;
47-
}
48-
}
49-
}
50-
51-
&--item {
52-
padding: 5px;
53-
cursor: pointer;
54-
}
55-
56-
&--item:hover {
57-
background-color: #9fc3f870;
58-
}
59-
60-
&--item.selected {
61-
background-color: #0d6efd;
62-
color: #fff;
47+
}
6348
}
49+
}
6450

65-
&--tags {
66-
display: flex;
67-
flex-wrap: wrap;
68-
gap: 5px;
69-
}
51+
&--item {
52+
padding: 5px;
53+
cursor: pointer;
54+
}
7055

71-
&--tag-item {
72-
background-color: #ddd;
73-
padding: 2px 4px;
74-
border-radius: 2px;
75-
display: flex;
76-
align-items: center;
56+
&--item:hover {
57+
background-color: #9fc3f870;
58+
}
7759

78-
&:hover {
79-
cursor: pointer;
80-
}
81-
}
60+
&--item.selected {
61+
background-color: #0d6efd;
62+
color: #fff;
63+
}
64+
65+
&--tags {
66+
display: flex;
67+
flex-wrap: wrap;
68+
gap: 5px;
69+
}
70+
71+
&--tag-item {
72+
background-color: #ddd;
73+
padding: 2px 4px;
74+
border-radius: 2px;
75+
display: flex;
76+
align-items: center;
8277

83-
&--tag-close {
84-
display: flex;
85-
align-items: center;
78+
&:hover {
79+
cursor: pointer;
8680
}
81+
}
8782

88-
}
83+
&--tag-close {
84+
display: flex;
85+
align-items: center;
86+
}
87+
}

src/assets/scss/footer.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,27 @@ footer {
1313
.name {
1414
margin-left: 2rem;
1515
}
16-
16+
1717
.socials {
1818
margin-right: 2rem;
19-
transition: all .3s;
20-
21-
span a{
19+
transition: all 0.3s;
20+
21+
span a {
2222
display: flex;
2323
color: var(--color-foreground);
2424
}
25-
25+
2626
svg {
2727
width: 24px;
2828
height: 24px;
2929
fill: var(--color-foreground);
3030
margin-left: 1rem;
3131
}
3232

33-
&:hover svg{
33+
&:hover svg {
3434
fill: var(--color-links);
3535
}
36-
&:hover span a{
36+
&:hover span a {
3737
color: var(--color-links);
3838
text-decoration: none;
3939
}

0 commit comments

Comments
 (0)