_components.scss 4.7 KB

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