_components.scss 6.6 KB

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