-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
209 additions
and
69 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
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,14 +1,55 @@ | ||
button { | ||
border-radius: 5px; | ||
padding: 8px; | ||
background: var(--ButtonBackground); | ||
color: var(--ButtonText); | ||
border: none; | ||
text-decoration: none; | ||
font-size: 18px; | ||
} | ||
|
||
button a{ | ||
color: var(--Link); | ||
text-decoration: none; | ||
} | ||
border-radius: 5px; | ||
padding: 12px 16px; | ||
background: var(--ButtonBackground); | ||
color: var(--ButtonText); | ||
border: none; | ||
text-decoration: none; | ||
font-size: 16px; | ||
cursor: pointer; | ||
transition: background 0.3s ease, color 0.3 ease; | ||
display: inline-flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
button a { | ||
color: inherit; | ||
text-decoration: none; | ||
} | ||
|
||
/* Hover and active states */ | ||
button:hover { | ||
background: var( | ||
--ButtonHoverBackground, | ||
darken(var(--ButtonBackground), 10%) | ||
); | ||
} | ||
|
||
button:active { | ||
background: var( | ||
--ButtonActiveBackground, | ||
darken(var(--ButtonBackground), 20%) | ||
); | ||
} | ||
|
||
/* Focus styles for accessibility */ | ||
button:focus { | ||
outline: 2px solid var(--ButtonFocusOutline, #000); | ||
outline-offset: 2px; | ||
} | ||
|
||
/* Responsive design */ | ||
@media (max-width: 768px) { | ||
button { | ||
font-size: 14px; /* Adjust font size for medium screens */ | ||
padding: 10px 14px; /* Adjust padding for medium screens */ | ||
} | ||
} | ||
|
||
@media (max-width: 420px) { | ||
button { | ||
font-size: 12px; /* Adjust font size for small screens */ | ||
padding: 8px 12px; /* Adjust padding for small screens */ | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,71 @@ | ||
.ImageSlider { | ||
position: relative; | ||
display: inline-block; | ||
line-height: 0; | ||
border-radius: 1em; | ||
position: relative; | ||
display: block; | ||
overflow: hidden; | ||
border-radius: 1em; | ||
max-width: 100%; | ||
} | ||
|
||
.ImageSlider > div { | ||
border-right: 2px solid #00000099; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 25px; | ||
max-width: 100%; | ||
overflow: hidden; | ||
resize: horizontal; | ||
border-right: 2px solid rgba(0, 0, 0, 0.6); | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 30px; | ||
max-width: 100%; | ||
overflow: hidden; | ||
resize: horizontal; | ||
z-index: 1; | ||
} | ||
|
||
.ImageSlider > div:before { | ||
content: ""; | ||
position: absolute; | ||
right: 0; | ||
bottom: 0; | ||
width: 13px; | ||
height: 13px; | ||
padding: 5px; | ||
background: linear-gradient(-45deg, white 50%, transparent 0); | ||
background-clip: content-box; | ||
cursor: ew-resize; | ||
filter: drop-shadow(0 0 10px black); | ||
content: ""; | ||
position: absolute; | ||
right: 0; | ||
bottom: 0; | ||
width: 16px; | ||
height: 16px; | ||
padding: 5px; | ||
background: linear-gradient(-45deg, white 50%, transparent 0); | ||
background-clip: content-box; | ||
cursor: ew-resize; | ||
filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.6)); | ||
} | ||
|
||
.ImageSlider img { | ||
border-radius: 1em; | ||
user-select: none; | ||
max-width: 730px; | ||
display: block; | ||
border-radius: 1em; | ||
user-select: none; | ||
width: 100%; | ||
height: auto; | ||
} | ||
|
||
.ImageShowcase { | ||
width: 100%; | ||
height: 100%; | ||
object-fit: cover; | ||
border-radius: 15px; | ||
width: 100%; | ||
height: auto; | ||
object-fit: cover; | ||
border-radius: 15px; | ||
} | ||
|
||
/* Responsive design */ | ||
@media (max-width: 768px) { | ||
.ImageSlider > div { | ||
width: 25px; /* Smaller handle for medium screens */ | ||
} | ||
|
||
.ImageSlider > div:before { | ||
width: 14px; /* Adjusted handle size */ | ||
height: 14px; /* Adjusted handle size */ | ||
} | ||
} | ||
|
||
@media (max-width: 420px) { | ||
.ImageSlider > div { | ||
width: 20px; /* Smaller handle for small screens */ | ||
} | ||
|
||
.ImageSlider > div:before { | ||
width: 12px; /* Adjusted handle size */ | ||
height: 12px; /* Adjusted handle size */ | ||
} | ||
} |
Empty file.