_buttons.scss 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  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. border: 0;
  117. }
  118. .button-kirimlaporan {
  119. // background: rgba(0, 0, 0, 0.05);
  120. display: inline-block;
  121. background-color: #6fb9de;
  122. width: 150px;
  123. height: 33px;
  124. margin-bottom: -15px;
  125. }
  126. .text-kirimlaporan {
  127. font-weight: 500;
  128. font-size: 17px;
  129. letter-spacing: 0.02em;
  130. text-align: center;
  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. border: 0;
  143. }
  144. .text-lihatpemantauan {
  145. // font-weight: 500;
  146. font-size: 16px;
  147. letter-spacing: 0.02em;
  148. text-align: center;
  149. // padding-bottom: 5px;
  150. margin: -5px;
  151. }
  152. .btn-labeled {
  153. padding-top: 0;
  154. padding-bottom: 0;
  155. margin-right: 20px;
  156. margin-top: 3%;
  157. background: #6fb9de;
  158. display: inline;
  159. border-radius: 7px;
  160. }
  161. .btn-labeled-2 {
  162. padding-top: 0;
  163. padding-bottom: 0;
  164. margin-top: 3%;
  165. background: #6fb9de;
  166. }
  167. .btn-login {
  168. background: #6fb9de;
  169. }
  170. .navbar-color {
  171. background-color: #6fb9de;
  172. }
  173. .posisi-btn-1 {
  174. position: relative;
  175. margin-left: auto;
  176. padding-right: 20px;
  177. }
  178. .tengah {
  179. text-align: center;
  180. padding: 30px;
  181. }
  182. .btn-simpanpenjadwalan {
  183. margin-left: auto;
  184. width: 100px;
  185. }
  186. .btn-colorpenjadwalan {
  187. // display: inline-block;
  188. background-color: #6fb9de;
  189. height: 35px;
  190. }
  191. .text-btn-penjadwalan-1 {
  192. letter-spacing: 0.02em;
  193. text-align: center;
  194. }
  195. .btn-simpanjadwal {
  196. margin-left: auto;
  197. width: 100px;
  198. margin-top: 20px;
  199. margin-bottom: 15px;
  200. }
  201. .btn-radius .btn-labeled-2{
  202. border-radius: 7px;
  203. display: inline;
  204. border:0;
  205. }
  206. .btn-radius .btn-labeled{
  207. border-radius: 7px;
  208. display: inline;
  209. border: 0;
  210. }
  211. .btn-radius .btn-login{
  212. border-radius: 7px;
  213. border: 0;
  214. }
  215. .btn-header{
  216. display: inline-block;
  217. background-color: #6fb9de;
  218. width: auto;
  219. height: 34px;
  220. margin-left: 5px;
  221. border: 0;
  222. }
  223. .margin-l-5{
  224. margin-right: 5px;
  225. display: inline;
  226. }