_components.scss 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  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. form{
  192. input{
  193. width: 85%;
  194. }
  195. .dropdown{
  196. float: right;
  197. a.dropdown-toggle{
  198. padding: 0;
  199. background-image: url(icons/more.svg);
  200. background-repeat: no-repeat;
  201. background-position: right 8px;
  202. // float: right;
  203. border-radius: 0;
  204. img{
  205. display: none;
  206. }
  207. }
  208. }
  209. }
  210. }
  211. .box-content {
  212. // max-height: 260px;
  213. .item {
  214. padding: 0.5rem 0.75rem;
  215. font-size: 1rem;
  216. color: $main-font-color;
  217. line-height: 1.7em;
  218. border-bottom: 1px solid $grey-light;
  219. img{
  220. margin-right: 0.75rem;
  221. }
  222. .configure {
  223. visibility: hidden;
  224. width: 1.75rem;
  225. height: 1.75rem;
  226. display: block;
  227. border-radius: 2px;
  228. float: left;
  229. margin-right: 0.5rem;
  230. background: url("icons/cog.svg") no-repeat 4px 4px;
  231. .icon {
  232. vertical-align: middle;
  233. border-radius: 3px;
  234. display: none;
  235. }
  236. &:hover{
  237. // background: $main-first;
  238. background: url("icons/cog-white.svg") no-repeat 4px 4px $main-first;
  239. }
  240. }
  241. &:hover .configure {
  242. visibility: visible;
  243. }
  244. }
  245. .item:last-child{
  246. border-bottom: none;
  247. }
  248. }
  249. }
  250. /*=== "Load more" part */
  251. #bigMarkAsRead {
  252. text-align: center;
  253. text-decoration: none;
  254. background: $main-first-light;
  255. color: $main-first;
  256. @include transition(all, 0.15s, ease-in-out);
  257. &:hover {
  258. background: $main-first;
  259. color: #fff;
  260. .bigTick{
  261. background: url(icons/tick-white.svg) center no-repeat;
  262. }
  263. }
  264. .bigTick{
  265. margin: 0.5rem 0;
  266. display: inline-block;
  267. text-indent: -9999px;
  268. background: url(icons/tick-color.svg) center no-repeat;
  269. height: 64px;
  270. width: 64px;
  271. white-space: nowrap;
  272. }
  273. }
  274. // page de login
  275. .formLogin{
  276. background: $sid-bg;
  277. .header{
  278. .configure{
  279. padding-right: 1rem;
  280. img{
  281. margin-right: 0.5rem;
  282. }
  283. a.signin{
  284. color: $white;
  285. }
  286. }
  287. }
  288. h1{
  289. color: $white;
  290. }
  291. form#crypto-form{
  292. div{
  293. margin-bottom: 1rem;
  294. label{
  295. font-size: 1rem;
  296. color: $grey-medium;
  297. }
  298. input{
  299. background: $main-first-darker;
  300. &:focus{
  301. background: $grey-lighter;
  302. color: $main-font-color;
  303. }
  304. }
  305. }
  306. }
  307. }