_components.scss 4.7 KB

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