_components.scss 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. @use "sass:string";
  2. @use "mixins";
  3. @use "variables";
  4. /*=== COMPONENTS */
  5. /*===============*/
  6. /*=== Forms */
  7. // see _forms.scss
  8. /*=== Horizontal-list */
  9. .horizontal-list {
  10. padding: 0.1rem 0;
  11. .item {
  12. &:first-child {
  13. padding-left: 0.5rem;
  14. }
  15. }
  16. }
  17. /*=== Dropdown */
  18. .dropdown-menu {
  19. margin: 9px 0 0 0;
  20. padding: 0.5rem 0 1rem 0;
  21. background: variables.$grey-lighter;
  22. font-size: 1rem;
  23. border: none;
  24. border-radius: 3px;
  25. box-shadow: 0px 6px 8px 0px rgba(0,0,0,0.35);
  26. text-align: left;
  27. &::after {
  28. border: none;
  29. right: 18px;
  30. }
  31. .dropdown-header,
  32. .dropdown-section .dropdown-section-title {
  33. padding: 1rem 1.5rem;
  34. font-weight: bold;
  35. text-align: left;
  36. color: variables.$grey-dark;
  37. text-transform: uppercase;
  38. letter-spacing: 1px;
  39. }
  40. .item {
  41. @include mixins.transition(all, 0.075s, ease-in-out);
  42. a, .as-link {
  43. padding: 0 2rem;
  44. color: variables.$main-font-color;
  45. font-size: inherit;
  46. line-height: 2.5em;
  47. span.icon {
  48. padding: 0 0.25rem !important;
  49. }
  50. &:not(.addItem):hover {
  51. background: variables.$main-first;
  52. color: variables.$white;
  53. .icon {
  54. filter: brightness(3);
  55. }
  56. }
  57. }
  58. &.dropdown-section {
  59. margin-top: 0.75rem;
  60. ~ .dropdown-section {
  61. border-top-color: variables.$grey-light;
  62. }
  63. .item {
  64. a, .as-link {
  65. padding-left: 2rem;
  66. }
  67. }
  68. }
  69. &[aria-checked="true"] {
  70. a::before {
  71. margin: 0 0 0 -14px;
  72. font-weight: bold;
  73. }
  74. }
  75. ~ .dropdown-header {
  76. margin-top: 0.75rem;
  77. padding-top: 1.75rem;
  78. border-top-color: variables.$grey-light;
  79. }
  80. &.separator {
  81. margin-top: 0.75rem;
  82. border-top-color: variables.$grey-light;
  83. }
  84. }
  85. .input {
  86. select, input {
  87. margin: 0 auto 5px;
  88. padding: 2px 5px;
  89. border-radius: 3px;
  90. }
  91. }
  92. }
  93. .tree .tree-folder .tree-folder-items .dropdown-menu {
  94. // to reset the appearance of the dropdown in the case of a dark sidebar
  95. .item {
  96. padding: 0;
  97. a,
  98. button {
  99. color: variables.$main-font-color;
  100. &:hover {
  101. color: variables.$white;
  102. }
  103. }
  104. &:hover {
  105. background: variables.$main-first;
  106. }
  107. }
  108. }
  109. /*=== Alerts */
  110. .alert {
  111. background: variables.$grey-lighter;
  112. color: variables.$grey-dark;
  113. font-size: 1rem;
  114. border: 1px solid variables.$grey-medium;
  115. border-radius: 3px;
  116. text-shadow: 0 0 1px variables.$grey-light;
  117. }
  118. .alert-head {
  119. font-size: 1.15em;
  120. }
  121. .alert > a {
  122. text-decoration: underline;
  123. color: inherit;
  124. }
  125. .alert-warn {
  126. background: variables.$warning-light;
  127. color: variables.$warning-text;
  128. border: 1px solid string.unquote(variables.$warning-text + '33'); // add opacity at the end
  129. }
  130. .alert-success {
  131. background: variables.$success-light;
  132. color: variables.$success-text;
  133. border: 1px solid string.unquote(variables.$success-text + '33');
  134. }
  135. .alert-error {
  136. background: variables.$alert-light;
  137. color: variables.$alert-text;
  138. border: 1px solid string.unquote(variables.$alert-text + '33');
  139. }
  140. /*=== Pagination */
  141. .pagination {
  142. background: variables.$grey-light;
  143. color: variables.$main-font-color;
  144. .item a {
  145. color: variables.$main-font-color;
  146. }
  147. }
  148. #load_more.loading,
  149. #load_more.loading:hover {
  150. background: url("loader.gif") center center no-repeat #34495e;
  151. }
  152. /*=== Boxes */
  153. .box {
  154. background: variables.$white;
  155. border: none;
  156. border-radius: 3px;
  157. box-shadow: 0px 2px 2px 0px rgba(0,0,0,0.25);
  158. .box-title {
  159. margin: 0;
  160. padding: 5px 10px;
  161. background: variables.$grey-light;
  162. color: variables.$main-font-color;
  163. border-radius: 2px 2px 0 0;
  164. .configure {
  165. padding: 5px;
  166. }
  167. &:hover {
  168. .configure {
  169. .icon {
  170. vertical-align: middle;
  171. }
  172. &:hover {
  173. background-color: variables.$main-first;
  174. .icon {
  175. filter: brightness(3);
  176. }
  177. }
  178. }
  179. }
  180. form {
  181. input {
  182. width: 85%;
  183. }
  184. .dropdown {
  185. float: right;
  186. a.dropdown-toggle {
  187. padding: 0;
  188. border-radius: 0;
  189. background-image: url(icons/more.svg);
  190. background-repeat: no-repeat;
  191. background-position: right 8px;
  192. img {
  193. display: none;
  194. }
  195. }
  196. }
  197. }
  198. }
  199. .box-content {
  200. padding-left: 30px;
  201. .item {
  202. padding: 0.25rem 0;
  203. color: variables.$main-font-color;
  204. font-size: 1rem;
  205. border-bottom: 1px solid variables.$grey-light;
  206. line-height: 1.7em;
  207. .configure {
  208. padding: 5px;
  209. .icon {
  210. vertical-align: middle;
  211. }
  212. &:hover {
  213. background-color: variables.$main-first;
  214. .icon {
  215. filter: brightness(3);
  216. }
  217. }
  218. }
  219. }
  220. .item:last-child {
  221. border-bottom: none;
  222. }
  223. }
  224. }
  225. /*=== "Load more" part */
  226. #bigMarkAsRead {
  227. text-align: center;
  228. text-decoration: none;
  229. background: variables.$main-first-light;
  230. color: variables.$main-first;
  231. @include mixins.transition(all, 0.15s, ease-in-out);
  232. &:hover {
  233. background: variables.$main-first;
  234. color: #fff;
  235. .bigTick {
  236. filter: brightness(5);
  237. }
  238. }
  239. .bigTick {
  240. margin: 0.5rem 0;
  241. background: url(icons/tick-color.svg) center no-repeat;
  242. display: inline-block;
  243. width: 64px;
  244. height: 64px;
  245. text-indent: -9999px;
  246. white-space: nowrap;
  247. }
  248. }