_components.scss 4.9 KB

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