_components.scss 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  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. }
  65. &[aria-checked="true"] {
  66. a::before {
  67. margin: 0 0 0 -14px;
  68. font-weight: bold;
  69. }
  70. }
  71. }
  72. .input {
  73. select, input {
  74. margin: 0 auto 5px;
  75. padding: 2px 5px;
  76. border-radius: 3px;
  77. }
  78. }
  79. .separator {
  80. margin: 0.75rem 0;
  81. border-bottom: 1px solid $grey-light;
  82. // display: none;
  83. }
  84. }
  85. .tree .tree-folder .tree-folder-items .dropdown-menu {
  86. // to reset the appearance of the dropdown in the case of a dark sidebar
  87. .item {
  88. padding: 0;
  89. a,
  90. button {
  91. color: $main-font-color;
  92. &:hover {
  93. color: $white;
  94. }
  95. }
  96. &:hover {
  97. background: $main-first;
  98. }
  99. }
  100. }
  101. /*=== Alerts */
  102. .alert {
  103. margin: 1rem 0;
  104. // width: 100%;
  105. padding: 1rem;
  106. background: $grey-lighter;
  107. color: $grey-dark;
  108. font-size: 1rem;
  109. border: 1px solid $grey-medium;
  110. border-radius: 3px;
  111. text-shadow: 0 0 1px $grey-light;
  112. }
  113. .alert-head {
  114. font-size: 1.15em;
  115. }
  116. .alert > a {
  117. text-decoration: underline;
  118. color: inherit;
  119. }
  120. .alert-warn {
  121. background: $warning-light;
  122. color: $warning-text;
  123. border: 1px solid unquote($warning-text+'33'); // on ajoute l’opacité à la fin
  124. }
  125. .alert-success {
  126. background: $success-light;
  127. color: $success-text;
  128. border: 1px solid unquote($success-text+'33');
  129. }
  130. .alert-error {
  131. background: $alert-light;
  132. color: $alert-text;
  133. border: 1px solid unquote($alert-text+'33');
  134. }
  135. /*=== Pagination */
  136. .pagination {
  137. background: $grey-light;
  138. color: $main-font-color;
  139. font-size: 0.8em;
  140. text-align: center;
  141. .item {
  142. &.pager-current {
  143. background: $sid-bg;
  144. color: $grey-light;
  145. font-size: 1.5em;
  146. font-weight: bold;
  147. }
  148. a {
  149. display: block;
  150. color: $main-font-color;
  151. font-style: italic;
  152. line-height: 3em;
  153. text-decoration: none;
  154. &:hover {
  155. background: $main-font-color;
  156. color: $grey-light;
  157. }
  158. }
  159. }
  160. .loading,
  161. a:hover.loading {
  162. background: url("loader.gif") center center no-repeat #34495e;
  163. font-size: 0;
  164. }
  165. }
  166. .content .pagination {
  167. margin: 0;
  168. padding: 0;
  169. }
  170. /*=== Boxes */
  171. .box {
  172. background: $white;
  173. // border: 1px solid #ddd;
  174. border: none;
  175. border-radius: 3px;
  176. box-shadow: 0px 2px 2px 0px rgba(0,0,0,0.25);
  177. .box-title {
  178. margin: 0;
  179. padding: 5px 10px;
  180. background: $grey-light;
  181. color: $main-font-color;
  182. // border-bottom: 1px solid #ddd;
  183. border-radius: 2px 2px 0 0;
  184. .configure {
  185. margin-right: 4px;
  186. }
  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. }
  226. .box-content {
  227. // max-height: 260px;
  228. padding-left: 30px;
  229. .item {
  230. padding: 0.5rem 0;
  231. color: $main-font-color;
  232. font-size: 1rem;
  233. border-bottom: 1px solid $grey-light;
  234. line-height: 1.7em;
  235. img {
  236. margin-right: 0.75rem;
  237. }
  238. .configure {
  239. background: url("icons/cog.svg") no-repeat 4px 4px;
  240. display: block;
  241. float: left;
  242. width: 1.75rem;
  243. height: 1.75rem;
  244. border-radius: 2px;
  245. margin-right: 0.5rem;
  246. .icon {
  247. display: none;
  248. border-radius: 3px;
  249. vertical-align: middle;
  250. }
  251. &:hover {
  252. // background: $main-first;
  253. background: url("icons/cog-white.svg") no-repeat 4px 4px $main-first;
  254. }
  255. }
  256. }
  257. .item:last-child {
  258. border-bottom: none;
  259. }
  260. }
  261. }
  262. /*=== "Load more" part */
  263. #bigMarkAsRead {
  264. text-align: center;
  265. text-decoration: none;
  266. background: $main-first-light;
  267. color: $main-first;
  268. @include transition(all, 0.15s, ease-in-out);
  269. &:hover {
  270. background: $main-first;
  271. color: #fff;
  272. .bigTick {
  273. background: url(icons/tick-white.svg) center no-repeat;
  274. }
  275. }
  276. .bigTick {
  277. margin: 0.5rem 0;
  278. background: url(icons/tick-color.svg) center no-repeat;
  279. display: inline-block;
  280. width: 64px;
  281. height: 64px;
  282. text-indent: -9999px;
  283. white-space: nowrap;
  284. }
  285. }
  286. // page de login
  287. .formLogin {
  288. background: $sid-bg;
  289. .header {
  290. .configure {
  291. padding-right: 1rem;
  292. img {
  293. margin-right: 0.5rem;
  294. }
  295. a.signin {
  296. color: $white;
  297. }
  298. }
  299. }
  300. h1 {
  301. color: $white;
  302. }
  303. form#crypto-form {
  304. div {
  305. margin-bottom: 1rem;
  306. label {
  307. color: $grey-medium;
  308. font-size: 1rem;
  309. }
  310. input {
  311. background: $main-first-darker;
  312. &:focus {
  313. background: $grey-lighter;
  314. color: $main-font-color;
  315. }
  316. }
  317. }
  318. }
  319. }