_buttons.scss 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  1. // stylelint-disable selector-no-qualifying-type
  2. //
  3. // Base styles
  4. //
  5. $colorbutton : #3e3a8e;
  6. $colortheme : #3e3a8e;
  7. .btn {
  8. display: inline-block;
  9. font-family: $btn-font-family;
  10. font-weight: $btn-font-weight;
  11. color: $body-color;
  12. text-align: center;
  13. text-decoration: if($link-decoration ==none, null, none);
  14. white-space: $btn-white-space;
  15. vertical-align: middle;
  16. user-select: none;
  17. background-color: transparent;
  18. border: $btn-border-width solid transparent;
  19. @include button-size($btn-padding-y,
  20. $btn-padding-x,
  21. $btn-font-size,
  22. $btn-line-height,
  23. $btn-border-radius );
  24. @include transition($btn-transition);
  25. @include hover() {
  26. color: $body-color;
  27. text-decoration: none;
  28. }
  29. &:focus,
  30. &.focus {
  31. outline: 0;
  32. box-shadow: $btn-focus-box-shadow;
  33. }
  34. // Disabled comes first so active can properly restyle
  35. &.disabled,
  36. &:disabled {
  37. opacity: $btn-disabled-opacity;
  38. @include box-shadow(none);
  39. }
  40. &:not(:disabled):not(.disabled) {
  41. cursor: if($enable-pointer-cursor-for-buttons, pointer, null);
  42. &:active,
  43. &.active {
  44. @include box-shadow($btn-active-box-shadow);
  45. &:focus {
  46. @include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
  47. }
  48. }
  49. }
  50. }
  51. // Future-proof disabling of clicks on `<a>` elements
  52. a.btn.disabled,
  53. fieldset:disabled a.btn {
  54. pointer-events: none;
  55. }
  56. //
  57. // Alternate buttons
  58. //
  59. @each $color,
  60. $value in $theme-colors {
  61. .btn-#{$color} {
  62. @include button-variant($value, $value);
  63. }
  64. }
  65. @each $color,
  66. $value in $theme-colors {
  67. .btn-outline-#{$color} {
  68. @include button-outline-variant($value);
  69. }
  70. }
  71. //
  72. // Link buttons
  73. //
  74. // Make a button look and behave like a link
  75. .btn-link {
  76. font-weight: $font-weight-normal;
  77. color: $link-color;
  78. text-decoration: $link-decoration;
  79. @include hover() {
  80. color: $link-hover-color;
  81. text-decoration: $link-hover-decoration;
  82. }
  83. &:focus,
  84. &.focus {
  85. text-decoration: $link-hover-decoration;
  86. }
  87. &:disabled,
  88. &.disabled {
  89. color: $btn-link-disabled-color;
  90. pointer-events: none;
  91. }
  92. // No need for an active state here
  93. }
  94. //
  95. // Button Sizes
  96. //
  97. .btn-lg {
  98. @include button-size($btn-padding-y-lg,
  99. $btn-padding-x-lg,
  100. $btn-font-size-lg,
  101. $btn-line-height-lg,
  102. $btn-border-radius-lg );
  103. }
  104. .btn-sm {
  105. @include button-size($btn-padding-y-sm,
  106. $btn-padding-x-sm,
  107. $btn-font-size-sm,
  108. $btn-line-height-sm,
  109. $btn-border-radius-sm );
  110. }
  111. //
  112. // Block button
  113. //
  114. .btn-block {
  115. display: block;
  116. width: 100%;
  117. // Vertically space out multiple block buttons
  118. +.btn-block {
  119. margin-top: $btn-block-spacing-y;
  120. }
  121. }
  122. // Specificity overrides
  123. input[type="submit"],
  124. input[type="reset"],
  125. input[type="button"] {
  126. &.btn-block {
  127. width: 100%;
  128. }
  129. }
  130. .posisi-btn-1 .button-kirimlaporan {
  131. border-radius: 5px;
  132. }
  133. .button-kirimlaporan {
  134. // background: rgba(0, 0, 0, 0.05);
  135. display: inline-block;
  136. background-color: #6fb9de;
  137. width: 150px;
  138. height: 33px;
  139. margin-bottom: -15px;
  140. }
  141. .text-kirimlaporan {
  142. font-weight: 500;
  143. font-size: 17px;
  144. letter-spacing: 0.02em;
  145. text-align: center;
  146. padding-bottom: 5px;
  147. }
  148. .posisi-btn-1 .button-lihatpemantauan {
  149. border-radius: 5px;
  150. position: relative;
  151. margin-left: auto;
  152. // background: rgba(0, 0, 0, 0.05);
  153. display: inline-block;
  154. background-color: #3e3a8e;
  155. width: 160px;
  156. height: 35px;
  157. margin-bottom: -5px;
  158. }
  159. .text-lihatpemantauan {
  160. // font-weight: 500;
  161. font-size: 16px;
  162. letter-spacing: 0.02em;
  163. text-align: center;
  164. // padding-bottom: 5px;
  165. margin: -5px;
  166. }
  167. .btn-labeled {
  168. padding-top: 0;
  169. padding-bottom: 0;
  170. margin-right: 20px;
  171. margin-top: 3%;
  172. background: $colorbutton;
  173. display: inline;
  174. border-radius: 7px;
  175. transition: ease background-color 250ms;
  176. &:hover:enabled {
  177. background-color: $colorbutton;
  178. opacity: 0.9;
  179. }
  180. }
  181. .btn-labeled-2 {
  182. padding-top: 0;
  183. padding-bottom: 0;
  184. margin-top: 3%;
  185. background: $colorbutton;
  186. transition: ease background-color 250ms;
  187. &:hover:enabled {
  188. background-color: $colorbutton;
  189. opacity: 0.9;
  190. }
  191. }
  192. .btn-labeled-3 {
  193. border: #3e3a8e solid 2px;
  194. padding-top: 0;
  195. padding-bottom: 0;
  196. margin-top: 3%;
  197. color: #3e3a8e;
  198. background: transparent;
  199. transition: ease background-color 250ms;
  200. &:hover:enabled {
  201. background-color: #e9e8e8;
  202. opacity: 0.9;
  203. color: #3e3a8e;
  204. }
  205. }
  206. .btn-labeled-4 {
  207. border: #3e3a8e solid 2px;
  208. padding-top: 0;
  209. padding-bottom: 0;
  210. margin-top: 3%;
  211. color: #3e3a8e;
  212. background: white;
  213. transition: ease background-color 250ms;
  214. &:hover:enabled {
  215. background-color: #e9e8e8;
  216. opacity: 0.9;
  217. color: #3e3a8e;
  218. }
  219. }
  220. .btn-labeled-3-notHover {
  221. border: #3e3a8e solid 2px;
  222. padding-top: 0;
  223. padding-bottom: 0;
  224. margin-top: 3%;
  225. color: #3e3a8e;
  226. // background: transparent;
  227. // transition: ease background-color 250ms;
  228. &[disabled] {
  229. color: #3e3a8e;
  230. }
  231. }
  232. .btn-radius .btn-labeled-3-notHover {
  233. border-radius: 7px;
  234. }
  235. .btn-labeled-notHover {
  236. padding-top: 0;
  237. padding-bottom: 0;
  238. margin-right: 20px;
  239. margin-top: 3%;
  240. background: $colorbutton;
  241. display: inline;
  242. border-radius: 7px;
  243. transition: ease background-color 250ms;
  244. }
  245. .btn-radius .btn-labeled-notHover {
  246. border-radius: 7px;
  247. }
  248. .btn-radius .btn-labeled-3 {
  249. border-radius: 7px;
  250. }
  251. .btn-login {
  252. background: $colorbutton;
  253. transition: ease background-color 250ms;
  254. border: $colorbutton solid 2px;
  255. border-radius: 7px !important;
  256. &:hover:enabled{
  257. background-color: $colorbutton;
  258. opacity: 0.8;
  259. }
  260. }
  261. //jangan di ubah
  262. .btn-v2 {
  263. background: transparent;
  264. border: #3e3a8e solid 2px;
  265. border-radius: 7px !important;
  266. }
  267. .btn-v3 {
  268. background: transparent;
  269. border: #a1a1a3 solid 1px;
  270. border-radius: 7px !important;
  271. }
  272. .navbar-color {
  273. background-color: $colortheme;
  274. }
  275. .posisi-btn-1 {
  276. position: relative;
  277. margin-left: auto;
  278. padding-right: 20px;
  279. }
  280. .tengah {
  281. text-align: center;
  282. padding: 30px;
  283. }
  284. .btn-simpanpenjadwalan {
  285. margin-left: auto;
  286. width: 100px;
  287. }
  288. .btn-colorpenjadwalan {
  289. // display: inline-block;
  290. background-color: $colorbutton;
  291. height: 35px;
  292. transition: ease background-color 250ms;
  293. // &:hover {
  294. // background-color: $colorbutton; opacity: 0.9;
  295. // }
  296. }
  297. .text-btn-penjadwalan-1 {
  298. letter-spacing: 0.02em;
  299. text-align: center;
  300. }
  301. .btn-simpanjadwal {
  302. margin-left: auto;
  303. width: 100px;
  304. margin-top: 20px;
  305. margin-bottom: 15px;
  306. }
  307. .btn-radius .btn-labeled-2 {
  308. border-radius: 7px;
  309. display: inline;
  310. border: 0;
  311. }
  312. .btn-radius .btn-labeled {
  313. border-radius: 7px;
  314. display: inline;
  315. border: 0;
  316. }
  317. .btn-radius .btn-login {
  318. border-radius: 7px;
  319. border: 0;
  320. }
  321. .btn-header {
  322. display: inline-block;
  323. background-color: $colorbutton;
  324. width: auto;
  325. height: 34px;
  326. margin-left: 5px;
  327. border: 0;
  328. transition: ease background-color 250ms;
  329. &:hover:enabled {
  330. background-color: $colorbutton;
  331. opacity: 0.9;
  332. }
  333. }
  334. .margin-l-5 {
  335. margin-right: 5px;
  336. display: inline;
  337. }
  338. .btn-radius .button-kirimlaporan {
  339. border: 0;
  340. background-color: $colorbutton;
  341. }
  342. .btn-radius .button-lihatpemantauan {
  343. border: 0;
  344. }
  345. .button-hidden {
  346. border: 0;
  347. padding: 0;
  348. }
  349. .color-3e3a8e {
  350. background-color: #3e3a8e;
  351. color: #3e3a8e;
  352. }
  353. .margin-left-auto {
  354. float: left;
  355. margin-right: auto;
  356. }
  357. .icon-laporan-baru {
  358. margin-left: 5px;
  359. // margin-right: -8px;
  360. width: 13px;
  361. }
  362. .modals {
  363. // height: 40px;
  364. background-color: $colortheme;
  365. padding: 5px;
  366. margin-bottom: -2px;
  367. border-radius: 5px;
  368. }
  369. .modals-1 {
  370. background-color: #b8b8b8;
  371. padding: 10px;
  372. border-radius: 5px;
  373. }
  374. .modals-verifikasi {
  375. background-color: transparent;
  376. padding: 5px;
  377. border-radius: 5px;
  378. color: black;
  379. }
  380. .btn-verif {
  381. background-color: Transparent;
  382. background-repeat: no-repeat;
  383. border: none;
  384. cursor: pointer;
  385. overflow: hidden;
  386. border: 0;
  387. padding: 0;
  388. margin-bottom: 3px;
  389. float: right;
  390. margin-bottom: auto;
  391. }