You are here

dropdown.css in Open Social 8.9

.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;
}

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

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