forms.styl 11 KB

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