_components.scss 4.7 KB

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