_buttons.scss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  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($btn-padding-y, $btn-padding-x, $btn-font-size, $btn-line-height, $btn-border-radius);
  18. @include transition($btn-transition);
  19. @include hover() {
  20. color: $body-color;
  21. text-decoration: none;
  22. }
  23. &:focus,
  24. &.focus {
  25. outline: 0;
  26. box-shadow: $btn-focus-box-shadow;
  27. }
  28. // Disabled comes first so active can properly restyle
  29. &.disabled,
  30. &:disabled {
  31. opacity: $btn-disabled-opacity;
  32. @include box-shadow(none);
  33. }
  34. &:not(:disabled):not(.disabled) {
  35. cursor: if($enable-pointer-cursor-for-buttons, pointer, null);
  36. &:active,
  37. &.active {
  38. @include box-shadow($btn-active-box-shadow);
  39. &:focus {
  40. @include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
  41. }
  42. }
  43. }
  44. }
  45. // Future-proof disabling of clicks on `<a>` elements
  46. a.btn.disabled,
  47. fieldset:disabled a.btn {
  48. pointer-events: none;
  49. }
  50. //
  51. // Alternate buttons
  52. //
  53. @each $color, $value in $theme-colors {
  54. .btn-#{$color} {
  55. @include button-variant($value, $value);
  56. }
  57. }
  58. @each $color, $value in $theme-colors {
  59. .btn-outline-#{$color} {
  60. @include button-outline-variant($value);
  61. }
  62. }
  63. //
  64. // Link buttons
  65. //
  66. // Make a button look and behave like a link
  67. .btn-link {
  68. font-weight: $font-weight-normal;
  69. color: $link-color;
  70. text-decoration: $link-decoration;
  71. @include hover() {
  72. color: $link-hover-color;
  73. text-decoration: $link-hover-decoration;
  74. }
  75. &:focus,
  76. &.focus {
  77. text-decoration: $link-hover-decoration;
  78. }
  79. &:disabled,
  80. &.disabled {
  81. color: $btn-link-disabled-color;
  82. pointer-events: none;
  83. }
  84. // No need for an active state here
  85. }
  86. //
  87. // Button Sizes
  88. //
  89. .btn-lg {
  90. @include button-size($btn-padding-y-lg, $btn-padding-x-lg, $btn-font-size-lg, $btn-line-height-lg, $btn-border-radius-lg);
  91. }
  92. .btn-sm {
  93. @include button-size($btn-padding-y-sm, $btn-padding-x-sm, $btn-font-size-sm, $btn-line-height-sm, $btn-border-radius-sm);
  94. }
  95. //
  96. // Block button
  97. //
  98. .btn-block {
  99. display: block;
  100. width: 100%;
  101. // Vertically space out multiple block buttons
  102. + .btn-block {
  103. margin-top: $btn-block-spacing-y;
  104. }
  105. }
  106. // Specificity overrides
  107. input[type="submit"],
  108. input[type="reset"],
  109. input[type="button"] {
  110. &.btn-block {
  111. width: 100%;
  112. }
  113. }
  114. .posisi-btn-1 .button-kirimlaporan{
  115. border-radius: 5px;
  116. }
  117. .button-kirimlaporan {
  118. // background: rgba(0, 0, 0, 0.05);
  119. display: inline-block;
  120. background-color: #6fb9de;
  121. width: 150px;
  122. height: 33px;
  123. margin-bottom: -15px;
  124. }
  125. .text-kirimlaporan {
  126. font-weight: 500;
  127. font-size: 17px;
  128. letter-spacing: 0.02em;
  129. text-align: center;
  130. padding-bottom: 5px;
  131. }
  132. .posisi-btn-1 .button-lihatpemantauan {
  133. border-radius: 5px;
  134. position: relative;
  135. margin-left: auto;
  136. // background: rgba(0, 0, 0, 0.05);
  137. display: inline-block;
  138. background-color: #6fb9de;
  139. width: 160px;
  140. height: 35px;
  141. margin-bottom: -5px;
  142. }
  143. .text-lihatpemantauan {
  144. // font-weight: 500;
  145. font-size: 16px;
  146. letter-spacing: 0.02em;
  147. text-align: center;
  148. // padding-bottom: 5px;
  149. margin: -5px;
  150. }
  151. .btn-labeled {
  152. padding-top: 0;
  153. padding-bottom: 0;
  154. margin-right: 20px;
  155. margin-top: 3%;
  156. background: #6fb9de;
  157. display: inline;
  158. border-radius: 7px;
  159. }
  160. .btn-labeled-2 {
  161. padding-top: 0;
  162. padding-bottom: 0;
  163. margin-top: 3%;
  164. background: #6fb9de;
  165. }
  166. .btn-login {
  167. background: #6fb9de;
  168. }
  169. .navbar-color {
  170. background-color: #6fb9de;
  171. }
  172. .posisi-btn-1 {
  173. position: relative;
  174. margin-left: auto;
  175. padding-right: 20px;
  176. }
  177. .tengah {
  178. text-align: center;
  179. padding: 30px;
  180. }
  181. .btn-simpanpenjadwalan {
  182. margin-left: auto;
  183. width: 100px;
  184. }
  185. .btn-colorpenjadwalan {
  186. // display: inline-block;
  187. background-color: #6fb9de;
  188. height: 35px;
  189. }
  190. .text-btn-penjadwalan-1 {
  191. letter-spacing: 0.02em;
  192. text-align: center;
  193. }
  194. .btn-simpanjadwal {
  195. margin-left: auto;
  196. width: 100px;
  197. margin-top: 20px;
  198. margin-bottom: 15px;
  199. }
  200. .btn-radius .btn-labeled-2{
  201. border-radius: 7px;
  202. display: inline;
  203. border: 0;
  204. }
  205. .btn-radius .btn-labeled{
  206. border-radius: 7px;
  207. display: inline;
  208. border: 0;
  209. }
  210. .btn-radius .btn-login{
  211. border-radius: 7px;
  212. border: 0;
  213. }
  214. .btn-header{
  215. display: inline-block;
  216. background-color: #6fb9de;
  217. width: auto;
  218. height: 34px;
  219. margin-left: 5px;
  220. border: 0;
  221. }
  222. .margin-l-5{
  223. margin-right: 5px;
  224. display: inline;
  225. }
  226. .btn-radius .button-kirimlaporan{
  227. border: 0;
  228. }
  229. .btn-radius .button-lihatpemantauan{
  230. border: 0;
  231. }