Nav apraksta

_card.scss 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. .card{
  2. background: $card-black-background;
  3. border: 0;
  4. position: relative;
  5. width: 100%;
  6. margin-bottom: 30px;
  7. box-shadow: $box-shadow;
  8. label{
  9. color: rgba($white, 0.6);
  10. }
  11. .card-title {
  12. margin-bottom: .75rem;
  13. }
  14. .card-body{
  15. padding: 15px;
  16. &.table-full-width{
  17. padding-left: 0;
  18. padding-right: 0;
  19. }
  20. .card-title{
  21. color: $white;
  22. text-transform: inherit;
  23. font-weight: $font-weight-light;
  24. margin-bottom: .75rem;
  25. }
  26. .card-description, .card-category{
  27. color: rgba($white, 0.6);
  28. }
  29. }
  30. .card-header{
  31. &:not([data-background-color]){
  32. background-color: transparent;
  33. }
  34. padding: 15px 15px 0;
  35. border: 0;
  36. color: rgba($white,0.8);
  37. .card-title{
  38. color: $white;
  39. font-weight: 100;
  40. }
  41. .card-category{
  42. color: $dark-gray;
  43. margin-bottom: 5px;
  44. font-weight: 300;
  45. }
  46. }
  47. .map{
  48. border-radius: $border-radius-sm;
  49. &.map-big{
  50. height: 420px;
  51. }
  52. }
  53. &.card-white{
  54. background: $white;
  55. .card-title{
  56. color: $black;
  57. }
  58. .card-category, .stats{
  59. color: $card-stats-gray;
  60. }
  61. //style for inputs
  62. @include form-control-placeholder(rgba($black,0.4), 1);
  63. .has-danger{
  64. .form-control, .input-group-prepend .input-group-text{
  65. border-color: $danger-states;
  66. }
  67. }
  68. .input-group-prepend .input-group-text{
  69. border-color: rgba($black-states,0.2);
  70. color: $black-states;
  71. }
  72. .form-control{
  73. color: $black;
  74. border-color: rgba($black-states,0.2);
  75. &:focus{
  76. border-color: $primary;
  77. }
  78. }
  79. label:not(.btn){
  80. color: $default;
  81. }
  82. .form-group.no-border,
  83. .input-group.no-border {
  84. .form-control,
  85. .form-control + .input-group-prepend .input-group-text,
  86. .form-control + .input-group-append .input-group-text,
  87. .input-group-prepend .input-group-text,
  88. .input-group-append .input-group-text{
  89. background-color: $opacity-gray-3;
  90. &:focus,
  91. &:active,
  92. &:active{
  93. background-color: $opacity-gray-5;
  94. }
  95. }
  96. .form-control {
  97. &:focus {
  98. & + .input-group-prepend .input-group-text,
  99. & + .input-group-append .input-group-text{
  100. background-color: $transparent-bg;
  101. }
  102. }
  103. }
  104. }
  105. .input-group[disabled]{
  106. .input-group-prepend .input-group-text,
  107. .input-group-append .input-group-text{
  108. background-color: $black;
  109. }
  110. }
  111. .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control{
  112. background: $light-gray;
  113. border-color: rgba($black-states,0.3);
  114. }
  115. .input-group-focus{
  116. .input-group-prepend .input-group-text,
  117. .input-group-append .input-group-text,
  118. .form-control{
  119. background-color: $white;
  120. border-color: $primary;
  121. }
  122. &.no-border{
  123. .input-group-prepend .input-group-text,
  124. .input-group-append .input-group-text{
  125. background-color: $opacity-gray-5;
  126. }
  127. }
  128. }
  129. .input-group-prepend .input-group-text {
  130. border-right: none;
  131. }
  132. .input-group-append .input-group-text {
  133. border-left: none;
  134. }
  135. .has-danger .form-control:focus, .has-success.input-group-focus .input-group-append .input-group-text, .has-success.input-group-focus .input-group-prepend .input-group-text {
  136. border-color: $danger-states;
  137. }
  138. .has-success .form-control:focus, .has-success.input-group-focus .input-group-append .input-group-text, .has-success.input-group-focus .input-group-prepend .input-group-text {
  139. border-color: darken($success, 10%);
  140. }
  141. }
  142. &.card-plain {
  143. background: transparent;
  144. box-shadow: none;
  145. }
  146. .image{
  147. overflow: hidden;
  148. height: 200px;
  149. position: relative;
  150. }
  151. .avatar{
  152. width: 30px;
  153. height: 30px;
  154. overflow: hidden;
  155. border-radius: 50%;
  156. margin-bottom: 15px;
  157. }
  158. label{
  159. font-size: $font-size-sm;
  160. margin-bottom: 5px;
  161. }
  162. .card-footer{
  163. background-color: transparent;
  164. border: 0;
  165. padding: 15px;
  166. .stats{
  167. i{
  168. margin-right: 5px;
  169. position: relative;
  170. }
  171. }
  172. h6{
  173. margin-bottom: 0;
  174. padding: 7px 0;
  175. }
  176. }
  177. }
  178. .card-body{
  179. padding: $card-spacer-y;
  180. }
  181. @include media-breakpoint-down(sm) {
  182. .card.card-chart .card-header {
  183. .btn-group-toggle .tim-icons {
  184. font-size: .875rem;
  185. top: -1px;
  186. }
  187. }
  188. }