_components.scss 4.9 KB

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