main.css 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. #notifications > .no-notification {
  2. background-color: #f7f7f7;
  3. border-radius: 5px;
  4. padding: 2.5rem;
  5. color: #545454;
  6. border-bottom: 1px solid #cecece;
  7. }
  8. .notification_menu{
  9. display: inline-block;
  10. user-select: none;
  11. }
  12. .notification_menu .dropdown-toggle::after{
  13. display:none;
  14. }
  15. .notification_menu .dropdown-toggle{
  16. position: relative;
  17. font-size: 20px;
  18. }
  19. .notification_menu .dropdown-menu {
  20. padding: 0;
  21. }
  22. .notification_menu .notification-item p {
  23. overflow-y: hidden;
  24. height: 20px;
  25. /*max-height: 80px;*/
  26. }
  27. .btn .badge.notification-number{
  28. padding: 4px 6px;
  29. position: absolute;
  30. right: -1px;
  31. height: 19px;
  32. top: 0;
  33. font-size: 10px;
  34. display: none;
  35. z-index: 1;
  36. }
  37. .notification-template{
  38. display: none;
  39. }
  40. ul.notifications {
  41. width: 100%;
  42. min-width: 500px;
  43. max-width: 800px;
  44. margin: auto;
  45. padding: 0;
  46. }
  47. .notification_menu .dropdown-item.notification {
  48. text-align: center;
  49. padding: 1.5rem;
  50. opacity: 1;
  51. }
  52. ul.notifications > li.unread{
  53. border-left: 5px solid #00a9ff;
  54. opacity: 1;
  55. }
  56. .notification_menu .dropdown-item.notification-unread {
  57. opacity: 1;
  58. background-color: #95c8ff0d;
  59. position: relative;
  60. }
  61. .dropdown-item.notification-unread:before {
  62. content: "";
  63. position: absolute;
  64. height: 100%;
  65. width: 3px;
  66. left: 0px;
  67. top: calc((100% - 100%) / 2);
  68. border-left: 3px solid #00a9ff;
  69. border-radius: 5px;
  70. transform: rotate(-180deg);
  71. }
  72. .dropdown-item.notification-unread:hover {
  73. background-color: #95c8ff2e;
  74. }
  75. ul.notifications > li{
  76. position: relative;
  77. padding: 15px;
  78. padding-right: 20%;
  79. border-left: 0px solid #cccccc;
  80. border-bottom: 1px solid #cecece;
  81. list-style-type: none;
  82. border-radius: 3px;
  83. background-color: #f7f7f7;
  84. margin-bottom: 10px;
  85. opacity: 0.6;
  86. transition: all 0.2s ease-in-out;
  87. }
  88. .notification-options {
  89. position: absolute;
  90. right: 10px;
  91. text-align: right;
  92. top: 10px;
  93. height: 80%;
  94. width: 20%;
  95. }
  96. .notification-options > small {
  97. position: absolute;
  98. bottom: 0;
  99. width: 100%;
  100. display: block;
  101. }
  102. .notification_menu .dropdown-toggle:hover i{
  103. -webkit-transform-origin: top center;
  104. -ms-transform-origin: top center;
  105. transform-origin: top center;
  106. -webkit-animation-name: swing;
  107. animation-name: swing;
  108. -webkit-animation-duration: 1s;
  109. animation-duration: 1s;
  110. -webkit-animation-fill-mode: both;
  111. animation-fill-mode: both;
  112. }
  113. .notification_menu .dropdown-item {
  114. cursor: pointer;
  115. height: 70px;
  116. overflow: hidden;
  117. text-overflow: ellipsis;
  118. white-space: nowrap;
  119. position: relative;
  120. transition: background-color 0.1s ease-out;
  121. padding: .8rem;
  122. padding-right: 5rem;
  123. font-size: 0.9em;
  124. opacity: 0.5;
  125. }
  126. .notification_menu .dropdown-item > * {
  127. overflow: hidden;
  128. text-overflow: ellipsis;
  129. white-space: nowrap;
  130. }
  131. .notification_menu .dropdown-item p {
  132. margin: 0;
  133. }
  134. .notification_menu .dropdown-divider {
  135. margin: 0;
  136. border-top: 1px solid #dadada;
  137. }
  138. .notification_menu .dropdown-item.active,
  139. .notification_menu .dropdown-item:active {
  140. color: #212529;
  141. background-color: #007bff1f;
  142. }
  143. .notification_menu .all-as-read,
  144. .notification_menu .see-all-link {
  145. padding: 0.35rem;
  146. height: 35px;
  147. text-align: center;
  148. color: #0077b3;
  149. opacity: 1;
  150. }
  151. .notification_menu .all-as-read {
  152. text-align: right;
  153. }
  154. .notification_menu .all-as-read:hover,
  155. .notification_menu .see-all-link:hover {
  156. text-decoration: underline;
  157. }
  158. .notification-item-options + small {
  159. position: absolute;
  160. right: 6px;
  161. top: 6px;
  162. color: #a5a5a5;
  163. }
  164. .notification-item-options{
  165. /*position: absolute;
  166. right: 5px;
  167. top: 0;*/
  168. position: absolute;
  169. right: 5px;
  170. bottom: 0;
  171. margin-bottom: 0;
  172. }
  173. .notification-item-options > li{
  174. list-style-type: none;
  175. display: inline-block;
  176. padding: 5px 0.2rem;
  177. font-size: 14px;
  178. cursor: pointer;
  179. opacity: 0.5;
  180. color:#bebebe;
  181. transition:opacity 0.2s ease-in-out;
  182. }
  183. .notification-item-options > li:hover{
  184. opacity:1;
  185. }
  186. .notification-item-options > li.notification-read:hover {
  187. color: #17a2b8;
  188. }
  189. .notification-item-options > li.notification-delete:hover {
  190. color: #dc3545;
  191. }
  192. .notification_menu .dropdown-menu {
  193. width: 400px;
  194. text-align: left;
  195. max-height: 60vh;
  196. /*overflow: auto;*/
  197. }
  198. .notification_menu .dropdown-menu.dropdown-menu-right:after {
  199. position: absolute;
  200. top: -6px;
  201. right: 15px;
  202. display: inline-block;
  203. border-right: 6px solid transparent;
  204. border-bottom: 6px solid #ffffff;
  205. border-left: 6px solid transparent;
  206. content: '';
  207. }
  208. .notification_categories > .categories-items > .col-md-6 {
  209. padding: 5px 15px
  210. }
  211. .notification_categories .list-group-item.list-group-item-action {
  212. cursor: pointer;
  213. }
  214. .categories-items > .col-md-6 > div {
  215. cursor: pointer;
  216. user-select: none;
  217. }
  218. .categories-items input[type="checkbox"] {
  219. cursor: pointer;
  220. }
  221. @-webkit-keyframes swing {
  222. 20% {
  223. -webkit-transform: rotate3d(0, 0, 1, 15deg);
  224. transform: rotate3d(0, 0, 1, 15deg);
  225. }
  226. 40% {
  227. -webkit-transform: rotate3d(0, 0, 1, -10deg);
  228. transform: rotate3d(0, 0, 1, -10deg);
  229. }
  230. 60% {
  231. -webkit-transform: rotate3d(0, 0, 1, 5deg);
  232. transform: rotate3d(0, 0, 1, 5deg);
  233. }
  234. 80% {
  235. -webkit-transform: rotate3d(0, 0, 1, -5deg);
  236. transform: rotate3d(0, 0, 1, -5deg);
  237. }
  238. 100% {
  239. -webkit-transform: rotate3d(0, 0, 1, 0deg);
  240. transform: rotate3d(0, 0, 1, 0deg);
  241. }
  242. }
  243. @keyframes swing {
  244. 20% {
  245. -webkit-transform: rotate3d(0, 0, 1, 15deg);
  246. transform: rotate3d(0, 0, 1, 15deg);
  247. }
  248. 40% {
  249. -webkit-transform: rotate3d(0, 0, 1, -10deg);
  250. transform: rotate3d(0, 0, 1, -10deg);
  251. }
  252. 60% {
  253. -webkit-transform: rotate3d(0, 0, 1, 5deg);
  254. transform: rotate3d(0, 0, 1, 5deg);
  255. }
  256. 80% {
  257. -webkit-transform: rotate3d(0, 0, 1, -5deg);
  258. transform: rotate3d(0, 0, 1, -5deg);
  259. }
  260. 100% {
  261. -webkit-transform: rotate3d(0, 0, 1, 0deg);
  262. transform: rotate3d(0, 0, 1, 0deg);
  263. }
  264. }
  265. .notifications-list h3 {
  266. margin-bottom: 15px;
  267. }
  268. .notifications-list .left-pane {
  269. user-select: none;
  270. position: fixed;
  271. }
  272. .notifications-list ul.notification-listing {
  273. padding-left: 20px;
  274. }
  275. .notifications-list ul.notification-listing li {
  276. list-style: none;
  277. }
  278. .notifications-list .read-state-block:hover i {
  279. -webkit-transform-origin: top center;
  280. -ms-transform-origin: top center;
  281. transform-origin: top center;
  282. -webkit-animation-name: swing;
  283. animation-name: swing;
  284. -webkit-animation-duration: 1s;
  285. animation-duration: 1s;
  286. -webkit-animation-fill-mode: both;
  287. animation-fill-mode: both;
  288. }
  289. @media (max-width: 767px){
  290. #loginHeader #dropdownNotification {
  291. text-align: center;
  292. }
  293. div.notification_menu.dropdown {
  294. position: unset;
  295. }
  296. .notification_menu .dropdown-menu.dropdown-menu-right:after {
  297. right: 74px;
  298. }
  299. .notification_menu .dropdown-menu {
  300. width: 100% !important;
  301. }
  302. .btn .badge.notification-number {
  303. right: 50% !important;
  304. }
  305. .notifications-list .left-pane {
  306. position: initial;
  307. }
  308. ul.notifications {
  309. min-width: 0;
  310. }
  311. }