_components.scss 4.6 KB

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