_components.scss 4.9 KB

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