You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

434 line
7.1KB

  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. .dropdown-menu {
  231. a {
  232. padding: 2px 20px;
  233. &:hover, &:focus {
  234. background-color: $color-gray;
  235. }
  236. }
  237. }
  238. }
  239. }
  240. }
  241. .dropdown-menu {
  242. z-index: 9999;
  243. .divider.dropdown-header {
  244. padding: 0px;
  245. }
  246. }
  247. }
  248. }
  249. @media screen and (max-width: 991px) {
  250. .container-nav-user-top {
  251. .nav-user-top {
  252. position: relative;
  253. .navbar {
  254. ul {
  255. width: 100%;
  256. display: block;
  257. margin-right: 0px;
  258. text-align: center;
  259. li {
  260. display: inline-block;
  261. &.nav-item-producers {
  262. .dropdown-menu {
  263. right: -95px;
  264. }
  265. }
  266. }
  267. }
  268. .link-text {
  269. display: none;
  270. }
  271. .dropdown-menu {
  272. position: absolute;
  273. right: 5%;
  274. left: auto;
  275. border: 1px solid #ddd;
  276. background: #fff;
  277. @include box-shadow(0px 0px 4px gray);
  278. li {
  279. a {
  280. padding-left: 15px;
  281. }
  282. }
  283. }
  284. }
  285. }
  286. }
  287. }
  288. /* Block de date */
  289. .block-date {
  290. margin: 0px auto;
  291. padding-top: 0px;
  292. text-align: center;
  293. .day {
  294. text-transform: capitalize;
  295. line-height: 15px;
  296. font-size: 15px;
  297. text-transform: uppercase;
  298. }
  299. .num {
  300. font-size: 30px;
  301. line-height: 35px;
  302. font-weight: bold;
  303. }
  304. .month {
  305. text-transform: uppercase;
  306. line-height: 15px;
  307. font-size: 15px;
  308. color: darken($color-primary, 5);
  309. }
  310. }
  311. /* Page d'erreur */
  312. #main #content .site-error {
  313. .col-lg-6 {
  314. margin: 0px auto;
  315. float: none;
  316. }
  317. .panel {
  318. .panel-body {
  319. }
  320. h2 {
  321. text-transform: none;
  322. font-size: 25px;
  323. margin-top: 0px;
  324. margin-bottom: 20px;
  325. }
  326. p:last-child {
  327. margin-bottom: 0px;
  328. padding-bottom: 0px;
  329. }
  330. }
  331. .alert {
  332. padding-bottom: 5px;
  333. h3 {
  334. margin-top: 5px;
  335. margin-bottom: 18px;
  336. }
  337. p {
  338. margin-bottom: 15px;
  339. }
  340. .btn {
  341. text-decoration: none;
  342. }
  343. }
  344. p.error-message {
  345. font-weight: bold;
  346. }
  347. }
  348. /* Paiement */
  349. .payment-detail-remaining-surplus {
  350. font-size: 13px;
  351. color: gray;
  352. strong {
  353. font-weight: bold;
  354. }
  355. }