_components.scss 5.0 KB

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