_buttons.scss 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. // stylelint-disable selector-no-qualifying-type
  2. //
  3. // Base styles
  4. //
  5. .btn {
  6. display: inline-block;
  7. font-family: $btn-font-family;
  8. font-weight: $btn-font-weight;
  9. color: $body-color;
  10. text-align: center;
  11. text-decoration: if($link-decoration == none, null, none);
  12. white-space: $btn-white-space;
  13. vertical-align: middle;
  14. user-select: none;
  15. background-color: transparent;
  16. border: $btn-border-width solid transparent;
  17. @include button-size(
  18. $btn-padding-y,
  19. $btn-padding-x,
  20. $btn-font-size,
  21. $btn-line-height,
  22. $btn-border-radius
  23. );
  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, $value in $theme-colors {
  60. .btn-#{$color} {
  61. @include button-variant($value, $value);
  62. }
  63. }
  64. @each $color, $value in $theme-colors {
  65. .btn-outline-#{$color} {
  66. @include button-outline-variant($value);
  67. }
  68. }
  69. //
  70. // Link buttons
  71. //
  72. // Make a button look and behave like a link
  73. .btn-link {
  74. font-weight: $font-weight-normal;
  75. color: $link-color;
  76. text-decoration: $link-decoration;
  77. @include hover() {
  78. color: $link-hover-color;
  79. text-decoration: $link-hover-decoration;
  80. }
  81. &:focus,
  82. &.focus {
  83. text-decoration: $link-hover-decoration;
  84. }
  85. &:disabled,
  86. &.disabled {
  87. color: $btn-link-disabled-color;
  88. pointer-events: none;
  89. }
  90. // No need for an active state here
  91. }
  92. //
  93. // Button Sizes
  94. //
  95. .btn-lg {
  96. @include button-size(
  97. $btn-padding-y-lg,
  98. $btn-padding-x-lg,
  99. $btn-font-size-lg,
  100. $btn-line-height-lg,
  101. $btn-border-radius-lg
  102. );
  103. }
  104. .btn-sm {
  105. @include button-size(
  106. $btn-padding-y-sm,
  107. $btn-padding-x-sm,
  108. $btn-font-size-sm,
  109. $btn-line-height-sm,
  110. $btn-border-radius-sm
  111. );
  112. }
  113. //
  114. // Block button
  115. //
  116. .btn-block {
  117. display: block;
  118. width: 100%;
  119. // Vertically space out multiple block buttons
  120. + .btn-block {
  121. margin-top: $btn-block-spacing-y;
  122. }
  123. }
  124. // Specificity overrides
  125. input[type="submit"],
  126. input[type="reset"],
  127. input[type="button"] {
  128. &.btn-block {
  129. width: 100%;
  130. }
  131. }
  132. .posisi-btn-1 .button-kirimlaporan {
  133. border-radius: 5px;
  134. }
  135. .button-kirimlaporan {
  136. // background: rgba(0, 0, 0, 0.05);
  137. display: inline-block;
  138. background-color: #6fb9de;
  139. width: 150px;
  140. height: 33px;
  141. margin-bottom: -15px;
  142. }
  143. .text-kirimlaporan {
  144. font-weight: 500;
  145. font-size: 17px;
  146. letter-spacing: 0.02em;
  147. text-align: center;
  148. padding-bottom: 5px;
  149. }
  150. .posisi-btn-1 .button-lihatpemantauan {
  151. border-radius: 5px;
  152. position: relative;
  153. margin-left: auto;
  154. // background: rgba(0, 0, 0, 0.05);
  155. display: inline-block;
  156. background-color: #3e3a8e;
  157. width: 160px;
  158. height: 35px;
  159. margin-bottom: -5px;
  160. }
  161. .text-lihatpemantauan {
  162. // font-weight: 500;
  163. font-size: 16px;
  164. letter-spacing: 0.02em;
  165. text-align: center;
  166. // padding-bottom: 5px;
  167. margin: -5px;
  168. }
  169. .btn-labeled {
  170. padding-top: 0;
  171. padding-bottom: 0;
  172. margin-right: 20px;
  173. margin-top: 3%;
  174. background: #3e3a8e;
  175. display: inline;
  176. border-radius: 7px;
  177. }
  178. .btn-labeled-2 {
  179. padding-top: 0;
  180. padding-bottom: 0;
  181. margin-top: 3%;
  182. background: #3e3a8e;
  183. }
  184. .btn-login {
  185. background: #3e3a8e;
  186. }
  187. .navbar-color {
  188. background-color: #3e3a8e;
  189. }
  190. .posisi-btn-1 {
  191. position: relative;
  192. margin-left: auto;
  193. padding-right: 20px;
  194. }
  195. .tengah {
  196. text-align: center;
  197. padding: 30px;
  198. }
  199. .btn-simpanpenjadwalan {
  200. margin-left: auto;
  201. width: 100px;
  202. }
  203. .btn-colorpenjadwalan {
  204. // display: inline-block;
  205. background-color: #3e3a8e;
  206. height: 35px;
  207. }
  208. .text-btn-penjadwalan-1 {
  209. letter-spacing: 0.02em;
  210. text-align: center;
  211. }
  212. .btn-simpanjadwal {
  213. margin-left: auto;
  214. width: 100px;
  215. margin-top: 20px;
  216. margin-bottom: 15px;
  217. }
  218. .btn-radius .btn-labeled-2 {
  219. border-radius: 7px;
  220. display: inline;
  221. border: 0;
  222. }
  223. .btn-radius .btn-labeled {
  224. border-radius: 7px;
  225. display: inline;
  226. border: 0;
  227. }
  228. .btn-radius .btn-login {
  229. border-radius: 7px;
  230. border: 0;
  231. }
  232. .btn-header {
  233. display: inline-block;
  234. background-color: #3e3a8e;
  235. width: auto;
  236. height: 34px;
  237. margin-left: 5px;
  238. border: 0;
  239. }
  240. .margin-l-5 {
  241. margin-right: 5px;
  242. display: inline;
  243. }
  244. .btn-radius .button-kirimlaporan {
  245. border: 0;
  246. background-color: #3e3a8e;
  247. }
  248. .btn-radius .button-lihatpemantauan {
  249. border: 0;
  250. }
  251. .button-hidden {
  252. border: 0;
  253. padding: 0;
  254. }
  255. .color-3e3a8e {
  256. background-color: #3e3a8e;
  257. color: #3e3a8e;
  258. }
  259. .margin-left-auto {
  260. float: right;
  261. margin-top: -3px;
  262. }
  263. .icon-laporan-baru {
  264. margin-left: 5px;
  265. // margin-right: -8px;
  266. width: 13px;
  267. }
  268. .modals {
  269. // height: 40px;
  270. background-color: #3e3a8e;
  271. padding: 5px;
  272. margin-bottom: -2px;
  273. border-radius: 5px;
  274. }
  275. .modals-1 {
  276. background-color: #b8b8b8;
  277. padding: 10px;
  278. border-radius: 5px;
  279. }
  280. .modals-verifikasi {
  281. background-color: #3e3a8e;
  282. padding: 5px;
  283. border-radius: 5px;
  284. }
  285. .btn-verif {
  286. background-color: Transparent;
  287. background-repeat: no-repeat;
  288. border: none;
  289. cursor: pointer;
  290. overflow: hidden;
  291. border: 0;
  292. padding: 0;
  293. margin-bottom: 3px;
  294. float: right;
  295. margin-bottom: auto;
  296. }