2
0

forms.styl 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611
  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. .big-link
  398. border-radius: 3px
  399. display: block
  400. margin: 6px 0 6px 40px
  401. padding: 11px
  402. position: relative
  403. text-decoration: none
  404. font-size: 16px
  405. line-height: 20px
  406. .text
  407. text-decoration: underline
  408. &:hover
  409. background: #dcdcdc
  410. &.options
  411. padding-right: 41px
  412. .option
  413. height: 30px
  414. width: @height
  415. position: absolute
  416. right: 6px
  417. top: 6px
  418. &.none
  419. color: #8c8c8c
  420. text-decoration: none
  421. &:hover
  422. background: transparent
  423. &.avatar-changer
  424. padding-right: 51px
  425. .member
  426. border: 1px solid #ccc
  427. border-radius: 3px
  428. height: 40px
  429. width: @height
  430. position: absolute
  431. right: 0
  432. top: 0
  433. .member-avatar
  434. height: 40px
  435. width: @height
  436. .member-initials
  437. font-size: 16px
  438. height: 40px
  439. line-height: @height
  440. max-height: @height
  441. .show-more
  442. border-radius: 3px
  443. color: #8c8c8c
  444. display: block
  445. padding: 16px 8px 16px 40px
  446. margin: 8px 0
  447. &:hover
  448. background: #dcdcdc
  449. text-decoration: underline
  450. &.compact
  451. padding: 12px 8px
  452. margin: 8px 0 0
  453. text-align: center
  454. .board-widget .show-more
  455. padding: 12px 8px 12px 40px
  456. .uploader
  457. clear: both
  458. cursor: pointer
  459. position: relative
  460. height: 34px
  461. width: 100%
  462. .realfile
  463. cursor: pointer
  464. height: 34px
  465. line-height: @height
  466. position: absolute
  467. top: 0
  468. left: 0
  469. width: 100%
  470. z-index: 2
  471. font-size: 23px
  472. input[type="file"]
  473. cursor: pointer
  474. height: 34px
  475. line-height: @height
  476. margin: 0
  477. opacity: 0
  478. padding: 0
  479. width: 100%
  480. z-index: 2
  481. font-size: 23px
  482. &:hover .fakefile
  483. background: #318ec4
  484. background: linear-gradient(#318ec4, #2b7cab)
  485. border-color: #2e85b8
  486. color: #fff
  487. .dropdown-menu
  488. border-radius: 2px
  489. overflow: hidden
  490. li
  491. border-top: none
  492. a
  493. padding: 4px 12px 4px 8px
  494. img
  495. width: 18px
  496. height: @width
  497. margin-right: 5px
  498. vertical-align: middle
  499. &.active
  500. background: #005377
  501. a
  502. color: white