_components.scss 6.0 KB

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