forms.styl 10 KB

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