4
0

_components.scss 4.5 KB

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