_components.scss 5.7 KB

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