123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- //
- // Dropdowns
- // --------------------------------------------------
- // Dropdowns style
- .dropdown-menu {
- border: none;
- border-radius: @dropdown-border-radius;
- .shadow-8dp();
- }
- .dropdown-menu {
- &>li {
- &>a {
- border-bottom: 1px solid @dropdown-link-border;
- padding-top: @padding-base-vertical;
- padding-bottom: @padding-base-vertical;
- font-size: @font-size-nav;
- font-weight: @weight-light;
- &>.material-icons {
- margin-right: 8px;
- top: 1px;
- font-size: 22px;
- }
- &>.badge {
- float: right;
- position: relative;
- top: (@font-size-large - @font-size-base) / 2 + 1px;
- }
- }
- &:nth-last-of-type(1) {
- &>a {
- border-bottom: none;
- }
- }
- }
- }
- .dropdown-space {
- padding: 7px 20px;
- }
- .dropdown-footer {
- background: @dropdown-footer-bg;
- border-top: 1px solid @dropdown-footer-border;
- border-radius: 0px 0px @dropdown-border-radius @dropdown-border-radius;
- padding: 7px 20px;
- }
- // Upscale dropdown on small displays
- @media (max-width: @screen-sm-max) {
- .btn-group {
- position: static;
- .dropdown-menu {
- border-radius: 0px;
- margin-top: ceil((@line-height-computed + @padding-base-vertical * 2) * 1.2);
- top: auto;
- width: 100%;
- &>li>a {
- padding-top: @padding-large-vertical;
- padding-bottom: @padding-large-vertical;
- }
- }
- }
- }
- // User dropdown
- .user-dropdown {
- width: 300px;
- padding: 0px;
- .user-preview, .guest-preview {
- border-bottom: 1px solid @dropdown-divider-bg;
- margin-bottom: 8px;
- padding: 12px 20px;
- .media-heading {
- margin-top: @line-height-computed / 3;
- }
- .editable-avatar {
- margin-right: 4px;
- }
- .row {
- margin-top: @line-height-computed;
- div:first-child {
- padding-right: 4px;
- }
- div:last-child {
- padding-left: 4px;
- }
- }
- }
- .guest-preview {
- border-bottom: 0px;
- margin-bottom: 4px;
- }
- .dropdown-footer {
- margin-top: 8px;
- }
- &>li:nth-last-of-type(2) {
- &>a {
- border-bottom: none;
- }
- }
- }
|