forked from zendesk/copenhagen_theme
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(user-profile): Add {{actions}} helper to the user profile page. …
…This includes support for split buttons
- Loading branch information
1 parent
225694e
commit f2aa052
Showing
5 changed files
with
104 additions
and
24 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,47 @@ | ||
/***** Split button *****/ | ||
.split-button { | ||
display: flex; | ||
} | ||
|
||
.split-button button { | ||
@extend .button; | ||
background-color: $brand_color; | ||
border: 0; | ||
color: $brand_text_color; | ||
line-height: normal; | ||
outline-color: $brand_color; | ||
padding: 8px 20px; | ||
} | ||
|
||
.split-button button:not(:only-child) { | ||
&:first-child { | ||
[dir="rtl"] & { | ||
border-left: 1px solid $brand_text_color; | ||
border-top-left-radius: unset; | ||
border-bottom-left-radius: unset; | ||
} | ||
|
||
[dir="ltr"] & { | ||
border-right: 1px solid $brand_text_color; | ||
border-top-right-radius: unset; | ||
border-bottom-right-radius: unset; | ||
} | ||
} | ||
|
||
&:last-child { | ||
width: 26px; | ||
min-width: 26px; | ||
max-width: 26px; | ||
padding: 0; | ||
|
||
[dir="rtl"] & { | ||
border-top-right-radius: unset; | ||
border-bottom-right-radius: unset; | ||
} | ||
|
||
[dir="ltr"] & { | ||
border-top-left-radius: unset; | ||
border-bottom-left-radius: unset; | ||
} | ||
} | ||
} |
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