forked from fossasia/open-event-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature-9082 Enhance language dropdown button (fossasia#9105)
* feature-9082: Enhance language dropdown button * feature-9082: Enhance language dropdown button * fix css * fix UI * fix missing header * fix missing header * fix missing header * fix missing header * fix missing header * fix missing header * avoid using css inline * feature-9082: Fix css dropdown side panel * feature-9082: Fix css dropdown side panel * feature-9082: Fix css dropdown side panel --------- Co-authored-by: Khang On - TMA <[email protected]> Co-authored-by: ntthitrinh <[email protected]>
- Loading branch information
1 parent
d776537
commit 28b3a36
Showing
5 changed files
with
157 additions
and
94 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
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
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,80 +1,101 @@ | ||
.translation-dropdown-container { | ||
height: 3rem; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
.translation.menu { | ||
left: -6px !important; | ||
width: 9.6rem !important; | ||
} | ||
|
||
.translation-dropdown-wrapper { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
flex: 1; | ||
.language.icon { | ||
font-size: 1.8em; | ||
color: #808080; | ||
} | ||
|
||
.translation-dropdown { | ||
padding: 2px; | ||
display: flex; | ||
justify-content: space-between; | ||
flex-direction: row; | ||
align-items: center; | ||
width: 100%; | ||
background-color: #d3d3d3; | ||
} | ||
|
||
.translation-dropdown-component { | ||
.block-side-panel { | ||
display: inline-block; | ||
} | ||
margin-left: auto; | ||
|
||
.translation-dropdown .ui.dropdown { | ||
background-color: #f9f9f9; | ||
border: 1px solid #ccc; | ||
border-radius: 4px; | ||
padding: 8px; | ||
} | ||
.translation-dropdown-container { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
width: 95px !important; | ||
height: 33px !important; | ||
margin-left: 10px !important; | ||
|
||
.translation-dropdown .ui.dropdown .menu { | ||
background-color: #f9f9f9; | ||
} | ||
.menu.transition.visible { | ||
font-size: small !important; | ||
width: 115px !important; | ||
} | ||
|
||
.translation-dropdown .ui.dropdown .item { | ||
color: #333; | ||
} | ||
.text { | ||
font-size: small !important; | ||
color: #808080 !important; | ||
} | ||
} | ||
|
||
.translation-dropdown .ui.dropdown i.dropdown.icon { | ||
color: #333; | ||
} | ||
.translation-dropdown-button { | ||
border-radius: .28571429rem; | ||
border-top-left-radius: .285714rem; | ||
border-top-right-radius: .285714rem; | ||
border-bottom-right-radius: .285714rem; | ||
border-bottom-left-radius: .285714rem; | ||
font-family: sans-serif; | ||
font-size: 100%; | ||
line-height: 1.15; | ||
text-rendering: auto; | ||
color: buttontext; | ||
letter-spacing: normal; | ||
word-spacing: normal; | ||
text-transform: none; | ||
text-shadow: none; | ||
display: flex; | ||
justify-content: space-evenly; | ||
flex-direction: column; | ||
text-align: center; | ||
align-items: flex-start; | ||
cursor: default; | ||
box-sizing: border-box; | ||
background-color: buttonface; | ||
padding: 1px 6px; | ||
border-image: initial; | ||
} | ||
|
||
.translation-dropdown-button { | ||
width: 9.6rem; | ||
border-radius: .28571429rem; | ||
border-top-left-radius: .285714rem; | ||
border-top-right-radius: .285714rem; | ||
border-bottom-right-radius: .285714rem; | ||
border-bottom-left-radius: .285714rem; | ||
font-family: sans-serif; | ||
font-size: 100%; | ||
line-height: 1.15; | ||
text-rendering: auto; | ||
color: buttontext; | ||
letter-spacing: normal; | ||
word-spacing: normal; | ||
text-transform: none; | ||
text-shadow: none; | ||
display: flex; | ||
justify-content: space-evenly; | ||
flex-direction: column; | ||
text-align: center; | ||
align-items: flex-start; | ||
cursor: default; | ||
box-sizing: border-box; | ||
background-color: buttonface; | ||
padding: 1px 6px; | ||
border-image: initial; | ||
} | ||
.dropdown-toggle { | ||
width: 100%; | ||
|
||
.translation.menu { | ||
left: -6px !important; | ||
margin-top: 10px !important; | ||
width: 9.6rem !important; | ||
.translation-dropdown-wrapper { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
flex: 1; | ||
|
||
.translation-dropdown-component { | ||
display: inline-block; | ||
|
||
.translation-dropdown-icon { | ||
margin-left: 0 !important; | ||
text-align: right; | ||
color: #808080; | ||
} | ||
} | ||
|
||
.translation-length { | ||
font-size: .8em; | ||
margin-left: 5px; | ||
background-color: #808080; | ||
border-radius: 100%; | ||
color: #fff; | ||
padding: 2px 5px; | ||
margin-top: 1px; | ||
} | ||
} | ||
|
||
.translate-hidden { | ||
display: none !important; | ||
} | ||
} | ||
|
||
.translation-dropdown-container .ui.dropdown .menu > .custom-item { | ||
padding: 16px 4px !important; | ||
} | ||
} | ||
|