_components.scss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. @use "sass:string";
  2. @use "mixins";
  3. @use "variables";
  4. /*=== COMPONENTS */
  5. /*===============*/
  6. /*=== Forms */
  7. // parti dans _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: 17px;
  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: grayscale(100%) brightness(2.5);
  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. &:not(.addItem) {
  70. a:hover,
  71. button:hover {
  72. background: variables.$main-first;
  73. color: variables.$white;
  74. .icon {
  75. filter: brightness(3);
  76. }
  77. }
  78. }
  79. &[aria-checked="true"] {
  80. a::before {
  81. margin: 0 0 0 -14px;
  82. font-weight: bold;
  83. }
  84. }
  85. ~ .dropdown-header {
  86. margin-top: 0.75rem;
  87. padding-top: 1.75rem;
  88. border-top-color: variables.$grey-light;
  89. }
  90. &.separator {
  91. margin-top: 0.75rem;
  92. border-top-color: variables.$grey-light;
  93. }
  94. }
  95. .input {
  96. select, input {
  97. margin: 0 auto 5px;
  98. padding: 2px 5px;
  99. border-radius: 3px;
  100. }
  101. }
  102. }
  103. .tree .tree-folder .tree-folder-items .dropdown-menu {
  104. // to reset the appearance of the dropdown in the case of a dark sidebar
  105. .item {
  106. padding: 0;
  107. a,
  108. button {
  109. color: variables.$main-font-color;
  110. &:hover {
  111. color: variables.$white;
  112. }
  113. }
  114. &:hover {
  115. background: variables.$main-first;
  116. }
  117. }
  118. }
  119. /*=== Alerts */
  120. .alert {
  121. background: variables.$grey-lighter;
  122. color: variables.$grey-dark;
  123. font-size: 1rem;
  124. border: 1px solid variables.$grey-medium;
  125. border-radius: 3px;
  126. text-shadow: 0 0 1px variables.$grey-light;
  127. }
  128. .alert-head {
  129. font-size: 1.15em;
  130. }
  131. .alert > a {
  132. text-decoration: underline;
  133. color: inherit;
  134. }
  135. .alert-warn {
  136. background: variables.$warning-light;
  137. color: variables.$warning-text;
  138. border: 1px solid string.unquote(variables.$warning-text + '33'); // on ajoute l’opacité à la fin
  139. }
  140. .alert-success {
  141. background: variables.$success-light;
  142. color: variables.$success-text;
  143. border: 1px solid string.unquote(variables.$success-text + '33');
  144. }
  145. .alert-error {
  146. background: variables.$alert-light;
  147. color: variables.$alert-text;
  148. border: 1px solid string.unquote(variables.$alert-text + '33');
  149. }
  150. /*=== Pagination */
  151. .pagination {
  152. background: variables.$grey-light;
  153. color: variables.$main-font-color;
  154. .item a {
  155. color: variables.$main-font-color;
  156. }
  157. }
  158. #load_more.loading,
  159. #load_more.loading:hover {
  160. background: url("loader.gif") center center no-repeat #34495e;
  161. }
  162. /*=== Boxes */
  163. .box {
  164. background: variables.$white;
  165. // border: 1px solid #ddd;
  166. border: none;
  167. border-radius: 3px;
  168. box-shadow: 0px 2px 2px 0px rgba(0,0,0,0.25);
  169. .box-title {
  170. margin: 0;
  171. padding: 0.5rem 0.75rem;
  172. background: variables.$grey-light;
  173. color: variables.$main-font-color;
  174. border-radius: 2px 2px 0 0;
  175. }
  176. .box-content {
  177. padding-left: 30px;
  178. .item {
  179. padding: 0.5rem 0;
  180. color: variables.$main-font-color;
  181. font-size: 1rem;
  182. border-bottom: 1px solid variables.$grey-light;
  183. line-height: 1.7em;
  184. }
  185. .item:last-child {
  186. border-bottom: none;
  187. }
  188. }
  189. .configure {
  190. margin-right: 0.5rem;
  191. padding: 0.25rem;
  192. border-radius: 3px;
  193. .icon {
  194. vertical-align: middle;
  195. }
  196. &:hover {
  197. border-radius: 2px;
  198. background-color: variables.$main-first;
  199. .icon {
  200. filter: brightness(3);
  201. }
  202. }
  203. }
  204. }
  205. /*=== "Load more" part */
  206. #bigMarkAsRead {
  207. text-align: center;
  208. text-decoration: none;
  209. background: variables.$main-first-light;
  210. color: variables.$main-first;
  211. @include mixins.transition(all, 0.15s, ease-in-out);
  212. &:hover {
  213. background: variables.$main-first;
  214. color: #fff;
  215. .bigTick {
  216. filter: brightness(7);
  217. }
  218. }
  219. .bigTick {
  220. margin: 0.5rem 0;
  221. background: url(icons/tick-color.svg) center no-repeat;
  222. display: inline-block;
  223. width: 64px;
  224. height: 64px;
  225. text-indent: -9999px;
  226. white-space: nowrap;
  227. }
  228. }