0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/core/client/app/styles/components/dropdowns.css

127 lines
2.5 KiB
CSS
Raw Normal View History

2015-05-14 08:45:37 -05:00
/* 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;
2015-05-16 06:43:12 -05:00
padding: 5px 0;
min-width: 220px;
2015-05-14 08:45:37 -05:00
border: color(var(--lightgrey) lightness(-15%)) 1px solid;
2015-05-16 06:43:12 -05:00
background-color: #fff;
background-clip: padding-box;
2015-05-14 08:45:37 -05:00
border-radius: 4px;
box-shadow: rgba(0, 0, 0, 0.175) 0 2px 6px;
list-style: none;
2015-05-16 06:43:12 -05:00
text-align: left;
2015-05-14 08:45:37 -05:00
text-transform: none;
letter-spacing: 0;
2015-05-16 06:43:12 -05:00
font-size: 1.4rem;
font-weight: normal;
2015-05-14 08:45:37 -05:00
}
.dropdown-menu.pull-right {
right: 0;
left: auto;
}
.dropdown-menu .divider {
overflow: hidden;
2015-05-16 06:43:12 -05:00
margin: 4px 0;
height: 1px;
2015-05-14 08:45:37 -05:00
background: color(var(--lightgrey) lightness(-5%));
}
.dropdown-menu > li > a,
.dropdown-menu > li > button {
2015-06-03 09:44:12 -05:00
display: flex;
2015-05-14 08:45:37 -05:00
clear: both;
2015-05-16 06:43:12 -05:00
padding: 3px 20px;
width: 100%;
2015-05-14 08:45:37 -05:00
color: #333;
2015-05-16 06:43:12 -05:00
text-align: left;
2015-05-14 08:45:37 -05:00
white-space: nowrap;
2015-05-16 06:43:12 -05:00
line-height: 1.9em;
font-weight: normal;
2015-05-14 08:45:37 -05:00
transition: none;
}
.dropdown-menu i {
margin-right: 0.5rem;
2015-05-16 06:43:12 -05:00
font-size: 0.9em;
2015-05-14 08:45:37 -05:00
}
/* States
/* ---------------------------------------------------------- */
/* Hover/Focus */
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus,
.dropdown-menu > li > button:hover,
.dropdown-menu > li > button:focus {
background: var(--blue);
2015-05-16 06:43:12 -05:00
color: #fff;
text-decoration: none;
2015-05-14 08:45:37 -05: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;
background-color: #428bca;
2015-05-16 06:43:12 -05:00
color: #fff;
text-decoration: none;
2015-05-14 08:45:37 -05: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 {
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;
2015-05-16 06:43:12 -05:00
text-decoration: none;
2015-05-14 08:45:37 -05:00
cursor: not-allowed;
}
/* Open / Close
/* ---------------------------------------------------------- */
.open > .dropdown-menu {
display: block;
}
.open > a {
outline: 0;
}
.closed > .dropdown-menu {
display: none;
}