Skip to content

Commit 5fe48db

Browse files
committed
add new button
1 parent 3598637 commit 5fe48db

File tree

2 files changed

+84
-0
lines changed

2 files changed

+84
-0
lines changed

buttons/buttons.css

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2249,3 +2249,73 @@ a:focus-visible {
22492249
}
22502250
/* Deepesh Sharma's button 1 ends*/
22512251

2252+
/* kkartik07's 2nd btn start */
2253+
.kkartik07-btn-2 {
2254+
height: 5em;
2255+
width: 12em;
2256+
border-top: 3px solid rgb(209, 203, 203);
2257+
border-right: 3px solid #CCC;
2258+
border-left: 4px solid #777;
2259+
border-bottom: 4px solid #777;
2260+
border-radius: 1em;
2261+
margin: 3em;
2262+
background-color: #999;
2263+
box-shadow: -.1em .1em 0 #000,
2264+
-.2em .2em 0 #000,
2265+
-.3em .3em 0 #000,
2266+
-.4em .4em 0 #333,
2267+
-.5em .5em 0 #333,
2268+
-.6em .6em 0 #333,
2269+
-.7em .7em 0 #333,
2270+
-.9em .9em 0 #333,
2271+
-1em 1em 0 #333,
2272+
-1.1em 1.1em 0 #333,
2273+
-1.2em 1.2em 0 #333;
2274+
transition: box-shadow 0.4s,
2275+
border-top 0.2s,
2276+
border-right 0.2s;
2277+
}
2278+
2279+
.kkartik07-btn-2:hover, .kkartik07-btn-2:focus {
2280+
border-top: 3px solid rgba(119, 119, 119, 0.699);
2281+
border-right: 3px solid rgba(119, 119, 119, 0.699);
2282+
box-shadow: .1em -.1em 0 rgba(51, 51, 51, 0.681),
2283+
.2em -.2em 0 rgba(51, 51, 51, 0.712),
2284+
-.1em .1em 0 rgba(51, 51, 51, 0.716),
2285+
-.2em .2em 0 rgba(51, 51, 51, 0.655),
2286+
-.3em .3em 0 rgba(51, 51, 51, 0.67),
2287+
inset -.1em -.1em 2em #FFF,
2288+
-.1em -.1em 2em #777;
2289+
}
2290+
2291+
.button-inside {
2292+
width: 11em;
2293+
height: 3.2em;
2294+
margin: .4em auto;
2295+
border-radius: .9em;
2296+
background-color: rgba(204, 204, 204, 0.721);
2297+
background-image: linear-gradient(135deg, rgba(204, 204, 204, 0.736), rgb(153, 144, 144));
2298+
box-shadow: inset -.15em .15em 0 rgb(124, 122, 122),
2299+
inset .1em -.1em 0 rgb(204, 204, 204);
2300+
}
2301+
2302+
.btn-text{
2303+
font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
2304+
font-size: 3em;
2305+
color: #e7e5e5;
2306+
text-align: center;
2307+
margin: auto;
2308+
text-shadow: -.01em .01em 0 #777,
2309+
-.02em .02em 0 #777,
2310+
-.03em .03em 0 #777,
2311+
-.04em .04em 0 #777,
2312+
-.05em .05em 0 #777,
2313+
-.06em .06em 0 #999,
2314+
-.07em .07em 0 #999,
2315+
-.08em .08em 0 #999,
2316+
-.09em .09em 0 #999,
2317+
-.1em .1em 0 #999,
2318+
-.1em .1em 0 #999;
2319+
}
2320+
2321+
/* kkartik07's 2nd btn end */

index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,20 @@
575575
</div>
576576
<!-- Deepesh Sharma btn end-->
577577

578+
<!-- kkartik07's button-2 start -->
579+
<div class="button-container">
580+
<div class="kkartik07-btn-2">
581+
<div class="button-inside">
582+
<div class="btn-text">HOVER</div>
583+
</div>
584+
</div>
585+
<div class="createdby-section">
586+
Created by
587+
<a href="https://github.com/kkartik07"> kkartik07 </a>
588+
</div>
589+
</div>
590+
<!-- kkartik07's button-2 end -->
591+
578592
</div>
579593

580594
</main>

0 commit comments

Comments
 (0)