_buttons.scss 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  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(
  20. $btn-padding-y,
  21. $btn-padding-x,
  22. $btn-font-size,
  23. $btn-line-height,
  24. $btn-border-radius
  25. );
  26. @include transition($btn-transition);
  27. @include hover() {
  28. color: $body-color;
  29. text-decoration: none;
  30. }
  31. &:focus,
  32. &.focus {
  33. outline: 0;
  34. box-shadow: $btn-focus-box-shadow;
  35. }
  36. // Disabled comes first so active can properly restyle
  37. &.disabled,
  38. &:disabled {
  39. opacity: $btn-disabled-opacity;
  40. @include box-shadow(none);
  41. }
  42. &:not(:disabled):not(.disabled) {
  43. cursor: if($enable-pointer-cursor-for-buttons, pointer, null);
  44. &:active,
  45. &.active {
  46. @include box-shadow($btn-active-box-shadow);
  47. &:focus {
  48. @include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
  49. }
  50. }
  51. }
  52. }
  53. // Future-proof disabling of clicks on `<a>` elements
  54. a.btn.disabled,
  55. fieldset:disabled a.btn {
  56. pointer-events: none;
  57. }
  58. //
  59. // Alternate buttons
  60. //
  61. @each $color, $value in $theme-colors {
  62. .btn-#{$color} {
  63. @include button-variant($value, $value);
  64. }
  65. }
  66. @each $color, $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(
  99. $btn-padding-y-lg,
  100. $btn-padding-x-lg,
  101. $btn-font-size-lg,
  102. $btn-line-height-lg,
  103. $btn-border-radius-lg
  104. );
  105. }
  106. .btn-sm {
  107. @include button-size(
  108. $btn-padding-y-sm,
  109. $btn-padding-x-sm,
  110. $btn-font-size-sm,
  111. $btn-line-height-sm,
  112. $btn-border-radius-sm
  113. );
  114. }
  115. //
  116. // Block button
  117. //
  118. .btn-block {
  119. display: block;
  120. width: 100%;
  121. // Vertically space out multiple block buttons
  122. + .btn-block {
  123. margin-top: $btn-block-spacing-y;
  124. }
  125. }
  126. // Specificity overrides
  127. input[type="submit"],
  128. input[type="reset"],
  129. input[type="button"] {
  130. &.btn-block {
  131. width: 100%;
  132. }
  133. }
  134. .posisi-btn-1 .button-kirimlaporan {
  135. border-radius: 5px;
  136. }
  137. .button-kirimlaporan {
  138. // background: rgba(0, 0, 0, 0.05);
  139. display: inline-block;
  140. background-color: #6fb9de;
  141. width: 150px;
  142. height: 33px;
  143. margin-bottom: -15px;
  144. }
  145. .text-kirimlaporan {
  146. font-weight: 500;
  147. font-size: 17px;
  148. letter-spacing: 0.02em;
  149. text-align: center;
  150. padding-bottom: 5px;
  151. }
  152. .posisi-btn-1 .button-lihatpemantauan {
  153. border-radius: 5px;
  154. position: relative;
  155. margin-left: auto;
  156. // background: rgba(0, 0, 0, 0.05);
  157. display: inline-block;
  158. background-color: #3e3a8e;
  159. width: 160px;
  160. height: 35px;
  161. margin-bottom: -5px;
  162. }
  163. .text-lihatpemantauan {
  164. // font-weight: 500;
  165. font-size: 16px;
  166. letter-spacing: 0.02em;
  167. text-align: center;
  168. // padding-bottom: 5px;
  169. margin: -5px;
  170. }
  171. .btn-labeled {
  172. padding-top: 0;
  173. padding-bottom: 0;
  174. margin-right: 20px;
  175. margin-top: 3%;
  176. background: $colorbutton;
  177. display: inline;
  178. border-radius: 7px;
  179. transition: ease background-color 250ms;
  180. &:hover {
  181. background-color: $colorbutton; opacity: 0.9;
  182. }}
  183. .btn-labeled-2 {
  184. padding-top: 0;
  185. padding-bottom: 0;
  186. margin-top: 3%;
  187. background:$colorbutton;
  188. transition: ease background-color 250ms;
  189. &:hover {
  190. background-color: $colorbutton; opacity: 0.9;
  191. }
  192. }
  193. .btn-login {
  194. background: $colorbutton;
  195. transition: ease background-color 250ms;
  196. &:hover {
  197. background-color: $colorbutton; opacity: 0.8;
  198. }
  199. } //jangan di ubah
  200. .navbar-color {
  201. background-color: $colortheme;
  202. }
  203. .posisi-btn-1 {
  204. position: relative;
  205. margin-left: auto;
  206. padding-right: 20px;
  207. }
  208. .tengah {
  209. text-align: center;
  210. padding: 30px;
  211. }
  212. .btn-simpanpenjadwalan {
  213. margin-left: auto;
  214. width: 100px;
  215. }
  216. .btn-colorpenjadwalan {
  217. // display: inline-block;
  218. background-color:$colorbutton;
  219. height: 35px;
  220. transition: ease background-color 250ms;
  221. &:hover {
  222. background-color: $colorbutton; opacity: 0.9;
  223. }
  224. }
  225. .text-btn-penjadwalan-1 {
  226. letter-spacing: 0.02em;
  227. text-align: center;
  228. }
  229. .btn-simpanjadwal {
  230. margin-left: auto;
  231. width: 100px;
  232. margin-top: 20px;
  233. margin-bottom: 15px;
  234. }
  235. .btn-radius .btn-labeled-2 {
  236. border-radius: 7px;
  237. display: inline;
  238. border: 0;
  239. }
  240. .btn-radius .btn-labeled {
  241. border-radius: 7px;
  242. display: inline;
  243. border: 0;
  244. }
  245. .btn-radius .btn-login {
  246. border-radius: 7px;
  247. border: 0;
  248. }
  249. .btn-header {
  250. display: inline-block;
  251. background-color: $colorbutton;
  252. width: auto;
  253. height: 34px;
  254. margin-left: 5px;
  255. border: 0;
  256. transition: ease background-color 250ms;
  257. &:hover {
  258. background-color: $colorbutton; opacity: 0.9;
  259. }
  260. }
  261. .margin-l-5 {
  262. margin-right: 5px;
  263. display: inline;
  264. }
  265. .btn-radius .button-kirimlaporan {
  266. border: 0;
  267. background-color: $colorbutton;
  268. }
  269. .btn-radius .button-lihatpemantauan {
  270. border: 0;
  271. }
  272. .button-hidden {
  273. border: 0;
  274. padding: 0;
  275. }
  276. .color-3e3a8e {
  277. background-color: #3e3a8e;
  278. color: #3e3a8e;
  279. }
  280. .margin-left-auto {
  281. float: left;
  282. margin-right: auto;
  283. }
  284. .icon-laporan-baru {
  285. margin-left: 5px;
  286. // margin-right: -8px;
  287. width: 13px;
  288. }
  289. .modals {
  290. // height: 40px;
  291. background-color: $colortheme;
  292. padding: 5px;
  293. margin-bottom: -2px;
  294. border-radius: 5px;
  295. }
  296. .modals-1 {
  297. background-color: #b8b8b8;
  298. padding: 10px;
  299. border-radius: 5px;
  300. }
  301. .modals-verifikasi {
  302. background-color: transparent;
  303. padding: 5px;
  304. border-radius: 5px;
  305. color: black;
  306. }
  307. .btn-verif {
  308. background-color: Transparent;
  309. background-repeat: no-repeat;
  310. border: none;
  311. cursor: pointer;
  312. overflow: hidden;
  313. border: 0;
  314. padding: 0;
  315. margin-bottom: 3px;
  316. float: right;
  317. margin-bottom: auto;
  318. }