4
0

_components.rtl.css 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. /*=== COMPONENTS */
  2. /*===============*/
  3. /*=== Forms */
  4. /* see _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: 18px;
  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: brightness(3);
  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. &[aria-checked="true"] {
  77. a::before {
  78. margin: 0 -14px 0 0;
  79. font-weight: bold;
  80. }
  81. }
  82. & ~ .dropdown-header {
  83. margin-top: 0.75rem;
  84. padding-top: 1.75rem;
  85. border-top-color: var(--grey-light);
  86. }
  87. &.separator {
  88. margin-top: 0.75rem;
  89. border-top-color: var(--grey-light);
  90. }
  91. }
  92. .input {
  93. select, input {
  94. margin: 0 auto 5px;
  95. padding: 2px 5px;
  96. border-radius: 3px;
  97. }
  98. }
  99. }
  100. .tree .tree-folder .tree-folder-items .dropdown-menu {
  101. /* to reset the appearance of the dropdown in the case of a dark sidebar*/
  102. .item {
  103. padding: 0;
  104. a,
  105. button {
  106. color: var(--main-font-color);
  107. &:hover {
  108. color: var(--white);
  109. }
  110. }
  111. &:hover {
  112. background: var(--main-first);
  113. }
  114. }
  115. }
  116. /*=== Alerts */
  117. .alert {
  118. background: var(--grey-lighter);
  119. color: var(--grey-dark);
  120. font-size: 1rem;
  121. border: 1px solid var(--grey-medium);
  122. border-radius: 3px;
  123. text-shadow: 0 0 1px var(--grey-light);
  124. }
  125. .alert-head {
  126. font-size: 1.15em;
  127. }
  128. .alert > a {
  129. text-decoration: underline;
  130. color: inherit;
  131. }
  132. .alert-warn {
  133. background: var(--warning-light);
  134. color: var(--warning-text);
  135. border: 1px solid color-mix(in srgb, var(--warning-text) 20%, transparent);
  136. }
  137. .alert-success {
  138. background: var(--success-light);
  139. color: var(--success-text);
  140. border: 1px solid color-mix(in srgb, var(--success-text) 20%, transparent);
  141. }
  142. .alert-error {
  143. background: var(--alert-light);
  144. color: var(--alert-text);
  145. border: 1px solid color-mix(in srgb, var(--alert-text) 20%, transparent);
  146. }
  147. /*=== Pagination */
  148. .pagination {
  149. background: var(--grey-light);
  150. color: var(--main-font-color);
  151. .item a {
  152. color: var(--main-font-color);
  153. }
  154. }
  155. #load_more.loading,
  156. #load_more.loading:hover {
  157. background: url("loader.gif") center center no-repeat #34495e;
  158. }
  159. /*=== Boxes */
  160. .box {
  161. background: var(--white);
  162. border: none;
  163. border-radius: 3px;
  164. box-shadow: 0px 2px 2px 0px rgba(0,0,0,0.25);
  165. .box-title {
  166. background: var(--grey-light);
  167. color: var(--main-font-color);
  168. border-radius: 2px 2px 0 0;
  169. .configure {
  170. padding: 5px;
  171. }
  172. &:hover {
  173. .configure {
  174. .icon {
  175. vertical-align: middle;
  176. }
  177. &:hover {
  178. background-color: var(--main-first);
  179. .icon {
  180. filter: brightness(3);
  181. }
  182. }
  183. }
  184. }
  185. form {
  186. input {
  187. width: 85%;
  188. }
  189. .dropdown {
  190. float: left;
  191. a.dropdown-toggle {
  192. padding: 0;
  193. border-radius: 0;
  194. background-image: url(icons/more.svg);
  195. background-repeat: no-repeat;
  196. background-position: left 8px;
  197. img {
  198. display: none;
  199. }
  200. }
  201. }
  202. }
  203. }
  204. .box-content {
  205. padding-right: 30px;
  206. .item {
  207. padding: 0.25rem 0;
  208. color: var(--main-font-color);
  209. font-size: 1rem;
  210. border-bottom: 1px solid var(--grey-light);
  211. line-height: 1.7em;
  212. .configure {
  213. padding: 5px;
  214. .icon {
  215. vertical-align: middle;
  216. }
  217. &:hover {
  218. background-color: var(--main-first);
  219. .icon {
  220. filter: brightness(3);
  221. }
  222. }
  223. }
  224. }
  225. .item:last-child {
  226. border-bottom: none;
  227. }
  228. }
  229. }
  230. /*=== "Load more" part */
  231. #bigMarkAsRead.big {
  232. text-align: center;
  233. text-decoration: none;
  234. background: var(--main-first-light);
  235. color: var(--main-first);
  236. transition: all 0.15s ease-in-out;
  237. &:hover {
  238. background: var(--main-first);
  239. color: #fff;
  240. .bigTick {
  241. filter: brightness(5);
  242. }
  243. }
  244. .bigTick {
  245. margin: 0.5rem 0;
  246. background: url(icons/tick-color.svg) center no-repeat;
  247. display: inline-block;
  248. width: 64px;
  249. height: 64px;
  250. text-indent: -9999px;
  251. white-space: nowrap;
  252. }
  253. }