_components.scss 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  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: 18px;
  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. }
  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. // display: none;
  76. }
  77. }
  78. .tree .tree-folder .tree-folder-items .dropdown-menu {
  79. // to reset the appearance of the dropdown in the case of a dark sidebar
  80. .item {
  81. padding: 0;
  82. a,
  83. button {
  84. color: variables.$main-font-color;
  85. &:hover {
  86. color: variables.$white;
  87. }
  88. }
  89. &:hover {
  90. background: variables.$main-first;
  91. }
  92. }
  93. }
  94. /*=== Alerts */
  95. .alert {
  96. margin: 1rem 0;
  97. // width: 100%;
  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'); // on ajoute l’opacité à la fin
  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. font-size: 0.8em;
  133. text-align: center;
  134. .item {
  135. &.pager-current {
  136. background: variables.$sid-bg;
  137. color: variables.$grey-light;
  138. font-size: 1.5em;
  139. font-weight: bold;
  140. }
  141. a {
  142. display: block;
  143. color: variables.$main-font-color;
  144. font-style: italic;
  145. line-height: 3em;
  146. text-decoration: none;
  147. }
  148. }
  149. }
  150. #load_more.loading,
  151. #load_more.loading:hover {
  152. background: url("loader.gif") center center no-repeat #34495e;
  153. }
  154. /*=== Boxes */
  155. .box {
  156. background: variables.$white;
  157. // border: 1px solid #ddd;
  158. border: none;
  159. border-radius: 3px;
  160. box-shadow: 0px 2px 2px 0px rgba(0,0,0,0.25);
  161. .box-title {
  162. margin: 0;
  163. padding: 5px 10px;
  164. background: variables.$grey-light;
  165. color: variables.$main-font-color;
  166. // border-bottom: 1px solid #ddd;
  167. border-radius: 2px 2px 0 0;
  168. .configure {
  169. margin-right: 4px;
  170. }
  171. &:hover {
  172. .configure {
  173. background: url("icons/cog.svg") no-repeat 4px 4px;
  174. display: block;
  175. float: left;
  176. width: 1.75rem;
  177. height: 1.75rem;
  178. border-radius: 2px;
  179. margin-right: 0.5rem;
  180. .icon {
  181. display: none;
  182. border-radius: 3px;
  183. vertical-align: middle;
  184. }
  185. &:hover {
  186. background: url("icons/cog-white.svg") no-repeat 4px 4px variables.$main-first;
  187. }
  188. }
  189. }
  190. form {
  191. input {
  192. width: 85%;
  193. }
  194. .dropdown {
  195. float: right;
  196. a.dropdown-toggle {
  197. padding: 0;
  198. // float: right;
  199. border-radius: 0;
  200. background-image: url(icons/more.svg);
  201. background-repeat: no-repeat;
  202. background-position: right 8px;
  203. img {
  204. display: none;
  205. }
  206. }
  207. }
  208. }
  209. }
  210. .box-content {
  211. // max-height: 260px;
  212. padding-left: 30px;
  213. .item {
  214. padding: 0.5rem 0;
  215. color: variables.$main-font-color;
  216. font-size: 1rem;
  217. border-bottom: 1px solid variables.$grey-light;
  218. line-height: 1.7em;
  219. img {
  220. margin-right: 0.75rem;
  221. }
  222. .configure {
  223. background: url("icons/cog.svg") no-repeat 4px 4px;
  224. display: block;
  225. float: left;
  226. width: 1.75rem;
  227. height: 1.75rem;
  228. border-radius: 2px;
  229. margin-right: 0.5rem;
  230. .icon {
  231. display: none;
  232. border-radius: 3px;
  233. vertical-align: middle;
  234. }
  235. &:hover {
  236. // background: $main-first;
  237. background: url("icons/cog-white.svg") no-repeat 4px 4px variables.$main-first;
  238. }
  239. }
  240. }
  241. .item:last-child {
  242. border-bottom: none;
  243. }
  244. }
  245. }
  246. /*=== "Load more" part */
  247. #bigMarkAsRead {
  248. text-align: center;
  249. text-decoration: none;
  250. background: variables.$main-first-light;
  251. color: variables.$main-first;
  252. @include mixins.transition(all, 0.15s, ease-in-out);
  253. &:hover {
  254. background: variables.$main-first;
  255. color: #fff;
  256. .bigTick {
  257. background: url(icons/tick-white.svg) center no-repeat;
  258. }
  259. }
  260. .bigTick {
  261. margin: 0.5rem 0;
  262. background: url(icons/tick-color.svg) center no-repeat;
  263. display: inline-block;
  264. width: 64px;
  265. height: 64px;
  266. text-indent: -9999px;
  267. white-space: nowrap;
  268. }
  269. }
  270. // page de login
  271. .formLogin {
  272. background: variables.$sid-bg;
  273. .header {
  274. .configure {
  275. padding-right: 1rem;
  276. img {
  277. margin-right: 0.5rem;
  278. }
  279. a.signin {
  280. color: variables.$white;
  281. }
  282. }
  283. }
  284. h1 {
  285. color: variables.$white;
  286. }
  287. form#crypto-form {
  288. div {
  289. margin-bottom: 1rem;
  290. label {
  291. color: variables.$grey-medium;
  292. font-size: 1rem;
  293. }
  294. input {
  295. background: variables.$main-first-darker;
  296. &:focus {
  297. background: variables.$grey-lighter;
  298. color: variables.$main-font-color;
  299. }
  300. }
  301. }
  302. }
  303. }