_components.scss 6.0 KB

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