2015-05-14 16:45:37 +03:00
/ * Dropdowns
/* ---------------------------------------------------------- */
2017-04-05 17:26:01 +03:00
. ember-basic-dropdown-content {
z-index : 1100 ;
}
2015-05-14 16:45:37 +03:00
. dropdown {
position : relative ;
2017-04-05 17:26:01 +03:00
z-index : 1100 ;
2015-05-14 16:45:37 +03:00
}
. dropdown-toggle : focus {
outline : 0 ;
}
. dropdown-menu {
position : absolute ;
top : 100 % ;
left : 0 ;
float : left ;
margin : 2px 0 0 ;
2020-01-30 18:35:36 +03:00
padding : 6px 0 ;
2015-08-27 14:27:49 +03:00
min-width : 200px ;
2015-05-16 14:43:12 +03:00
background-color : # fff ;
background-clip : padding-box ;
2021-02-04 20:19:39 +03:00
border-radius : 3px ;
box-shadow : 0 0 0 1px rgba ( 0 , 0 , 0 , . 04 ) , 0 8px 20px -3px rgba ( 0 , 0 , 0 , . 2 ) ;
2015-05-14 16:45:37 +03:00
list-style : none ;
2015-05-16 14:43:12 +03:00
text-align : left ;
2015-05-14 16:45:37 +03:00
text-transform : none ;
2015-05-16 14:43:12 +03:00
font-size : 1 . 4rem ;
font-weight : normal ;
2015-05-14 16:45:37 +03:00
}
2021-10-06 17:29:42 +03:00
. relative-dropdown-menu . dropdown-menu {
2021-10-05 22:44:27 +03:00
position : relative ;
float : none ;
top : auto ;
left : auto ;
}
2015-05-14 16:45:37 +03:00
. dropdown-menu . pull-right {
right : 0 ;
left : auto ;
}
. dropdown-menu . divider {
overflow : hidden ;
2015-06-08 16:08:28 +03:00
margin : 8px 0 ;
2015-05-16 14:43:12 +03:00
height : 1px ;
2018-04-03 13:52:18 +03:00
background : color-mod ( # dfe1e3 lightness ( + 5 % ) ) ;
2015-05-14 16:45:37 +03:00
}
2017-02-17 08:50:07 +03:00
. dropdown-menu li {
margin : 0 ;
}
2020-02-14 12:34:01 +03:00
. dropdown-menu li > a ,
. dropdown-menu li > button {
2015-06-03 17:44:12 +03:00
display : flex ;
2015-06-08 16:08:28 +03:00
align-items : center ;
2015-05-14 16:45:37 +03:00
clear : both ;
2020-01-30 18:35:36 +03:00
padding : 6px 14px ;
2015-05-16 14:43:12 +03:00
width : 100 % ;
2021-02-04 20:19:39 +03:00
color : var ( --darkgrey ) ;
2015-05-16 14:43:12 +03:00
text-align : left ;
2015-05-14 16:45:37 +03:00
white-space : nowrap ;
2015-06-08 16:08:28 +03:00
font-size : 1 . 3rem ;
2020-01-30 18:35:36 +03:00
line-height : 1 . 4em ;
2015-05-16 14:43:12 +03:00
font-weight : normal ;
2015-05-14 16:45:37 +03:00
transition : none ;
}
2023-04-04 15:43:43 +03:00
. dropdown-menu li > button : disabled {
opacity : 0 . 4 ;
}
2017-04-07 18:23:45 +03:00
. dropdown-menu svg {
margin-right : 10px ;
height : 14px ;
width : 14px ;
line-height : 1em ;
2018-04-03 13:52:18 +03:00
fill : color-mod ( var ( --darkgrey ) lightness ( + 20 % ) ) ;
2017-04-07 18:23:45 +03:00
}
2020-02-21 12:20:08 +03:00
. dropdown-align-right {
top : calc ( 100 % + 6px ) ;
right : 10px ;
left : auto ;
}
2015-08-25 19:01:26 +03:00
@ media ( max-width : 500px ) {
2020-02-14 12:34:01 +03:00
. dropdown-menu li > a ,
. dropdown-menu li > button {
2015-08-25 19:01:26 +03:00
padding : 7px 8px ;
font-size : 1 . 5rem ;
2022-07-21 10:58:22 +03:00
letter-spacing : 0 ;
2015-08-25 19:01:26 +03:00
}
2017-04-07 18:23:45 +03:00
. dropdown-menu svg {
height : 16px ;
}
2015-08-25 19:01:26 +03:00
}
2015-05-14 16:45:37 +03:00
/ * States
/* ---------------------------------------------------------- */
/* Hover/Focus */
2020-02-14 12:34:01 +03:00
. dropdown-menu li > a : hover ,
. dropdown-menu li > a : focus ,
. dropdown-menu li > button : hover ,
. dropdown-menu li > button : focus {
2019-06-18 13:47:21 +03:00
background : color-mod ( var ( --whitegrey ) a ( 60 % ) s ( -12 % ) ) ;
2015-06-08 16:08:28 +03:00
color : var ( --darkgrey ) ;
2015-05-16 14:43:12 +03:00
text-decoration : none ;
2015-05-14 16:45:37 +03:00
}
2020-02-14 12:34:01 +03:00
. dropdown-menu li > a : hover svg ,
. dropdown-menu li > a : focus svg ,
. dropdown-menu li > button : hover svg ,
. dropdown-menu li > button : focus svg {
2019-02-22 12:43:35 +03:00
fill : var ( --darkgrey ) ;
}
2015-05-14 16:45:37 +03:00
/* Active */
. dropdown-menu > . active > a ,
. dropdown-menu > . active > a : hover ,
. dropdown-menu > . active > a : focus ,
. dropdown-menu > . active > button ,
. dropdown-menu > . active > button : hover ,
. dropdown-menu > . active > button : focus {
outline : 0 ;
2016-11-14 12:55:08 +03:00
background-color : var ( --blue ) ;
2015-05-16 14:43:12 +03:00
color : # fff ;
text-decoration : none ;
2015-05-14 16:45:37 +03:00
}
/* Disabled */
. dropdown-menu > . disabled > a ,
. dropdown-menu > . disabled > a : hover ,
. dropdown-menu > . disabled > a : focus ,
. dropdown-menu > . disabled > button ,
. dropdown-menu > . disabled > button : hover ,
. dropdown-menu > . disabled > button : focus {
2020-09-23 16:29:47 +03:00
color : var ( --midlightgrey-l1 ) ;
2015-05-14 16:45:37 +03:00
}
. dropdown-menu > . disabled > a : hover ,
. dropdown-menu > . disabled > a : focus ,
. dropdown-menu > . disabled > button : hover ,
. dropdown-menu > . disabled > button : focus {
background-color : transparent ;
background-image : none ;
2015-05-16 14:43:12 +03:00
text-decoration : none ;
2020-09-23 16:29:47 +03:00
cursor : auto ;
2015-05-14 16:45:37 +03:00
}
/ * Open / Close
/* ---------------------------------------------------------- */
. open > . dropdown-menu {
display : block ;
}
. open > a {
outline : 0 ;
}
. closed > . dropdown-menu {
display : none ;
}
2020-02-14 12:34:01 +03:00
/ * Action dropdown
/ * Dropdowns that can have secondary action button
/* ---------------------------------------------------------- */
. dropdown-action {
top : calc ( 100 % + 6px ) ;
left : auto ;
width : 210px ;
overflow-x : hidden ;
}
. dropdown-action li {
cursor : pointer ;
}
. dropdown-action li a {
display : flex ;
justify-content : space-between ;
align-items : center ;
margin-right : 0 ;
padding : 0 ;
color : var ( --darkgrey ) ;
}
. dropdown-action . dropdown-content {
2020-02-14 14:38:42 +03:00
flex-grow : 1 ;
2020-02-14 12:34:01 +03:00
max-height : 50vh ;
2020-02-14 14:38:42 +03:00
overflow-y : auto ;
2020-02-14 12:34:01 +03:00
overflow-x : hidden ;
list-style : none ;
padding : 0 ;
margin : 0 ;
}
. dropdown-action . dropdown-label {
padding : 6px 14px ;
2020-02-14 14:38:42 +03:00
width : 184px ;
2020-02-14 12:34:01 +03:00
white-space : nowrap ;
text-overflow : ellipsis ;
overflow : hidden ;
}
. dropdown-action li . selected . dropdown-label {
font-weight : 700 ;
}
. dropdown-action li . selected a : hover {
background : none ;
}
. dropdown-action . dropdown-action-icon {
display : flex ;
align-items : center ;
justify-content : center ;
opacity : 0 ;
transition : opacity ease-in-out 0 . 15s ;
padding : 4px ;
margin-top : -2px ;
margin-bottom : -2px ;
2020-02-14 14:38:42 +03:00
margin-right : 4px ;
2020-02-14 12:34:01 +03:00
border-radius : 3px ;
}
. dropdown-action a : hover . dropdown-action-icon {
opacity : 1 . 0 ;
}
. dropdown-action . dropdown-action-icon : hover {
background : var ( --whitegrey-d1 ) ;
}
. dropdown-action . dropdown-action-icon svg {
margin : 0 ;
2022-09-02 18:56:02 +03:00
fill : none ;
2020-02-14 12:34:01 +03:00
}
. dropdown-action . dropdown-footer {
list-style : none ;
padding : 0 ;
margin : 6px 0 0 ;
border-top : 1px solid var ( --whitegrey ) ;
}
. dropdown-action . dropdown-footer li : first-of-type {
margin-top : 6px ;
}
. dropdown-action . dropdown-footer a {
padding : 6px 14px ;
}
. dropdown-action . dropdown-footer a span {
display : flex ;
align-items : center ;
}
. dropdown-action . dropdown-footer a span svg {
width : 12px ;
height : 12px ;
margin-right : 6px ;
}
. dropdown-action . fade-out {
animation-duration : . 001s ;
pointer-events : none ;
2020-10-26 20:09:09 +03:00
}
2021-08-12 15:21:18 +03:00
2022-02-08 14:48:55 +03:00
. dropdown-menu . label-token svg {
2021-08-12 15:21:18 +03:00
margin-right : 0 ;
}
2021-09-08 20:29:41 +03:00
2022-02-08 14:48:55 +03:00
. gh-member-label-input . dropdown-action-icon {
2021-09-08 20:29:41 +03:00
opacity : 0 ;
transition : opacity ease-in-out 0 . 15s ;
padding : 4px ;
margin-top : -2px ;
margin-bottom : -2px ;
margin-right : 4px ;
border-radius : 3px ;
}
2022-02-08 14:48:55 +03:00
. gh-member-settings . gh-member-label-input . dropdown-action-icon {
2021-09-10 14:58:03 +03:00
margin-right : -8px ;
padding : 4px 6px ;
2022-09-02 18:56:02 +03:00
color : var ( --midgrey ) ;
}
. gh-member-settings . gh-member-label-input . dropdown-action-icon : hover {
color : var ( --darkgrey ) ;
2021-09-10 14:58:03 +03:00
}
2022-02-08 14:48:55 +03:00
. gh-member-label-input li : hover . dropdown-action-icon {
2021-09-08 20:29:41 +03:00
opacity : 1 . 0 ;
}
2022-02-08 14:48:55 +03:00
. gh-member-label-input . dropdown-action-icon : hover {
2021-09-08 20:29:41 +03:00
background : var ( --whitegrey-d1 ) ;
}
2022-02-08 14:48:55 +03:00
. gh-member-label-input . dropdown-action-icon svg {
2021-09-08 20:29:41 +03:00
margin : 0 ;
height : 14px ;
width : 14px ;
line-height : 1em ;
2022-09-02 18:56:02 +03:00
fill : none ;
2021-09-08 20:29:41 +03:00
}
2023-04-04 15:43:43 +03:00
/ * *
Post context menu
* /
. gh-context-menu-container {
visibility : hidden ;
}
/* Disable user interaction with a div that covers the full view. We don't use a javascript based approach here, because you want to close a context menu even when you click a link on the page. With js, we cannot ignore or block that link click without complex event listeners. */
. gh-context-menu-overlay {
position : fixed ;
content : '' ;
left : 0 ;
top : 0 ;
bottom : 0 ;
right : 0 ;
z-index : 1000 ;
}
. gh-context-menu-container [ data-open ] {
visibility : visible ;
}
. gh-context-menu {
position : fixed ;
2023-04-12 19:18:01 +03:00
max-width : 160px ;
2023-04-04 15:43:43 +03:00
z-index : 1001 ;
}
2023-04-12 19:18:01 +03:00
. gh-posts-context-menu {
max-width : 160px ! important ;
border-radius : var ( --border-radius ) ;
2023-04-14 12:04:11 +03:00
box-shadow :
2023-04-12 19:18:01 +03:00
0 0 2 . 3px rgba ( 0 , 0 , 0 , 0 . 028 ) ,
0 3 . 8px 7 . 8px rgba ( 0 , 0 , 0 , 0 . 042 ) ,
0 17px 35px -7px rgba ( 0 , 0 , 0 , 0 . 11 )
;
}
2023-04-14 12:04:11 +03:00
. gh-placement-top . gh-posts-context-menu {
transform : translateY ( -100 % ) ;
}
. gh-placement-left . gh-posts-context-menu {
transform : translateX ( -100 % ) ;
}
. gh-placement-top . gh-placement-left . gh-posts-context-menu {
transform : translate ( -100 % , -100 % ) ;
}
2023-04-12 19:18:01 +03:00
. gh-posts-context-menu li > button {
padding : 8px 16px ;
}
. gh-posts-context-menu li > button span {
display : flex ;
align-items : center ;
font-size : 1 . 35rem ;
}
. gh-posts-context-menu li > button span svg ,
. gh-posts-context-menu li > button : hover span svg {
fill : none ;
}
. gh-posts-context-menu li > button span svg path {
stroke-width : 2px ;
2023-04-14 12:04:11 +03:00
}
2023-05-15 11:30:32 +03:00
. gh-posts-context-menu li > button span svg . star path {
stroke-width : 1 . 8px ;
}
. gh-posts-context-menu li : last-child :: before {
display : block ;
position : relative ;
content : "" ;
margin : 5px 0 ;
width : 100 % ;
height : 1px ;
background-color : # dfe1e3 ;
}