_components.rtl.css 4.6 KB

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