forms.styl 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617
  1. @import 'nib'
  2. textarea,
  3. input:not([type=file]),
  4. button
  5. box-sizing: border-box
  6. -webkit-appearance: none
  7. background-color: #ebebeb
  8. border: 1px solid #ccc
  9. border-radius: 3px
  10. display: block
  11. margin-bottom: 12px
  12. min-height: 34px
  13. padding: 7px
  14. &.full
  15. width: 100%
  16. &.input-error
  17. background-color: #ece9e9
  18. border-color: #ba1212
  19. &:focus
  20. outline: 0
  21. input[type="file"]
  22. margin-bottom: 16px
  23. input[type="radio"]
  24. -webkit-appearance: radio
  25. min-height: inherit
  26. input[type="text"],
  27. input[type="password"],
  28. input[type="email"]
  29. transition: background 85ms ease-in,
  30. border-color 85ms ease-in
  31. width: 250px
  32. &.inline-input
  33. background: none
  34. border: 0
  35. margin: 0
  36. padding: 2px
  37. min-height: 0
  38. height: 18px
  39. width: 200px
  40. input[type="email"]:invalid
  41. box-shadow: none
  42. input[type="text"],
  43. input[type="password"],
  44. input[type="email"],
  45. textarea
  46. &:hover
  47. border-color: #999
  48. &.input-error
  49. border-color: #ba1212
  50. &:focus
  51. background: #fff
  52. border-color: #318ec4
  53. box-shadow: 0 0 2px #318ec4
  54. &.input-error
  55. background-color: #f8f7f7
  56. border-color: #ba1212
  57. box-shadow: 0 0 2px #d11515
  58. &:disabled
  59. background-color: #dcdcdc
  60. border-color: #bfbfbf
  61. color: #8c8c8c
  62. -webkit-touch-callout: none
  63. user-select: none
  64. select
  65. max-height: 300px
  66. width: 256px
  67. margin-bottom: 8px
  68. option[disabled]
  69. color: #8c8c8c
  70. textarea
  71. height: 150px
  72. transition: background 85ms ease-in,
  73. border-color 85ms ease-in
  74. resize: vertical
  75. width: 100%
  76. .button
  77. border-radius: 3px
  78. text-decoration: none
  79. position: relative
  80. input[type="submit"],
  81. button
  82. background: #cfcfcf
  83. background: linear-gradient(#cfcfcf, #c2c2c2)
  84. border: none
  85. box-shadow: 0 1px 0 #8c8c8c
  86. cursor: pointer
  87. display: inline-block
  88. font-weight: 700
  89. line-height: 22px
  90. margin: 8px 4px 0 0
  91. padding: 7px 20px
  92. text-align: center
  93. .wide
  94. padding-left: 30px
  95. padding-right: 30px
  96. &:hover,
  97. &:focus
  98. background: #c2c2c2
  99. background: linear-gradient(#c2c2c2, #b5b5b5)
  100. &:active
  101. background: #b5b5b5
  102. background: linear-gradient(#b5b5b5, #a8a8a8)
  103. box-shadow: inset 0 3px 6px rgba(0, 0, 0, .1)
  104. &:hover,
  105. &:focus,
  106. &:active
  107. background: #e6e6e6
  108. background: linear-gradient(#e6e6e6, #e6e6e6)
  109. &.primary
  110. background: #005377
  111. box-shadow: 0 1px 0 #4d4d4d
  112. color: white
  113. &:hover,
  114. &:focus
  115. background: #004766
  116. &:active
  117. background: #01628C
  118. &.negate
  119. &:hover,
  120. &:focus
  121. background: #990f0f
  122. background: linear-gradient(#990f0f, #7d0c0c)
  123. box-shadow: 0 1px 0 #4d4d4d
  124. color: #fff
  125. &:active
  126. background: #7d0c0c
  127. box-shadow: 0 1px 0 #4d4d4d
  128. color: #fff
  129. i.fa
  130. margin-right: 10px
  131. input[type="submit"].disabled,
  132. input[type="submit"]:disabled,
  133. input[type="button"].disabled,
  134. button.disabled,
  135. .button.disabled
  136. &,
  137. &:hover,
  138. &:active
  139. background: #cfcfcf
  140. cursor: default
  141. box-shadow: none
  142. color: #a8a8a8
  143. fieldset
  144. border: 1px solid #bfbfbf
  145. padding: 15px
  146. margin-bottom: 15px
  147. input[type="hidden"]
  148. display: none
  149. .radio-div,
  150. .check-div
  151. display: block
  152. margin: 0 0 4px 20px
  153. min-height: 20px
  154. position: relative
  155. input
  156. left: -18px
  157. min-height: 0
  158. margin: 0
  159. padding: 0
  160. position: absolute
  161. top: 2px
  162. label
  163. font-weight: 400
  164. label
  165. display: block
  166. font-weight: 700
  167. margin-bottom: 4px
  168. &.form-error
  169. color: #ba1212
  170. input,
  171. textarea
  172. &::-webkit-input-placeholder,
  173. &::-moz-placeholder
  174. color: #8c8c8c
  175. .edit-controls,
  176. .add-controls
  177. margin-top: 0
  178. button[type=submit]
  179. float: left
  180. height: 32px
  181. margin-top: -2px
  182. padding-top: 5px
  183. padding-bottom: 5px
  184. .fa-times-thin
  185. font-size: 26px
  186. margin: 3px 4px
  187. // Material Design checkboxes
  188. [type="checkbox"]:not(:checked),
  189. [type="checkbox"]:checked
  190. position: absolute
  191. left: -9999px
  192. visibility: hidden
  193. .materialCheckBox
  194. position: relative
  195. width: 13px
  196. height: @width
  197. z-index: 0
  198. border: 2px solid #5a5a5a
  199. border-radius: 1px
  200. transition: .2s
  201. margin: 0
  202. cursor: pointer
  203. &.is-checked
  204. top: -4px
  205. left: -3px
  206. width: 7px
  207. height: 15px
  208. margin-right: 6px
  209. border-top: 2px solid transparent
  210. border-left: 2px solid transparent
  211. transform: rotate(40deg)
  212. -webkit-backface-visibility: hidden
  213. transform-origin: 100% 100%
  214. .button-link
  215. background: #fff
  216. background: linear-gradient(#fff, #f5f5f5)
  217. border-radius: 3px
  218. box-sizing: border-box
  219. user-select: none
  220. border: 1px solid #e3e3e3
  221. border-bottom-color: #c2c2c2
  222. cursor: pointer
  223. display: block
  224. font-weight: 700
  225. height: 34px
  226. margin-top: 6px
  227. max-width: 300px
  228. padding: 7px
  229. position: relative
  230. text-decoration: none
  231. overflow: ellipsis
  232. .on
  233. background: #48b512
  234. background: linear-gradient(#48b512, #3d990f)
  235. border-radius: 3px
  236. color: #fff
  237. display: none
  238. font-size: 12px
  239. font-weight: 700
  240. height: 17px
  241. line-height: @height
  242. margin: 0
  243. padding: 2px 4px
  244. position: absolute
  245. right: 5px
  246. top: 5px
  247. text-align: center
  248. &.is-on
  249. padding-right: 30px
  250. max-width: 196px
  251. .on
  252. display: block
  253. &.inline
  254. color: #666
  255. padding: 2px 14px
  256. margin-left: 4px
  257. &.setting
  258. height: 52px
  259. float: left
  260. position: relative
  261. margin-top: 0
  262. &.disabled
  263. background: #fff
  264. border-color: #e9e9e9
  265. color: #8c8c8c
  266. cursor: default
  267. select
  268. display: none
  269. &:hover .label
  270. color: #8c8c8c
  271. &,
  272. &:hover,
  273. &:active,
  274. &.primary,
  275. &.primary:hover,
  276. &.primary:active
  277. background: #cfcfcf
  278. border-color: #c2c2c2
  279. border-bottom-color: #b5b5b5
  280. cursor: default
  281. box-shadow: none
  282. color: #a8a8a8
  283. .label
  284. color: #8c8c8c
  285. display: block
  286. font-size: 12px
  287. line-height: 14px
  288. margin-bottom: 0
  289. &:hover .label
  290. color: #eee
  291. .value
  292. display: block
  293. font-size: 18px
  294. line-height: 24px
  295. overflow: hidden
  296. text-overflow: ellipsis
  297. label
  298. display: none
  299. select
  300. border: none
  301. cursor: pointer
  302. height: 50px
  303. left: 0
  304. margin: 0
  305. opacity: 0
  306. position: absolute
  307. top: 0
  308. z-index: 2
  309. width: 100%
  310. &:hover
  311. background: #318ec4
  312. background: linear-gradient(#318ec4, #2b7cab)
  313. border-color: #2e85b8
  314. color: #fff
  315. .on
  316. background-image: none
  317. background-color: rgba(255, 255, 255, .3)
  318. border-color: transparent
  319. &:active
  320. background: #2e85b8
  321. background: linear-gradient(#2e85b8, #28739f)
  322. border-color: #2b7cab
  323. color: #fff
  324. .button-link.negate
  325. &:hover
  326. background: #990f0f
  327. background: linear-gradient(#990f0f, #7d0c0c)
  328. border-color: @background
  329. &:active
  330. background: #7d0c0c
  331. border-color: #990f0f
  332. &.primary
  333. background: #48b512
  334. background: linear-gradient(#48b512, #3d990f)
  335. border: 1px solid
  336. border-color: #3d990f
  337. color: #fff
  338. &:hover
  339. background: #3d990f
  340. background: linear-gradient(#3d990f, #327d0c)
  341. border-color: #3d990f
  342. &.danger
  343. background: #ba1212
  344. background: linear-gradient(#ba1212, #8b0e0e)
  345. border: 1px solid
  346. border-color: #a21010
  347. color: #fff
  348. &:hover
  349. background: #a21010
  350. background: linear-gradient(#a21010, #740b0b)
  351. border-color: #8b0e0e
  352. button
  353. &.quiet-button,
  354. &.loud-text-button
  355. background: none
  356. text-align: left
  357. line-height: normal
  358. border: none
  359. box-shadow: none
  360. &:active
  361. color: #4d4d4d
  362. background: #d3d3d3
  363. box-shadow: none
  364. &.quiet-button
  365. font-weight: 400
  366. text-decoration: underline
  367. &.loud-text-button
  368. width: 100%
  369. &:hover
  370. color: #111
  371. .emphasis-button,
  372. .quiet-button
  373. border-radius: 3px
  374. user-select: none
  375. color: #8c8c8c
  376. display: block
  377. margin: 2px 0
  378. padding: 6px 8px
  379. position: relative
  380. &.w-img
  381. padding-left: 28px
  382. &:hover
  383. color: #4d4d4d
  384. background: #dcdcdc
  385. &:active
  386. color: #4d4d4d
  387. background: #d3d3d3
  388. .quiet-button-large
  389. padding: 16px 24px
  390. .emphasis-button
  391. color: #74663e
  392. background: #ecdfbb
  393. &:hover
  394. color: #53492d
  395. background: #e7d6a7
  396. &:active
  397. color: #53492d
  398. background: #e1cc93
  399. .is-editable
  400. cursor: pointer
  401. .big-link
  402. border-radius: 3px
  403. display: block
  404. margin: 6px 0 6px 40px
  405. padding: 11px
  406. position: relative
  407. text-decoration: none
  408. font-size: 16px
  409. line-height: 20px
  410. .text
  411. text-decoration: underline
  412. &:hover
  413. background: #dcdcdc
  414. &.options
  415. padding-right: 41px
  416. .option
  417. height: 30px
  418. width: @height
  419. position: absolute
  420. right: 6px
  421. top: 6px
  422. &.none
  423. color: #8c8c8c
  424. text-decoration: none
  425. &:hover
  426. background: transparent
  427. &.avatar-changer
  428. padding-right: 51px
  429. .member
  430. border: 1px solid #ccc
  431. border-radius: 3px
  432. height: 40px
  433. width: @height
  434. position: absolute
  435. right: 0
  436. top: 0
  437. .member-avatar
  438. height: 40px
  439. width: @height
  440. .member-initials
  441. font-size: 16px
  442. height: 40px
  443. line-height: @height
  444. max-height: @height
  445. .show-more
  446. border-radius: 3px
  447. color: #8c8c8c
  448. display: block
  449. padding: 16px 8px 16px 40px
  450. margin: 8px 0
  451. &:hover
  452. background: #dcdcdc
  453. text-decoration: underline
  454. &.compact
  455. padding: 12px 8px
  456. margin: 8px 0 0
  457. text-align: center
  458. .board-widget .show-more
  459. padding: 12px 8px 12px 40px
  460. .uploader
  461. clear: both
  462. cursor: pointer
  463. position: relative
  464. height: 34px
  465. width: 100%
  466. .realfile
  467. cursor: pointer
  468. height: 34px
  469. line-height: @height
  470. position: absolute
  471. top: 0
  472. left: 0
  473. width: 100%
  474. z-index: 2
  475. font-size: 23px
  476. input[type="file"]
  477. cursor: pointer
  478. height: 34px
  479. line-height: @height
  480. margin: 0
  481. opacity: 0
  482. padding: 0
  483. width: 100%
  484. z-index: 2
  485. font-size: 23px
  486. &:hover .fakefile
  487. background: #318ec4
  488. background: linear-gradient(#318ec4, #2b7cab)
  489. border-color: #2e85b8
  490. color: #fff
  491. .dropdown-menu
  492. border-radius: 2px
  493. overflow: hidden
  494. li
  495. border-top: none
  496. a
  497. padding: 4px 12px 4px 8px
  498. img
  499. width: 18px
  500. height: @width
  501. margin-right: 5px
  502. vertical-align: middle
  503. &.active
  504. background: #005377
  505. a
  506. color: white