forms.styl 10 KB

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