Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Focus on Shine effect buttons #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -354,33 +354,33 @@ <h2>Text stretch</h2>
<div class="buttons-section">
<h2>Shine effect</h2>
<div class="btn-box">
<div class="btn-container">
<button class="btn btn-shine-effect btn-shine-effect--gray">
<div class="btn-container" >
<button class="btn btn-shine-effect btn-shine-effect--gray" id="focus1">
<span class="btn-shine-effect-span">Click me</span>
</button>
</div>
<div class="btn-container">
<button class="btn btn-shine-effect btn-shine-effect--orange">
<button class="btn btn-shine-effect btn-shine-effect--orange" id="focus2">
<span class="btn-shine-effect-span">Click me</span>
</button>
</div>
<div class="btn-container">
<button class="btn btn-shine-effect btn-shine-effect--red">
<button class="btn btn-shine-effect btn-shine-effect--red" id="focus3">
<span class="btn-shine-effect-span">Click me</span>
</button>
</div>
<div class="btn-container">
<button class="btn btn-shine-effect btn-shine-effect--blue">
<button class="btn btn-shine-effect btn-shine-effect--blue" id="focus4">
<span class="btn-shine-effect-span">Click me</span>
</button>
</div>
<div class="btn-container">
<button class="btn btn-shine-effect btn-shine-effect--green">
<button class="btn btn-shine-effect btn-shine-effect--green" id="focus5">
<span class="btn-shine-effect-span">Click me</span>
</button>
</div>
<div class="btn-container">
<button class="btn btn-shine-effect btn-shine-effect--purple">
<button class="btn btn-shine-effect btn-shine-effect--purple" id="focus6">
<span class="btn-shine-effect-span">Click me</span>
</button>
</div>
Expand Down
36 changes: 36 additions & 0 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -2433,3 +2433,39 @@ right: 0;
margin: 3px 0;
}

#focus1:focus{
box-shadow: 0 0 0 2px #ffffff, 0 0 3px 5px #333;
outline: 2px dotted transparent;
outline-offset: 2px;

}
#focus2:focus {
box-shadow: 0 0 0 2px #ffffff, 0 0 3px 5px #feae00;
outline: 2px dotted transparent;
outline-offset: 2px;

}
#focus3:focus {
box-shadow: 0 0 0 2px #ffffff, 0 0 3px 5px #ef233c;
outline: 2px dotted transparent;
outline-offset: 2px;

}
#focus4:focus {
box-shadow: 0 0 0 2px #ffffff, 0 0 3px 5px #3a86ff;
outline: 2px dotted transparent;
outline-offset: 2px;

}
#focus5:focus {
box-shadow: 0 0 0 2px #ffffff, 0 0 3px 5px #80ed99;
outline: 2px dotted transparent;
outline-offset: 2px;

}
#focus6:focus {
box-shadow: 0 0 0 2px #ffffff, 0 0 3px 5px #3d348b;
outline: 2px dotted transparent;
outline-offset: 2px;

}