theme.widget.form.styl 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /**
  2. * Stylesheet
  3. *
  4. * @namespace Lungo.Theme
  5. * @class Layout
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. */
  9. @import "__init.styl"
  10. form, .form
  11. & label
  12. color: #aaa
  13. font-weight: 300
  14. & fieldset
  15. background: #fff
  16. border-bottom: 1px solid CONTENT
  17. & .icon
  18. color: #ccc
  19. &.radius-top
  20. border-radius (BORDER_radius * 2) (BORDER_radius * 2) 0 0
  21. &.radius-bottom
  22. border-radius 0 0 (BORDER_radius * 2) (BORDER_radius * 2)
  23. &.radius
  24. border-radius (BORDER_radius * 2)
  25. &.shadow
  26. border-bottom: 1px solid rgba(0,0,0,0.1)
  27. & input[type="text"], input[type="password"], input[type="date"], input[type="datetime"], input[type="email"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], select, textarea, label.select
  28. background-color: white
  29. color: rgba(0, 0, 0, 0.75)
  30. &.border
  31. border: FORM_border solid FORM_color
  32. border-radius: FORM_border_radius
  33. &.error, &:required
  34. color: COLOR_cancel !important
  35. border-color: COLOR_cancel !important
  36. &.success
  37. color: COLOR_success !important
  38. border-color: COLOR_success !important
  39. &:focus, &:active, &:hover
  40. color: THEME_dark
  41. border-color: THEME
  42. &:after
  43. background-color: THEME
  44. &[disabled]
  45. background: FORM_color
  46. border-color: FORM_color
  47. color: darken(FORM_color, 25%)
  48. & .select:after
  49. background: FORM_color
  50. color: #fff
  51. & input[type=range]
  52. background-color: FORM_color
  53. color: darken(FORM_color, 25%)
  54. border-radius: (FORM_border_radius * 4)
  55. &:active
  56. background-color: THEME_light !important
  57. color: #fff
  58. &::-webkit-slider-thumb
  59. background-color: darken(THEME, 25%) !important
  60. &::-webkit-slider-thumb
  61. border-radius (FORM_border_radius * 4)
  62. background-color: darken(FORM_color, 25%)
  63. & [data-progress]
  64. background-color: #ddd
  65. & .value
  66. background-color: THEME_light
  67. &, & .value
  68. border-radius (FORM_border_radius * 3)
  69. & [data-control-checkbox]
  70. background: FORM_color
  71. color: darken(FORM_color, 25%)
  72. font-weight: 700
  73. border-radius: (FORM_border_radius * 4)
  74. box-shadow: inset 0px 1px 2px rgba(0,0,0,0.25), 0px 1px 0px rgba(255,255,255,0.25)
  75. & label
  76. border-radius: (FORM_border_radius * 4)
  77. background: darken(FORM_color, 25%)
  78. &.checked
  79. background-color: THEME_light
  80. color: #fff !important
  81. & label
  82. background-color: darken(THEME, 25%)
  83. // Expand
  84. &.twitter
  85. font-family:'lungojsicon'
  86. font-size: 1.3em
  87. line-height: 1.4em
  88. &:before
  89. content: "\f099"
  90. &:after
  91. content: "\f099"
  92. text-shadow: 0 1px 0 #fff
  93. &.ok
  94. font-family:'lungojsicon'
  95. font-size: 1.3em
  96. line-height: 1.4em
  97. &.checked
  98. background-color: COLOR_success
  99. & label
  100. background-color: darken(COLOR_success, 25%)
  101. &:before
  102. content: "\f00c"
  103. &:after
  104. content: "\f00d"