_components.scss 4.3 KB

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