Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

448 lines
7.4KB

  1. @import "compass";
  2. /* Environnement beta */
  3. .badge-environment-beta {
  4. position: relative;
  5. display: inline-block;
  6. font-size: 13px;
  7. line-height: 20px;
  8. font-family: 'worksans_semibold';
  9. font-weight: normal;
  10. padding: 1px 10px;
  11. border-radius: 10px;
  12. color: white;
  13. background-color: black;
  14. text-align: center;
  15. vertical-align: baseline;
  16. }
  17. #main {
  18. /* Boutons */
  19. .btn-primary,
  20. .btn-secondary {
  21. @include border-radius(0px);
  22. font-family: 'worksans_semibold';
  23. .bi {
  24. margin-right: 5px;
  25. }
  26. }
  27. .btn-primary {
  28. background-color: $color-primary;
  29. border: 0px none;
  30. color: white;
  31. &:hover, &:active, &:focus {
  32. filter: brightness(90%);
  33. border: 0px none;
  34. color: white;
  35. }
  36. }
  37. .btn-secondary {
  38. color: black;
  39. background-color: $color-gray-light;
  40. border: solid 1px $color-gray-light;
  41. &:hover, &.active {
  42. background-color: $color-gray;
  43. border: solid 1px $color-gray;
  44. color: black;
  45. }
  46. }
  47. /* Alertes */
  48. .alert {
  49. border: 0px none;
  50. @include border-radius(0px !important);
  51. color: black;
  52. padding: 20px;
  53. margin-bottom: 20px;
  54. &.alert-success {
  55. background-color: #e4e9ad !important;
  56. }
  57. &.alert-info {
  58. background-color: #97bfc4 !important;
  59. }
  60. &.alert-warning {
  61. background-color: #ecd58e !important;
  62. }
  63. &.alert-danger {
  64. background-color: #edbaa4 !important;
  65. }
  66. &.alert-dark {
  67. background-color: $color-gray !important;
  68. }
  69. a {
  70. color: black;
  71. }
  72. p:last-child {
  73. margin-bottom: 0px;
  74. }
  75. }
  76. /* Card */
  77. .card {
  78. @include border-radius(0px);
  79. }
  80. /* Tables */
  81. $table-striped-bg-factor: black;
  82. .table {
  83. thead {
  84. tr {
  85. th {
  86. font-family: 'worksans_semibold';
  87. }
  88. }
  89. }
  90. &.table-bordered {
  91. }
  92. &.table-striped {
  93. border: 0px none;
  94. &.table-striped > tbody > tr:nth-of-type(2n) > *,
  95. thead tr th {
  96. background-color: $color-gray;
  97. }
  98. &.table-striped > tbody > tr:nth-of-type(2n+1) > * {
  99. background-color: #f8f7f3;
  100. }
  101. thead tr th,
  102. tbody tr td {
  103. @include box-shadow(-20px 0 20px -20px rgba(0,0,0,0.2) inset);
  104. &:last-child {
  105. @include box-shadow(none);
  106. }
  107. }
  108. thead {
  109. tr {
  110. border: 0px none;
  111. th {
  112. border: 0px none;
  113. padding: 10px 20px;
  114. }
  115. }
  116. }
  117. tbody {
  118. tr {
  119. border: 0px none;
  120. td {
  121. border: 0px none;
  122. padding: 20px;
  123. }
  124. }
  125. }
  126. }
  127. .btn-secondary {
  128. display: inline-block;
  129. margin-bottom: 5px;
  130. }
  131. }
  132. /* Formulaires */
  133. form {
  134. .control-label {
  135. font-family: 'worksans_medium';
  136. }
  137. input[type="text"],
  138. input[type="email"],
  139. input[type="password"],
  140. textarea,
  141. select {
  142. @include box-shadow(none);
  143. @include border-radius(0px);
  144. border: solid 1px $color-gray-dark;
  145. }
  146. .form-control {
  147. @include appearance(auto);
  148. }
  149. .form-control:hover {
  150. border: solid 1px gray;
  151. }
  152. .form-control:focus {
  153. @include box-shadow(0px 0px 0px 1px $color-primary) ;
  154. border: solid 1px $color-primary;
  155. }
  156. .has-error {
  157. .control-label {
  158. color: black;
  159. }
  160. .form-control:focus, .form-control {
  161. @include box-shadow(none);
  162. border-color: #a94442;
  163. }
  164. .help-block-error {
  165. color: #a94442;
  166. }
  167. }
  168. .form-buttons {
  169. text-align: right;
  170. }
  171. }
  172. }
  173. /* Divers */
  174. .float-left {
  175. float: left;
  176. }
  177. .float-right {
  178. float: right;
  179. }
  180. .clr {
  181. clear: both;
  182. }
  183. /* Navigation utilisateur en haut du site */
  184. .container-nav-user-top {
  185. position: relative;
  186. z-index: 999;
  187. background-color: white;
  188. .badge-environment-beta {
  189. position: absolute;
  190. top: 8px;
  191. left: 15px;
  192. }
  193. .nav-user-top {
  194. position: absolute;
  195. top: 0px;
  196. right: 0px;
  197. background-color: white;
  198. z-index: 100;
  199. .navbar {
  200. @include border-radius(0px);
  201. border: 0px none;
  202. padding: 0px;
  203. margin: 0px;
  204. min-height: 0px;
  205. ul {
  206. position: relative;
  207. left: -10px;
  208. li {
  209. padding-left: 5px;
  210. a.nav-link {
  211. padding-left: 10px;
  212. padding-right: 10px;
  213. padding-top: 7px;
  214. padding-bottom: 7px;
  215. font-family: 'worksans_semibold';
  216. color: black;
  217. font-size: 16px;
  218. &:hover, &:focus, &.active {
  219. background: none;
  220. color: $color-primary;
  221. }
  222. .bi {
  223. color: $color-primary;
  224. font-size: 16px;
  225. margin-right: 2px;
  226. position: relative;
  227. top: 1px;
  228. }
  229. }
  230. &.nav-item-producers .dropdown-menu {
  231. right: -75px;
  232. left: -75px;
  233. }
  234. &.nav-item-user .dropdown-menu {
  235. right: -22px;
  236. left: 9px;
  237. }
  238. .dropdown-menu {
  239. a {
  240. padding: 2px 20px;
  241. &:hover, &:focus {
  242. background-color: $color-gray;
  243. }
  244. }
  245. }
  246. }
  247. }
  248. }
  249. .dropdown-menu {
  250. z-index: 9999;
  251. .divider.dropdown-header {
  252. padding: 0px;
  253. }
  254. }
  255. }
  256. }
  257. @media screen and (max-width: 991px) {
  258. .container-nav-user-top {
  259. .nav-user-top {
  260. position: relative;
  261. .navbar {
  262. ul {
  263. width: 100%;
  264. display: block;
  265. margin-right: 0px;
  266. text-align: center;
  267. li {
  268. display: inline-block;
  269. &.nav-item-producers .dropdown-menu {
  270. left: -115px;
  271. width: 300px;
  272. }
  273. &.nav-item-user .dropdown-menu {
  274. left: -40px;
  275. width: 150px;
  276. }
  277. }
  278. }
  279. .link-text {
  280. display: none;
  281. }
  282. .dropdown-menu {
  283. position: absolute;
  284. right: 5%;
  285. left: auto;
  286. border: 1px solid #ddd;
  287. background: #fff;
  288. @include box-shadow(0px 0px 4px gray);
  289. li {
  290. a {
  291. padding-left: 15px;
  292. }
  293. }
  294. }
  295. }
  296. }
  297. }
  298. }
  299. /* Block de date */
  300. .block-date {
  301. margin: 0px auto;
  302. padding-top: 0px;
  303. text-align: center;
  304. .day {
  305. text-transform: capitalize;
  306. line-height: 15px;
  307. font-size: 15px;
  308. text-transform: uppercase;
  309. }
  310. .num {
  311. font-size: 30px;
  312. line-height: 35px;
  313. font-weight: bold;
  314. }
  315. .month {
  316. text-transform: uppercase;
  317. line-height: 15px;
  318. font-size: 15px;
  319. color: darken($color-primary, 5);
  320. }
  321. }
  322. /* Page d'erreur */
  323. #main #content .site-error {
  324. .col-lg-6 {
  325. margin: 0px auto;
  326. float: none;
  327. }
  328. .panel {
  329. .panel-body {
  330. }
  331. h2 {
  332. text-transform: none;
  333. font-size: 25px;
  334. margin-top: 0px;
  335. margin-bottom: 20px;
  336. }
  337. p:last-child {
  338. margin-bottom: 0px;
  339. padding-bottom: 0px;
  340. }
  341. }
  342. .alert {
  343. padding-bottom: 5px;
  344. h3 {
  345. margin-top: 5px;
  346. margin-bottom: 18px;
  347. }
  348. p {
  349. margin-bottom: 15px;
  350. }
  351. .btn {
  352. text-decoration: none;
  353. }
  354. }
  355. p.error-message {
  356. font-weight: bold;
  357. }
  358. }
  359. /* Paiement */
  360. .payment-detail-remaining-surplus {
  361. font-size: 13px;
  362. color: gray;
  363. strong {
  364. font-weight: bold;
  365. }
  366. }