2017-03-02 11:49:10 +03:00
|
|
|
/* Chrome has a bug with its scrollbars on this element which has been reported here: https://bugs.chromium.org/p/chromium/issues/detail?id=697381 */
|
|
|
|
.gh-cardmenu {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
margin: 0;
|
|
|
|
padding: 12px 15px;
|
|
|
|
width: 350px;
|
|
|
|
max-height: 460px;
|
|
|
|
overflow-y: auto;
|
|
|
|
background-color: #fff;
|
|
|
|
background-clip: padding-box;
|
|
|
|
border-radius: 4px;
|
|
|
|
box-shadow: 0 0 0 1px rgba(99,114,130,0.16), 0 8px 16px rgba(27,39,51,0.08);
|
|
|
|
text-transform: none;
|
|
|
|
font-size: 1.4rem;
|
|
|
|
font-weight: normal;
|
2017-03-14 14:59:34 +03:00
|
|
|
position: absolute;
|
|
|
|
z-index: 9999999; /* have to compete with codemirror */
|
|
|
|
}
|
|
|
|
|
2017-03-15 18:43:12 +03:00
|
|
|
.gh-cardmenu-button {
|
2017-04-07 21:57:39 +03:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2017-03-15 18:43:12 +03:00
|
|
|
position: absolute;
|
|
|
|
width: 30px;
|
|
|
|
height: 30px;
|
|
|
|
border: var(--midgrey) 1px solid;
|
|
|
|
background: #fff;
|
|
|
|
border-radius: 100%;
|
2017-04-11 12:57:52 +03:00
|
|
|
margin-left: -40px;
|
2017-04-07 21:57:39 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.gh-cardmenu-button svg {
|
|
|
|
height: 15px;
|
|
|
|
width: 15px;
|
2017-03-15 18:43:12 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.gh-cardmenu-button svg path {
|
|
|
|
stroke: var(--midgrey);
|
|
|
|
stroke-width: 2px;
|
2017-03-02 11:49:10 +03:00
|
|
|
}
|
|
|
|
|
2017-04-11 12:57:52 +03:00
|
|
|
@media (max-width: 1024px) {
|
|
|
|
.gh-cardmenu-button {
|
|
|
|
right:10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-03-02 11:49:10 +03:00
|
|
|
.gh-cardmenu-search {
|
|
|
|
position: relative;
|
|
|
|
width: 350px;
|
|
|
|
height: 40px;
|
2017-03-08 16:08:20 +03:00
|
|
|
margin: -12px -15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-cardmenu-search svg {
|
|
|
|
position: absolute;
|
|
|
|
top: 11px;
|
|
|
|
left: 10px;
|
|
|
|
z-index: 100;
|
|
|
|
width: 20px;
|
|
|
|
height: 19px;
|
2017-03-02 11:49:10 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.gh-cardmenu-search-input {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
height: 40px;
|
|
|
|
font-size: 1.4rem;
|
|
|
|
line-height: 40px;
|
2017-03-08 16:08:20 +03:00
|
|
|
padding: 10px 0 10px 40px;
|
2017-03-02 11:49:10 +03:00
|
|
|
border: none;
|
|
|
|
border-radius: 4px 4px 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-cardmenu-card {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
width: 80px;
|
|
|
|
height: 80px;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
2017-03-08 16:08:20 +03:00
|
|
|
.gh-cardmenu-icon {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
.gh-cardmenu-icon svg {
|
|
|
|
width: 27px;
|
|
|
|
height: 27px;
|
|
|
|
fill: var(--darkgrey);
|
2017-03-02 11:49:10 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.gh-cardmenu-label {
|
2017-03-08 16:08:20 +03:00
|
|
|
margin: 7px 0 0 0;
|
|
|
|
font-size: 1.1rem;
|
|
|
|
color: var(--midgrey);
|
|
|
|
letter-spacing: 0.2px;
|
|
|
|
font-weight: 200;
|
|
|
|
}
|
|
|
|
|
2017-03-14 14:59:34 +03:00
|
|
|
.gh-cardmenu-card:hover, .gh-cardmenu-card.selected {
|
2017-03-08 16:08:20 +03:00
|
|
|
cursor: pointer;
|
|
|
|
background: color(var(--lightgrey) l(+3%) s(-10%));
|
|
|
|
}
|
2017-03-14 14:59:34 +03:00
|
|
|
.gh-cardmenu-card:hover .gh-cardmenu-label, .gh-cardmenu-card.selected .gh-cardmenu-label {
|
2017-03-08 16:08:20 +03:00
|
|
|
color: var(--darkgrey);
|
|
|
|
font-weight: 300;
|
2017-03-02 11:49:10 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.gh-cardmenu-divider {
|
|
|
|
top: -12px;
|
|
|
|
width: 350px;
|
|
|
|
padding: 5px 0;
|
|
|
|
margin: 12px -15px;
|
|
|
|
font-size: 1.2rem;
|
|
|
|
text-align: center;
|
|
|
|
background: color(var(--lightgrey) l(+3%) s(-10%));
|
|
|
|
}
|