-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change admin edit tools into a disclosure.
Less disruptive, cleaner.
- Loading branch information
Showing
3 changed files
with
62 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,53 @@ | ||
.mc-toggle-edit { | ||
all: unset; | ||
height: 32px; | ||
width: 32px; | ||
box-sizing: border-box; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
background: rgba( 0,0,0,.04 ); | ||
color: #333; | ||
} | ||
|
||
.mc-toggle-edit[aria-expanded=true] { | ||
background: rgba( 0,0,0,.9 ); | ||
color: #fff; | ||
} | ||
|
||
.mc-event .mc_edit_links, | ||
.my-calendar-modal .mc_edit_links, | ||
.mc-main .mc_edit_links, | ||
.mc-event .mc_edit_links { | ||
font-size: 14px; | ||
font-family: sans-serif; | ||
line-height: 1.62; | ||
margin: 1.5rem 0 .5rem 0 !important; | ||
clear: both; | ||
background: var(--primary-light); | ||
border-radius: 10px; | ||
border: 1px solid var(--highlight-dark); | ||
padding: 0 8px; | ||
.mc-main .details .mc_edit_links { | ||
position: relative; | ||
} | ||
|
||
.mc-event .mc_edit_links li, | ||
.my-calendar-modal .mc_edit_links li, | ||
.mc-main .details .mc_edit_links li, | ||
.mc-event .mc_edit_links ul, | ||
.my-calendar-modal .mc_edit_links ul, | ||
.mc-main .details .mc_edit_links ul { | ||
list-style: none; | ||
margin: 4px 0; | ||
padding: 0; | ||
display: flex; | ||
gap: 8px; | ||
} | ||
|
||
.mc-main .my-calendar-cards .mc_edit_links { | ||
border: none; | ||
display: none; | ||
position: absolute; | ||
background: #fff; | ||
border: 1px solid; | ||
padding: 1rem; | ||
bottom: 0; | ||
padding-bottom: 0; | ||
margin-bottom: 0; | ||
left: 34px; | ||
list-style: none; | ||
z-index: 2; | ||
box-shadow: 3px 3px 1px #ccc; | ||
padding: 4px; | ||
margin: 0; | ||
} | ||
|
||
.mc-main .my-calendar-cards .card-event .details { | ||
padding-bottom: 3rem; | ||
.mc-event .mc_edit_links ul a, | ||
.my-calendar-modal .mc_edit_links ul a, | ||
.mc-main .details .mc_edit_links ul a { | ||
padding: 4px; | ||
font-size: 1rem; | ||
display: block; | ||
} | ||
|
||
.mc-main .mc_edit_links a { | ||
color: var(--primary-dark); | ||
display: inline !important; | ||
.mc-event .mc_edit_links ul a:hover, | ||
.my-calendar-modal .mc_edit_links ul a:hover, | ||
.mc-main .details .mc_edit_links ul a:hover { | ||
background: rgba( 0,0,0,.04 ); | ||
} |
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