_components.scss 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  1. @use "sass:string";
  2. @use "mixins";
  3. @use "variables";
  4. /*=== COMPONENTS */
  5. /*===============*/
  6. /*=== Forms */
  7. // parti dans _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: 17px;
  32. }
  33. .dropdown-header {
  34. // padding: 0 5px 5px;
  35. margin: 1rem 0.5rem 1rem 1rem;
  36. font-weight: bold;
  37. text-align: left;
  38. color: variables.$grey-dark;
  39. text-transform: uppercase;
  40. letter-spacing: 1px;
  41. }
  42. .item {
  43. @include mixins.transition(all, 0.075s, ease-in-out);
  44. a, span, .as-link {
  45. padding: 0 2rem;
  46. color: variables.$main-font-color;
  47. font-size: 1rem;
  48. line-height: 2.5em;
  49. }
  50. &:not(.addItem):hover {
  51. background: variables.$main-first;
  52. color: variables.$white;
  53. a, button, label {
  54. text-decoration: none;
  55. color: variables.$white;
  56. }
  57. .icon {
  58. filter: grayscale(100%) brightness(2.5);
  59. }
  60. }
  61. &[aria-checked="true"] {
  62. a::before {
  63. margin: 0 0 0 -14px;
  64. font-weight: bold;
  65. }
  66. }
  67. }
  68. .input {
  69. select, input {
  70. margin: 0 auto 5px;
  71. padding: 2px 5px;
  72. border-radius: 3px;
  73. }
  74. }
  75. .separator {
  76. margin: 0.75rem 0;
  77. border-bottom: 1px solid variables.$grey-light;
  78. // display: none;
  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. // width: 100%;
  101. padding: 1rem;
  102. background: variables.$grey-lighter;
  103. color: variables.$grey-dark;
  104. font-size: 1rem;
  105. border: 1px solid variables.$grey-medium;
  106. border-radius: 3px;
  107. text-shadow: 0 0 1px variables.$grey-light;
  108. }
  109. .alert-head {
  110. font-size: 1.15em;
  111. }
  112. .alert > a {
  113. text-decoration: underline;
  114. color: inherit;
  115. }
  116. .alert-warn {
  117. background: variables.$warning-light;
  118. color: variables.$warning-text;
  119. border: 1px solid string.unquote(variables.$warning-text + '33'); // on ajoute l’opacité à la fin
  120. }
  121. .alert-success {
  122. background: variables.$success-light;
  123. color: variables.$success-text;
  124. border: 1px solid string.unquote(variables.$success-text + '33');
  125. }
  126. .alert-error {
  127. background: variables.$alert-light;
  128. color: variables.$alert-text;
  129. border: 1px solid string.unquote(variables.$alert-text + '33');
  130. }
  131. /*=== Pagination */
  132. .pagination {
  133. background: variables.$grey-light;
  134. color: variables.$main-font-color;
  135. font-size: 0.8em;
  136. text-align: center;
  137. .item {
  138. &.pager-current {
  139. background: variables.$sid-bg;
  140. color: variables.$grey-light;
  141. font-size: 1.5em;
  142. font-weight: bold;
  143. }
  144. a {
  145. display: block;
  146. color: variables.$main-font-color;
  147. font-style: italic;
  148. line-height: 3em;
  149. text-decoration: none;
  150. }
  151. }
  152. }
  153. #load_more.loading,
  154. #load_more.loading:hover {
  155. background: url("loader.gif") center center no-repeat #34495e;
  156. }
  157. .content .pagination {
  158. margin: 0;
  159. padding: 0;
  160. }
  161. /*=== Boxes */
  162. .box {
  163. background: variables.$white;
  164. // border: 1px solid #ddd;
  165. border: none;
  166. border-radius: 3px;
  167. box-shadow: 0px 2px 2px 0px rgba(0,0,0,0.25);
  168. .box-title {
  169. margin: 0;
  170. padding: 0.5rem 0.75rem;
  171. background: variables.$grey-light;
  172. color: variables.$main-font-color;
  173. // border-bottom: 1px solid #ddd;
  174. border-radius: 2px 2px 0 0;
  175. &:hover {
  176. .configure {
  177. background: url("icons/cog.svg") no-repeat 4px 4px;
  178. display: block;
  179. float: left;
  180. width: 1.75rem;
  181. height: 1.75rem;
  182. border-radius: 2px;
  183. margin-right: 0.5rem;
  184. .icon {
  185. display: none;
  186. border-radius: 3px;
  187. vertical-align: middle;
  188. }
  189. &:hover {
  190. background: url("icons/cog-white.svg") no-repeat 4px 4px variables.$main-first;
  191. }
  192. }
  193. }
  194. form {
  195. input {
  196. width: 85%;
  197. }
  198. .dropdown {
  199. float: right;
  200. a.dropdown-toggle {
  201. padding: 0;
  202. // float: right;
  203. border-radius: 0;
  204. background-image: url(icons/more.svg);
  205. background-repeat: no-repeat;
  206. background-position: right 8px;
  207. img {
  208. display: none;
  209. }
  210. }
  211. }
  212. }
  213. .configure {
  214. margin-right: 4px;
  215. }
  216. }
  217. .box-content {
  218. // max-height: 260px;
  219. padding-left: 30px;
  220. .item {
  221. padding: 0.5rem 0;
  222. color: variables.$main-font-color;
  223. font-size: 1rem;
  224. border-bottom: 1px solid variables.$grey-light;
  225. line-height: 1.7em;
  226. img {
  227. margin-right: 0.75rem;
  228. }
  229. .configure {
  230. background: url("icons/cog.svg") no-repeat 4px 4px;
  231. display: block;
  232. float: left;
  233. width: 1.75rem;
  234. height: 1.75rem;
  235. border-radius: 2px;
  236. margin-right: 0.5rem;
  237. .icon {
  238. display: none;
  239. border-radius: 3px;
  240. vertical-align: middle;
  241. }
  242. &:hover {
  243. // background: $main-first;
  244. background: url("icons/cog-white.svg") no-repeat 4px 4px variables.$main-first;
  245. }
  246. }
  247. }
  248. .item:last-child {
  249. border-bottom: none;
  250. }
  251. }
  252. }
  253. /*=== "Load more" part */
  254. #bigMarkAsRead {
  255. text-align: center;
  256. text-decoration: none;
  257. background: variables.$main-first-light;
  258. color: variables.$main-first;
  259. @include mixins.transition(all, 0.15s, ease-in-out);
  260. &:hover {
  261. background: variables.$main-first;
  262. color: #fff;
  263. .bigTick {
  264. background: url(icons/tick-white.svg) center no-repeat;
  265. }
  266. }
  267. .bigTick {
  268. margin: 0.5rem 0;
  269. background: url(icons/tick-color.svg) center no-repeat;
  270. display: inline-block;
  271. width: 64px;
  272. height: 64px;
  273. text-indent: -9999px;
  274. white-space: nowrap;
  275. }
  276. }
  277. // page de login
  278. .formLogin {
  279. background: variables.$sid-bg;
  280. .header {
  281. .configure {
  282. padding-right: 1rem;
  283. img {
  284. margin-right: 0.5rem;
  285. }
  286. a.signin {
  287. color: variables.$white;
  288. }
  289. }
  290. }
  291. h1 {
  292. color: variables.$white;
  293. }
  294. form#crypto-form {
  295. div {
  296. margin-bottom: 1rem;
  297. label {
  298. color: variables.$grey-medium;
  299. font-size: 1rem;
  300. }
  301. input {
  302. background: variables.$main-first-darker;
  303. &:focus {
  304. background: variables.$grey-lighter;
  305. color: variables.$main-font-color;
  306. }
  307. }
  308. }
  309. }
  310. }