-
Notifications
You must be signed in to change notification settings - Fork 85
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
1 parent
18a7af9
commit 0c930bb
Showing
4 changed files
with
128 additions
and
190 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 |
---|---|---|
@@ -0,0 +1,111 @@ | ||
#langselect-container { | ||
text-align: right; | ||
} | ||
|
||
#langselect ul li { | ||
display: inline-block; | ||
list-style-type: none; | ||
margin: 0 0.8em 0 0; | ||
padding: 0; | ||
} | ||
|
||
#langselect .selected { | ||
font-weight: bold; | ||
text-decoration: none; | ||
color: #2b7288; /* Dark moderate cyan */ | ||
border: 2px solid #2b7288; /* Border with the same color */ | ||
border-radius: 5px; /* Rounded corners */ | ||
padding: 0; | ||
} | ||
|
||
.language-dropdown { | ||
position: relative; | ||
display: inline-block; | ||
} | ||
|
||
.dropdown-button { | ||
background-color: #3daed2; /* Aquarius */ | ||
color: white; | ||
padding: 6px; | ||
font-size: 16px; | ||
border: none; | ||
border-radius: 5px; | ||
cursor: pointer; | ||
text-align: left; | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.dropdown-button-content { | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.lang-icon { | ||
height: 18px; | ||
margin-right: 8px; | ||
} | ||
|
||
.lang-text { | ||
display: inline-block; | ||
} | ||
|
||
.dropdown-button:hover { | ||
text-decoration: none; | ||
transition: 0.4s; | ||
opacity: 0.8; | ||
} | ||
|
||
.dropdown-content { | ||
display: none; | ||
position: absolute; | ||
background-color: #eaf8fd; /* Light cyan */ | ||
min-width: 80px; | ||
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); | ||
border-radius: 5px; | ||
z-index: 1; | ||
padding: 0; | ||
margin: 0; | ||
list-style-type: none; | ||
white-space: normal; | ||
left: 0; | ||
text-align: left; | ||
} | ||
|
||
.language-dropdown:focus-within .dropdown-content { | ||
display: block; | ||
} | ||
|
||
.dropdown-content ul { | ||
padding: 10px; | ||
margin: 0; | ||
text-align: left; | ||
} | ||
|
||
.dropdown-content li { | ||
width: 100%; | ||
white-space: nowrap; | ||
} | ||
|
||
.dropdown-content a { | ||
padding: 0px; | ||
text-decoration: none; | ||
display: block; | ||
} | ||
|
||
.dropdown-content a:hover { | ||
background-color: #f1f1f1; /* Whitesmoke */ | ||
} | ||
|
||
.selected { | ||
font-weight: bold; | ||
} | ||
|
||
/* Media query for small screens */ | ||
@media (max-height: 500px) { | ||
.dropdown-content { | ||
max-height: 200px; /* Adjust the height as needed */ | ||
overflow-y: auto; /* Enable vertical scrolling */ | ||
overflow-x: hidden; /* Disable horizontal scrolling */ | ||
} | ||
} |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.