Skip to content

Commit d8996e8

Browse files
Fix: pages, code, enchantments
1 parent 4b5b276 commit d8996e8

File tree

5 files changed

+301
-203
lines changed

5 files changed

+301
-203
lines changed

.prettierrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"trailingComma": "none",
3-
"tabWidth": 2,
3+
"tabWidth": 4,
44
"semi": true,
55
"singleQuote": true
66
}

README.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,19 @@
2121
1. Fork the repo and clone it.
2222
2. Add your HTML code in the [index.html](https://github.com/Design-and-Code/css-buttons/blob/main/index.html) file.
2323
3. Add your CSS code in the [buttons.css](https://github.com/Design-and-Code/css-buttons/blob/main/buttons/buttons.css) file.
24-
4. Make sure you do not change any other button's code (for that, use the correct naming conventions - eg. yourname-btn-index or btn-yourname-index).
25-
5. When you open the PR, please include a full screenshot.
24+
4. Make sure you do not change any other button's code.
25+
5. For naming css classes use the correct naming conventions - eg. yourname-btn-index or btn-yourname-index.
26+
6. When you open the PR, please include a full screenshot.
2627

2728
#### Demo code
2829
```html
2930
<div class="button-container">
30-
<!-- add your buttons here, eg.
31-
<button class="button-{number}"><span> Example Button </span></button>
31+
<!-- add your buttons here, eg.-->
32+
<button class="{yourname-button-index}"><span> Example Button </span></button>
33+
<div class="createdby-section">
34+
Created by
35+
<a href="{yourgithublink}">{YOURNAME}</a>
3236
</div>
33-
-->
3437
</div>
3538
```
3639

assets/css/style.css

+38-17
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
--bg-btn-card: #141417;
1010
--forground-main-color: rgb(255 255 255 / 1);
1111
--background-main-color: rgb(0, 0, 0);
12+
--card-border-radius: 30px;
1213
}
1314

1415
body {
@@ -27,42 +28,46 @@ body::-webkit-scrollbar {
2728
body::-webkit-scrollbar-thumb {
2829
border-radius: 11px;
2930
/* -webkit-box-shadow: inset -5px 0px 29px 0 #ec4896; */
30-
background-color:rgb(99, 99, 99);
31+
background-color: rgb(99, 99, 99);
3132
}
3233

33-
main{
34+
main {
3435
display: flex;
3536
align-items: center;
3637
}
3738

38-
.navbar{
39+
.navbar {
3940
display: flex;
4041
flex-direction: column;
4142
align-items: center;
4243
justify-content: center;
4344
text-align: center;
4445
}
4546

46-
.title{
47-
font-size:3rem;
47+
.title {
48+
font-size: 3rem;
4849
padding-top: 0rem;
4950
font-weight: 700;
5051
}
51-
.content-text{
52-
padding:1rem 0rem 3rem 0rem;
52+
53+
.content-text {
54+
padding: 1rem 0rem 3rem 0rem;
5355
font-size: 1.2rem;
5456
}
5557

5658
.button-container {
57-
display: flex;
58-
align-items: center;
59-
justify-content: center;
59+
display: flex;
60+
align-items: center;
61+
justify-content: space-around;
6062
width: 18rem;
6163
height: 18rem;
6264
background-color: var(--bg-btn-card);
6365
transition: 0.4s;
64-
border-radius: 30px;
66+
border-radius: var(--card-border-radius);
67+
flex-direction: column;
68+
position: relative;
6569
}
70+
6671
.button-container:hover {
6772
transform: translateY(-5px);
6873
}
@@ -72,17 +77,33 @@ main{
7277
justify-content: center;
7378
flex-wrap: wrap;
7479
gap: 2rem;
75-
7680
}
7781

78-
footer{
79-
padding-top: 3rem;
82+
.createdby-section {
83+
width: 100%;
8084
text-align: center;
85+
padding: 8px 0;
86+
background-color: #212128;
87+
position: absolute;
88+
bottom: 0;
89+
border-radius: 0 0 var(--card-border-radius) var(--card-border-radius);
8190
}
8291

83-
footer > a{
84-
color: white;
85-
font-weight: 700;
92+
.createdby-section a {
93+
color: rgb(129 120 255 / 1);
94+
text-decoration: none;
8695
}
8796

97+
.btn-def-text {
98+
margin-top: 20px;
99+
}
88100

101+
footer {
102+
padding-top: 3rem;
103+
text-align: center;
104+
}
105+
106+
footer>a {
107+
color: white;
108+
font-weight: 700;
109+
}

buttons/buttons.css

+6-5
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,13 @@ a:focus-visible {
536536
opacity: 0;
537537
left: 100%;
538538
}
539+
0% { background-position: 0 0; }
540+
50% { background-position: 400% 0; }
541+
100% { background-position: 0 0; }
539542
}
540543

544+
/* } */
545+
541546
.button-103:active {
542547
box-shadow: 0 0 0 0 transparent;
543548
transition: box-shadow 0.2s ease-in;
@@ -546,11 +551,7 @@ a:focus-visible {
546551
-ms-transition: box-shadow 0.2s ease-in;
547552
-o-transition: box-shadow 0.2s ease-in;
548553
}
549-
0% { background-position: 0 0; }
550-
50% { background-position: 400% 0; }
551-
100% { background-position: 0 0; }
552-
}
553-
554+
554555

555556

556557
/* -------------------------------------------------------------button 9----------------------------------------------------- */

0 commit comments

Comments
 (0)