You are here

dropdown.css in Open Social 8.8

.caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 2px;
  vertical-align: middle;
  border-top: 5px dashed;
  border-top: 5px solid \9 ;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
}

.dropup,
.dropdown {
  position: relative;
}

.dropdown-toggle:focus {
  outline: 0;
}

.dropdown-menu {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  display: none;
  float: left;
  min-width: 185px;
  max-width: 500px;
  padding: 5px 0;
  margin: 2px 0 0;
  list-style: none;
  font-size: 0.875rem;
  text-align: left;
  background-color: #fff;
  -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.16), 0 6px 12px rgba(0, 0, 0, 0.32);
          box-shadow: 0 0 6px rgba(0, 0, 0, 0.16), 0 6px 12px rgba(0, 0, 0, 0.32);
  background-clip: padding-box;
}

.dropdown-menu.pull-right {
  right: 0;
  left: auto;
}

.dropdown-menu .divider {
  height: 1px;
  margin: 11px 0;
  overflow: hidden;
  background-color: #e5e5e5;
}

.dropdown-menu li .badge {
  margin: 0;
}

.dropdown-menu li > a,
.dropdown-menu li > span {
  padding: 8px 10px;
  display: block;
  clear: both;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #555555;
}

.dropdown-menu li > a:hover,
.dropdown-menu li > span:hover {
  background-color: #f3f3f3;
}

.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
  text-decoration: none;
}

.dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus {
  text-decoration: none;
  outline: 0;
}

.dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus,
.dropdown-menu > .disabled > span:hover,
.dropdown-menu > .disabled > span:focus {
  text-decoration: none;
  background-color: transparent;
  background-image: none;
  cursor: not-allowed;
}

.open > .dropdown-menu {
  display: block;
}

.open > a {
  outline: 0;
}

.dropdown-menu-right {
  left: auto;
  right: 0;
}

.dropdown-menu-left {
  left: 0;
  right: auto;
}

.dropdown-header {
  display: block;
  padding: 3px 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #555555;
  white-space: nowrap;
}

.dropdown-backdrop {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  z-index: 990;
}

.pull-right > .dropdown-menu {
  right: 0;
  left: auto;
}

.dropup .caret,
.navbar-fixed-bottom .dropdown .caret {
  border-top: 0;
  border-bottom: 4px dashed;
  border-bottom: 4px solid \9 ;
  content: "";
}

.dropup .dropdown-menu,
.navbar-fixed-bottom .dropdown .dropdown-menu {
  top: auto;
  bottom: 100%;
  margin-bottom: 2px;
}

.dropdown-menu .divider {
  margin: 6px 0;
}

.dropdown-menu .media {
  min-width: 250px;
}

.dropdown-menu .media-left {
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.dropdown-menu .media-left img {
  vertical-align: top;
}

.dropdown-menu .media-body {
  white-space: normal;
}

.dropdown-menu .media-body a {
  white-space: nowrap;
}

.dropdown-menu--visibility {
  min-width: 240px;
  left: auto;
  right: -70px;
  padding: 0;
}

.dropdown.profile .header-nav-current-user {
  padding: 4px 10px 0;
}

.dropdown-header {
  padding: 7px 20px;
  background: white;
}

.scrollable-menu {
  height: calc(100vh - 156px);
  overflow-x: hidden;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.scrollable-menu li {
  margin: 2px 0;
}

.scrollable-menu p {
  margin-bottom: 0;
}

html:not(.js) .dropdown:focus .dropdown-menu,
html:not(.js) .dropdown:hover .dropdown-menu,
html:not(.js) .comment__actions:hover .dropdown-menu,
html:not(.js) .comment__actions:hover .dropdown-menu,
html:not(.js) .dropdown-menu:hover {
  display: block;
}

html:not(.js) .dropdown {
  cursor: pointer;
}

html:not(.js) .dropdown:focus {
  outline: none;
}

html:not(.js) .dropdown .dropdown-toggle {
  pointer-events: none;
  z-index: -1;
}

/* IE11 */

.dropdown .caret,
.enroll-action-form .caret,
.hero-footer__cta .caret {
  -webkit-transition: -webkit-transform 0.1s;
  transition: -webkit-transform 0.1s;
  transition: transform 0.1s;
  transition: transform 0.1s, -webkit-transform 0.1s;
}

.dropdown.open .caret,
.dropdown .open .caret,
.enroll-action-form.open .caret,
.enroll-action-form .open .caret,
.hero-footer__cta.open .caret,
.hero-footer__cta .open .caret {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}

.social-gtranslate-list--desktop > a:after {
  -webkit-transition: -webkit-transform 0.1s;
  transition: -webkit-transform 0.1s;
  transition: transform 0.1s;
  transition: transform 0.1s, -webkit-transform 0.1s;
}

.social-gtranslate-list--desktop.open > a:after {
  margin-top: -.4rem;
  right: auto;
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}

@media (min-width: 600px) {
  .dropdown-menu .divider.mobile {
    display: none;
  }
  .dropdown-menu li.mobile {
    display: none;
  }
  .dropdown-menu li > a,
  .dropdown-menu li > span {
    padding: 4px 10px 4px 15px;
  }
  .dropdown-menu .media-left {
    padding-right: 8px;
  }
  .dropdown-menu--visibility {
    right: 0;
  }
  .scrollable-menu {
    height: auto;
    max-height: 450px;
  }
}

@media (min-width: 600px) and (-ms-high-contrast: none) {
  *::-ms-backdrop, .dropdown-menu .media-body {
    padding-right: 17px;
  }
}

@media (min-width: 900px) {
  .dropdown-menu {
    top: 100%;
  }
  .navbar-right .dropdown-menu {
    right: 0;
    left: auto;
  }
  .navbar-right .dropdown-menu-left {
    left: 0;
    right: auto;
  }
}

@media (max-width: 599px) {
  .dropup.has-alert > a:before,
  .dropdown.has-alert > a:before {
    content: '';
    position: absolute;
    top: 11px;
    right: 7px;
    width: 12px;
    height: 12px;
    background-color: #777777;
    border-radius: 50%;
  }
}

File

themes/socialbase/assets/css/dropdown.css
View source
  1. .caret {
  2. display: inline-block;
  3. width: 0;
  4. height: 0;
  5. margin-left: 2px;
  6. vertical-align: middle;
  7. border-top: 5px dashed;
  8. border-top: 5px solid \9 ;
  9. border-right: 5px solid transparent;
  10. border-left: 5px solid transparent;
  11. }
  12. .dropup,
  13. .dropdown {
  14. position: relative;
  15. }
  16. .dropdown-toggle:focus {
  17. outline: 0;
  18. }
  19. .dropdown-menu {
  20. position: absolute;
  21. top: 0;
  22. left: 0;
  23. z-index: 1000;
  24. display: none;
  25. float: left;
  26. min-width: 185px;
  27. max-width: 500px;
  28. padding: 5px 0;
  29. margin: 2px 0 0;
  30. list-style: none;
  31. font-size: 0.875rem;
  32. text-align: left;
  33. background-color: #fff;
  34. -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.16), 0 6px 12px rgba(0, 0, 0, 0.32);
  35. box-shadow: 0 0 6px rgba(0, 0, 0, 0.16), 0 6px 12px rgba(0, 0, 0, 0.32);
  36. background-clip: padding-box;
  37. }
  38. .dropdown-menu.pull-right {
  39. right: 0;
  40. left: auto;
  41. }
  42. .dropdown-menu .divider {
  43. height: 1px;
  44. margin: 11px 0;
  45. overflow: hidden;
  46. background-color: #e5e5e5;
  47. }
  48. .dropdown-menu li .badge {
  49. margin: 0;
  50. }
  51. .dropdown-menu li > a,
  52. .dropdown-menu li > span {
  53. padding: 8px 10px;
  54. display: block;
  55. clear: both;
  56. line-height: 1.5;
  57. overflow: hidden;
  58. text-overflow: ellipsis;
  59. white-space: nowrap;
  60. color: #555555;
  61. }
  62. .dropdown-menu li > a:hover,
  63. .dropdown-menu li > span:hover {
  64. background-color: #f3f3f3;
  65. }
  66. .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
  67. text-decoration: none;
  68. }
  69. .dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus {
  70. text-decoration: none;
  71. outline: 0;
  72. }
  73. .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus,
  74. .dropdown-menu > .disabled > span:hover,
  75. .dropdown-menu > .disabled > span:focus {
  76. text-decoration: none;
  77. background-color: transparent;
  78. background-image: none;
  79. cursor: not-allowed;
  80. }
  81. .open > .dropdown-menu {
  82. display: block;
  83. }
  84. .open > a {
  85. outline: 0;
  86. }
  87. .dropdown-menu-right {
  88. left: auto;
  89. right: 0;
  90. }
  91. .dropdown-menu-left {
  92. left: 0;
  93. right: auto;
  94. }
  95. .dropdown-header {
  96. display: block;
  97. padding: 3px 20px;
  98. font-size: 14px;
  99. line-height: 1.5;
  100. color: #555555;
  101. white-space: nowrap;
  102. }
  103. .dropdown-backdrop {
  104. position: fixed;
  105. left: 0;
  106. right: 0;
  107. bottom: 0;
  108. top: 0;
  109. z-index: 990;
  110. }
  111. .pull-right > .dropdown-menu {
  112. right: 0;
  113. left: auto;
  114. }
  115. .dropup .caret,
  116. .navbar-fixed-bottom .dropdown .caret {
  117. border-top: 0;
  118. border-bottom: 4px dashed;
  119. border-bottom: 4px solid \9 ;
  120. content: "";
  121. }
  122. .dropup .dropdown-menu,
  123. .navbar-fixed-bottom .dropdown .dropdown-menu {
  124. top: auto;
  125. bottom: 100%;
  126. margin-bottom: 2px;
  127. }
  128. .dropdown-menu .divider {
  129. margin: 6px 0;
  130. }
  131. .dropdown-menu .media {
  132. min-width: 250px;
  133. }
  134. .dropdown-menu .media-left {
  135. -ms-flex-negative: 0;
  136. flex-shrink: 0;
  137. }
  138. .dropdown-menu .media-left img {
  139. vertical-align: top;
  140. }
  141. .dropdown-menu .media-body {
  142. white-space: normal;
  143. }
  144. .dropdown-menu .media-body a {
  145. white-space: nowrap;
  146. }
  147. .dropdown-menu--visibility {
  148. min-width: 240px;
  149. left: auto;
  150. right: -70px;
  151. padding: 0;
  152. }
  153. .dropdown.profile .header-nav-current-user {
  154. padding: 4px 10px 0;
  155. }
  156. .dropdown-header {
  157. padding: 7px 20px;
  158. background: white;
  159. }
  160. .scrollable-menu {
  161. height: calc(100vh - 156px);
  162. overflow-x: hidden;
  163. list-style-type: none;
  164. padding: 0;
  165. margin: 0;
  166. }
  167. .scrollable-menu li {
  168. margin: 2px 0;
  169. }
  170. .scrollable-menu p {
  171. margin-bottom: 0;
  172. }
  173. html:not(.js) .dropdown:focus .dropdown-menu,
  174. html:not(.js) .dropdown:hover .dropdown-menu,
  175. html:not(.js) .comment__actions:hover .dropdown-menu,
  176. html:not(.js) .comment__actions:hover .dropdown-menu,
  177. html:not(.js) .dropdown-menu:hover {
  178. display: block;
  179. }
  180. html:not(.js) .dropdown {
  181. cursor: pointer;
  182. }
  183. html:not(.js) .dropdown:focus {
  184. outline: none;
  185. }
  186. html:not(.js) .dropdown .dropdown-toggle {
  187. pointer-events: none;
  188. z-index: -1;
  189. }
  190. /* IE11 */
  191. .dropdown .caret,
  192. .enroll-action-form .caret,
  193. .hero-footer__cta .caret {
  194. -webkit-transition: -webkit-transform 0.1s;
  195. transition: -webkit-transform 0.1s;
  196. transition: transform 0.1s;
  197. transition: transform 0.1s, -webkit-transform 0.1s;
  198. }
  199. .dropdown.open .caret,
  200. .dropdown .open .caret,
  201. .enroll-action-form.open .caret,
  202. .enroll-action-form .open .caret,
  203. .hero-footer__cta.open .caret,
  204. .hero-footer__cta .open .caret {
  205. -webkit-transform: rotate(180deg);
  206. transform: rotate(180deg);
  207. }
  208. .social-gtranslate-list--desktop > a:after {
  209. -webkit-transition: -webkit-transform 0.1s;
  210. transition: -webkit-transform 0.1s;
  211. transition: transform 0.1s;
  212. transition: transform 0.1s, -webkit-transform 0.1s;
  213. }
  214. .social-gtranslate-list--desktop.open > a:after {
  215. margin-top: -.4rem;
  216. right: auto;
  217. -webkit-transform: rotate(180deg);
  218. transform: rotate(180deg);
  219. }
  220. @media (min-width: 600px) {
  221. .dropdown-menu .divider.mobile {
  222. display: none;
  223. }
  224. .dropdown-menu li.mobile {
  225. display: none;
  226. }
  227. .dropdown-menu li > a,
  228. .dropdown-menu li > span {
  229. padding: 4px 10px 4px 15px;
  230. }
  231. .dropdown-menu .media-left {
  232. padding-right: 8px;
  233. }
  234. .dropdown-menu--visibility {
  235. right: 0;
  236. }
  237. .scrollable-menu {
  238. height: auto;
  239. max-height: 450px;
  240. }
  241. }
  242. @media (min-width: 600px) and (-ms-high-contrast: none) {
  243. *::-ms-backdrop, .dropdown-menu .media-body {
  244. padding-right: 17px;
  245. }
  246. }
  247. @media (min-width: 900px) {
  248. .dropdown-menu {
  249. top: 100%;
  250. }
  251. .navbar-right .dropdown-menu {
  252. right: 0;
  253. left: auto;
  254. }
  255. .navbar-right .dropdown-menu-left {
  256. left: 0;
  257. right: auto;
  258. }
  259. }
  260. @media (max-width: 599px) {
  261. .dropup.has-alert > a:before,
  262. .dropdown.has-alert > a:before {
  263. content: '';
  264. position: absolute;
  265. top: 11px;
  266. right: 7px;
  267. width: 12px;
  268. height: 12px;
  269. background-color: #777777;
  270. border-radius: 50%;
  271. }
  272. }