Ghost/ghost/admin/app/styles/components/dropdowns.css
John O'Nolan eb08826f3e Multiple minor visual style fixes
- Lighter dropdown shadow
- Removed display:flex from .btn because safari can't handle it on <button> elements, where it will immediately set all text-alignment to "left" with no way to change. I haven't been able to find any regressions for this change so far. Can't remember why buttons were supposed to be flexbox anyway. Maybe for icon alignment within buttons, but I can't find any such examples within the app.
- Safari thinks that user-select: all; means a single click should SELECT ALL THE THINGS. Removed/replaced with user-select: text; which makes it behave like Chrome; click and drag to select.
- Increased hit area for "?" button
- Removed :active style for post-edit button on content management screen, adjusted position
- Increased contrast on tag description, tag count, and view blog links

See #5652
2015-08-12 10:29:40 +02:00

131 lines
2.7 KiB
CSS

/* Dropdowns
/* ---------------------------------------------------------- */
.dropdown {
position: relative;
z-index: 1000;
}
.dropdown-toggle:focus {
outline: 0;
}
.dropdown-menu {
position: absolute;
top: 100%;
left: 0;
float: left;
margin: 2px 0 0;
padding: 10px;
min-width: 220px;
border: #dfe1e3 1px solid;
background-color: #fff;
background-clip: padding-box;
border-radius: 4px;
box-shadow: rgba(0, 0, 0, 0.10) 0 2px 6px;
list-style: none;
text-align: left;
text-transform: none;
letter-spacing: 0;
font-size: 1.4rem;
font-weight: normal;
}
.dropdown-menu.pull-right {
right: 0;
left: auto;
}
.dropdown-menu .divider {
overflow: hidden;
margin: 8px 0;
height: 1px;
background: color(#dfe1e3 lightness(+5%));
}
.dropdown-menu > li > a,
.dropdown-menu > li > button {
display: flex;
align-items: center;
clear: both;
padding: 6px 10px;
width: 100%;
border-radius: 3px;
color: color(var(--darkgrey) lightness(+20%));
text-align: left;
white-space: nowrap;
font-size: 1.3rem;
line-height: 1em;
font-weight: normal;
transition: none;
}
.dropdown-menu i {
margin-right: 10px;
font-size: 14px;
line-height: 1em;
}
/* States
/* ---------------------------------------------------------- */
/* Hover/Focus */
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus,
.dropdown-menu > li > button:hover,
.dropdown-menu > li > button:focus {
background: color(var(--blue) alpha(-85%));
color: var(--darkgrey);
text-decoration: none;
}
/* 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;
background-color: #428bca;
color: #fff;
text-decoration: none;
}
/* 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 {
color: #777;
}
.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;
text-decoration: none;
cursor: not-allowed;
}
/* Open / Close
/* ---------------------------------------------------------- */
.open > .dropdown-menu {
display: block;
}
.open > a {
outline: 0;
}
.closed > .dropdown-menu {
display: none;
}