_dropdowns.scss 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. /* Dropdown */
  2. .dropdown-menu {
  3. border: 0px;
  4. border-radius: 3px;
  5. box-shadow: 0 1px 11px rgba(0, 0, 0, 0.15) !important;
  6. padding-bottom: 8px;
  7. margin-top: 3px;
  8. }
  9. /* Notification dropdown */
  10. .dropdown-title {
  11. border-bottom: 1px solid $grey-color;
  12. color: #444444;
  13. font-size: 14px;
  14. font-weight: 600;
  15. padding: 12px 15px;
  16. text-align: center;
  17. }
  18. .notif-box, .messages-notif-box {
  19. width: 280px;
  20. padding: 0 !important;
  21. .notif-center a {
  22. display: flex;
  23. color: #4d585f;
  24. &:hover {
  25. text-decoration: none;
  26. background: #fafafa;
  27. transition: all .2s;
  28. }
  29. .notif-icon {
  30. display: inline-flex;
  31. width: 40px;
  32. height: 40px;
  33. margin: 10px;
  34. align-items: center;
  35. justify-content: center;
  36. background: #eee;
  37. border-radius: 50%;
  38. }
  39. .notif-img {
  40. display: inline-flex;
  41. width: 40px;
  42. height: 40px;
  43. margin: 10px;
  44. align-items: center;
  45. justify-content: center;
  46. background: #eee;
  47. border-radius: 50%;
  48. img {
  49. width: 100%;
  50. height: 100%;
  51. border-radius: 50%;
  52. }
  53. }
  54. .notif-icon {
  55. &.notif-default, &.notif-primary, &.notif-secondary, &.notif-info, &.notif-success, &.notif-warning, &.notif-danger {
  56. color: $white-color !important;
  57. }
  58. &.notif-default {
  59. background: $dark-color !important;
  60. }
  61. &.notif-primary {
  62. background: $primary-color !important;
  63. }
  64. &.notif-secondary {
  65. background: $secondary-color !important;
  66. }
  67. &.notif-info {
  68. background: $info-color !important;
  69. }
  70. &.notif-success {
  71. background: $success-color !important;
  72. }
  73. &.notif-warning {
  74. background: $warning-color !important;
  75. }
  76. &.notif-danger {
  77. background: $danger-color !important;
  78. }
  79. i {
  80. font-size: 15px;
  81. }
  82. }
  83. .notif-content {
  84. padding: 10px 15px 10px 0;
  85. }
  86. .message-content {
  87. padding: 7px 15px 10px 0;
  88. }
  89. .notif-content {
  90. .subject {
  91. font-size: 13px;
  92. font-weight: 600;
  93. display: block;
  94. margin-bottom: 2px;
  95. }
  96. .block {
  97. font-size: 13px;
  98. line-height: 20px;
  99. display: block;
  100. }
  101. .time {
  102. color: #7d8c95;
  103. font-size: 11px;
  104. }
  105. }
  106. }
  107. .see-all {
  108. border-top: 1px solid $grey-color;
  109. display: flex;
  110. align-items: center;
  111. justify-content: space-between;
  112. padding: 10px 20px;
  113. color: #555;
  114. font-size: 13px;
  115. font-weight: $font-weight-normal;
  116. text-decoration: none;
  117. &:hover {
  118. display: flex;
  119. align-items: center;
  120. justify-content: space-between;
  121. padding: 10px 20px;
  122. color: #555;
  123. font-size: 13px;
  124. font-weight: $font-weight-normal;
  125. text-decoration: none;
  126. }
  127. i {
  128. float: right;
  129. }
  130. }
  131. }
  132. .notif-box {
  133. .notif-scroll {
  134. max-height: 256px;
  135. }
  136. }
  137. .messages-notif-box {
  138. .message-notif-scroll {
  139. max-height: 250px;
  140. }
  141. .notif-center a {
  142. border-bottom: 1px solid $grey-color;
  143. &:last-child {
  144. border-bottom: 0px;
  145. }
  146. .notif-content {
  147. padding: 7px 15px 7px 5px;
  148. }
  149. }
  150. }
  151. /* User Dropdown */
  152. .dropdown-user {
  153. width: 260px;
  154. }
  155. .user-box {
  156. display: flex;
  157. padding: .25rem 1rem;
  158. .u-text {
  159. padding: 0 10px;
  160. h4 {
  161. margin-bottom: 5px;
  162. margin-top: 4px;
  163. font-size: 14px;
  164. font-weight: $font-weight-normal;
  165. line-height: 1;
  166. }
  167. .text-muted {
  168. font-size: 12px;
  169. margin-bottom: 5px;
  170. }
  171. .btn {
  172. font-size: 11px;
  173. }
  174. }
  175. }
  176. .caret {
  177. display: inline-block;
  178. width: 0;
  179. height: 0;
  180. margin-left: .255em;
  181. vertical-align: .255em;
  182. content: "";
  183. border-top: .3em solid;
  184. border-right: .3em solid $transparent-bg;
  185. border-bottom: 0;
  186. border-left: .3em solid $transparent-bg;
  187. }
  188. /* Quick Actions Dropdown */
  189. .quick-actions {
  190. width: 350px;
  191. padding: 0px;
  192. &:after {
  193. border-bottom-color: $primary-color !important;
  194. }
  195. .quick-actions-header {
  196. display: flex;
  197. align-items: center;
  198. flex-direction: column;
  199. background: $primary-color;
  200. color: #fff;
  201. padding: 15px;
  202. border-radius: 3px 3px 0 0;
  203. .title {
  204. font-size: 18px;
  205. }
  206. .subtitle {
  207. font-size: 13px;
  208. }
  209. }
  210. .quick-actions-items {
  211. padding: 15px 7.5px;
  212. }
  213. a {
  214. &:hover {
  215. text-decoration: none;
  216. }
  217. }
  218. .quick-actions-item {
  219. display: flex;
  220. flex-direction: column;
  221. margin: 7.5px 7.5px;
  222. padding: 10px;
  223. align-items: center;
  224. color: #1572E8;
  225. border: 1px solid $grey-color;
  226. border-bottom: 1px solid $grey-color;
  227. border-radius: 3px;
  228. transition: all .2s;
  229. &:hover {
  230. background: #fdfdff;
  231. color: $primary-color;
  232. box-shadow: 3px 3px 10px #f7f1f1
  233. }
  234. i {
  235. color: #7d8c95;
  236. font-size: 27px;
  237. }
  238. .text {
  239. text-align: center;
  240. font-size: 13px;
  241. margin-top: 8px;
  242. }
  243. }
  244. @mixin quick-actions-state($color) {
  245. &:after {
  246. border-bottom-color: $color !important;
  247. }
  248. .quick-actions-header {
  249. background: $color;
  250. }
  251. .quick-actions-item {
  252. color: $color;
  253. }
  254. }
  255. &.quick-actions-default {
  256. @include quick-actions-state($dark-color);
  257. }
  258. &.quick-actions-primary {
  259. @include quick-actions-state($primary-color);
  260. }
  261. &.quick-actions-secondary {
  262. @include quick-actions-state($secondary-color);
  263. }
  264. &.quick-actions-info {
  265. @include quick-actions-state($info-color);
  266. }
  267. &.quick-actions-warning {
  268. @include quick-actions-state($warning-color);
  269. }
  270. &.quick-actions-success {
  271. @include quick-actions-state($success-color);
  272. }
  273. &.quick-actions-danger {
  274. @include quick-actions-state($danger-color);
  275. }
  276. }
  277. @media screen and (max-width: 991px) {
  278. %max-height-notif {
  279. max-height: calc(100vh - 200px);
  280. }
  281. .notif-box {
  282. .notif-scroll {
  283. @extend %max-height-notif;
  284. }
  285. }
  286. .messages-notif-box {
  287. .message-notif-scroll {
  288. @extend %max-height-notif;
  289. }
  290. }
  291. .dropdown-user {
  292. .dropdown-user-scroll {
  293. max-height: calc(100vh - 132px);
  294. }
  295. }
  296. .quick-actions {
  297. .quick-actions-scroll {
  298. @extend %max-height-notif;
  299. }
  300. }
  301. }
  302. @media screen and (min-width: 991px){
  303. .navbar-header {
  304. .dropdown-menu {
  305. margin-top: 13px;
  306. &:after {
  307. border-bottom: 8px solid #fff;
  308. border-left: 8px solid transparent;
  309. border-right: 8px solid transparent;
  310. content: "";
  311. right: 10px;
  312. top: -8px;
  313. position: absolute;
  314. z-index: 1001;
  315. }
  316. }
  317. }
  318. }