2
0

forms.styl 10 KB

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