You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

639 lines
15 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. /*
  2. * # Semantic - Input
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 Contributor
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Theme
  13. *******************************/
  14. /*
  15. */
  16. /*******************************
  17. Folders
  18. *******************************/
  19. /* Path to theme packages */
  20. /* Path to site override folder */
  21. /*******************************
  22. Themes
  23. *******************************/
  24. /* To override a theme for an individual element
  25. specify theme name below
  26. Be sure to update the user folder name (see README)
  27. */
  28. /* Global */
  29. /* Elements */
  30. /* Collections */
  31. /* Modules */
  32. /* Views */
  33. /*******************************
  34. Import Directives
  35. *******************************/
  36. /*------------------
  37. Load Defaults
  38. -------------------*/
  39. /*******************************
  40. Site Settings
  41. *******************************/
  42. /*-------------------
  43. Paths
  44. --------------------*/
  45. /*-------------------
  46. Fonts
  47. --------------------*/
  48. /*-------------------
  49. Site Colors
  50. --------------------*/
  51. /*--- Colors ---*/
  52. /*--- Light Colors ---*/
  53. /*-------------------
  54. Page
  55. --------------------*/
  56. /*-------------------
  57. Background Colors
  58. --------------------*/
  59. /* Used for differentiating neutrals */
  60. /* Used for differentiating layers */
  61. /*-------------------
  62. Grid
  63. --------------------*/
  64. /*-------------------
  65. Breakpoints
  66. --------------------*/
  67. /*******************************
  68. Power-User
  69. *******************************/
  70. /*-------------------
  71. Icons
  72. --------------------*/
  73. /* Maximum Glyph Width of Icon */
  74. /*-------------------
  75. Easing
  76. --------------------*/
  77. /*--- Neutrals ---*/
  78. /*--- Colored Backgrounds ---*/
  79. /*--- Colored Text ---*/
  80. /*--- Colored Headers ---*/
  81. /*-------------------
  82. Emotive Colors
  83. --------------------*/
  84. /* Mood */
  85. /* Status */
  86. /*-------------------
  87. Neutral Text
  88. --------------------*/
  89. /*-------------------
  90. Brand Colors
  91. --------------------*/
  92. /*-------------------
  93. Borders
  94. --------------------*/
  95. /*-------------------
  96. Sizes
  97. --------------------*/
  98. /*-------------------
  99. Transitions
  100. --------------------*/
  101. /*-------------------
  102. Derived Values
  103. --------------------*/
  104. /* Makes sure padded grid can fit at 320px */
  105. /* Used to match floats with text */
  106. /* Positive / Negative Dupes */
  107. /* Header Colors */
  108. /* Responsive */
  109. /* Columns */
  110. /*******************************
  111. States
  112. *******************************/
  113. /*-------------------
  114. Disabled
  115. --------------------*/
  116. /*-------------------
  117. Hover
  118. --------------------*/
  119. /*--- Colors ---*/
  120. /*--- Emotive ---*/
  121. /*--- Neutrals ---*/
  122. /*-------------------
  123. Down (:active)
  124. --------------------*/
  125. /*--- Colors ---*/
  126. /*--- Emotive ---*/
  127. /*--- Neutrals ---*/
  128. /*-------------------
  129. Active
  130. --------------------*/
  131. /*--- Standard ---*/
  132. /*--- Emotive ---*/
  133. /*--- Neutrals ---*/
  134. /*******************************
  135. Input
  136. *******************************/
  137. /*-------------------
  138. Element
  139. --------------------*/
  140. /*-------------------
  141. Types
  142. --------------------*/
  143. /* Icon Input */
  144. /* Circular Icon Input */
  145. /* Labeled Input */
  146. /*-------------------
  147. States
  148. --------------------*/
  149. /* Placeholder */
  150. /* Down */
  151. /* Focus */
  152. /* Error */
  153. /* Loading */
  154. /*-------------------
  155. Variations
  156. --------------------*/
  157. /* Sizing */
  158. /*------------------
  159. Load Theme
  160. -------------------*/
  161. /*******************************
  162. Site Settings
  163. *******************************/
  164. /*-------------------
  165. Paths
  166. --------------------*/
  167. /*-------------------
  168. Fonts
  169. --------------------*/
  170. /*-------------------
  171. Site Colors
  172. --------------------*/
  173. /*--- Colors ---*/
  174. /*--- Light Colors ---*/
  175. /*-------------------
  176. Page
  177. --------------------*/
  178. /*-------------------
  179. Background Colors
  180. --------------------*/
  181. /* Used for differentiating neutrals */
  182. /* Used for differentiating layers */
  183. /*-------------------
  184. Grid
  185. --------------------*/
  186. /*-------------------
  187. Breakpoints
  188. --------------------*/
  189. /*******************************
  190. Power-User
  191. *******************************/
  192. /*-------------------
  193. Icons
  194. --------------------*/
  195. /* Maximum Glyph Width of Icon */
  196. /*-------------------
  197. Easing
  198. --------------------*/
  199. /*--- Neutrals ---*/
  200. /*--- Colored Backgrounds ---*/
  201. /*--- Colored Text ---*/
  202. /*--- Colored Headers ---*/
  203. /*-------------------
  204. Emotive Colors
  205. --------------------*/
  206. /* Mood */
  207. /* Status */
  208. /*-------------------
  209. Neutral Text
  210. --------------------*/
  211. /*-------------------
  212. Brand Colors
  213. --------------------*/
  214. /*-------------------
  215. Borders
  216. --------------------*/
  217. /*-------------------
  218. Sizes
  219. --------------------*/
  220. /*-------------------
  221. Transitions
  222. --------------------*/
  223. /*-------------------
  224. Derived Values
  225. --------------------*/
  226. /* Makes sure padded grid can fit at 320px */
  227. /* Used to match floats with text */
  228. /* Positive / Negative Dupes */
  229. /* Header Colors */
  230. /* Responsive */
  231. /* Columns */
  232. /*******************************
  233. States
  234. *******************************/
  235. /*-------------------
  236. Disabled
  237. --------------------*/
  238. /*-------------------
  239. Hover
  240. --------------------*/
  241. /*--- Colors ---*/
  242. /*--- Emotive ---*/
  243. /*--- Neutrals ---*/
  244. /*-------------------
  245. Down (:active)
  246. --------------------*/
  247. /*--- Colors ---*/
  248. /*--- Emotive ---*/
  249. /*--- Neutrals ---*/
  250. /*-------------------
  251. Active
  252. --------------------*/
  253. /*--- Standard ---*/
  254. /*--- Emotive ---*/
  255. /*--- Neutrals ---*/
  256. /*******************************
  257. Input
  258. *******************************/
  259. /*-------------------
  260. Element
  261. --------------------*/
  262. /*-------------------
  263. Types
  264. --------------------*/
  265. /* Icon Input */
  266. /* Circular Icon Input */
  267. /* Labeled Input */
  268. /*-------------------
  269. States
  270. --------------------*/
  271. /* Placeholder */
  272. /* Down */
  273. /* Focus */
  274. /* Error */
  275. /* Loading */
  276. /*-------------------
  277. Variations
  278. --------------------*/
  279. /* Sizing */
  280. /*------------------
  281. Load Site
  282. -------------------*/
  283. /*******************************
  284. User Global Variables
  285. *******************************/
  286. /*******************************
  287. User Variable Overrides
  288. *******************************/
  289. /*------------------
  290. Override Loader
  291. -------------------*/
  292. /*******************************
  293. Standard
  294. *******************************/
  295. /*--------------------
  296. Inputs
  297. ---------------------*/
  298. .ui.input {
  299. display: inline-block;
  300. position: relative;
  301. color: rgba(0, 0, 0, 0.8);
  302. }
  303. .ui.input input {
  304. margin: 0em;
  305. width: 100%;
  306. outline: none;
  307. text-align: left;
  308. line-height: 1.2em;
  309. font-family: "Helvetica Neue", "Helvetica", Arial;
  310. padding: 0.7em 1em;
  311. background: #ffffff;
  312. border: 1px solid rgba(0, 0, 0, 0.15);
  313. color: rgba(0, 0, 0, 0.8);
  314. border-radius: 0.325em;
  315. -webkit-transition: background-color 0.3s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
  316. transition: background-color 0.3s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
  317. box-shadow: none;
  318. box-sizing: border-box;
  319. -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  320. }
  321. /*--------------------
  322. Placeholder
  323. ---------------------*/
  324. /* browsers require these rules separate */
  325. .ui.input input::-webkit-input-placeholder {
  326. color: rgba(0, 0, 0, 0.4);
  327. }
  328. .ui.input input::-moz-placeholder {
  329. color: rgba(0, 0, 0, 0.4);
  330. }
  331. /*******************************
  332. States
  333. *******************************/
  334. /*--------------------
  335. Active
  336. ---------------------*/
  337. .ui.input input:active,
  338. .ui.input.down input {
  339. border-color: rgba(0, 0, 0, 0.3);
  340. background: #fafafa;
  341. color: rgba(0, 0, 0, 0.8);
  342. box-shadow: none;
  343. }
  344. /*--------------------
  345. Loading
  346. ---------------------*/
  347. .ui.loading.input > .icon {
  348. background: url("../../themes/packages/default/assets/images/loader-mini.gif") no-repeat 50% 50%;
  349. }
  350. .ui.loading.input > .icon:before,
  351. .ui.loading.input > .icon:after {
  352. display: none;
  353. }
  354. /*--------------------
  355. Focus
  356. ---------------------*/
  357. .ui.input.focus input,
  358. .ui.input input:focus {
  359. border-color: rgba(39, 41, 43, 0.3);
  360. background: '';
  361. color: rgba(0, 0, 0, 0.8);
  362. box-shadow: none;
  363. }
  364. .ui.input.focus input input::-webkit-input-placeholder,
  365. .ui.input input:focus input::-webkit-input-placeholder {
  366. color: rgba(0, 0, 0, 0.8);
  367. }
  368. .ui.input.focus input input::-moz-placeholder,
  369. .ui.input input:focus input::-moz-placeholder {
  370. color: rgba(0, 0, 0, 0.8);
  371. }
  372. /*--------------------
  373. Error
  374. ---------------------*/
  375. .ui.input.error input {
  376. background-color: #fffafa;
  377. border-color: #e7bebe;
  378. color: #d95c5c;
  379. box-shadow: none;
  380. }
  381. /* Error Placeholder */
  382. .ui.input.error input ::-webkit-input-placeholder {
  383. color: rgba(255, 80, 80, 0.4);
  384. }
  385. .ui.input.error input ::-moz-placeholder {
  386. color: rgba(255, 80, 80, 0.4);
  387. }
  388. /* Focused Error Placeholder */
  389. .ui.input.error input :focus::-webkit-input-placeholder {
  390. color: rgba(255, 80, 80, 0.7);
  391. }
  392. .ui.input.error input :focus::-moz-placeholder {
  393. color: rgba(255, 80, 80, 0.7);
  394. }
  395. /*******************************
  396. Variations
  397. *******************************/
  398. /*--------------------
  399. Transparent
  400. ---------------------*/
  401. .ui.transparent.input input {
  402. border-color: transparent;
  403. background-color: transparent;
  404. padding: 0em;
  405. }
  406. /*--------------------
  407. Icon
  408. ---------------------*/
  409. .ui.icon.input > .icon {
  410. cursor: default;
  411. position: absolute;
  412. opacity: 0.5;
  413. top: 0px;
  414. right: 0px;
  415. margin: 0em;
  416. width: 2.85em;
  417. height: 100%;
  418. text-align: center;
  419. border-radius: 0em 0.325em 0.325em 0em;
  420. box-sizing: border-box;
  421. -webkit-transition: opacity 0.3s ease;
  422. transition: opacity 0.3s ease;
  423. }
  424. .ui.icon.input > .icon:before,
  425. .ui.icon.input > .icon:after {
  426. left: 0;
  427. position: absolute;
  428. text-align: center;
  429. top: 50%;
  430. width: 100%;
  431. margin-top: -0.5em;
  432. }
  433. .ui.icon.input > .link.icon {
  434. cursor: pointer;
  435. }
  436. .ui.icon.input input {
  437. padding-right: 2.85em !important;
  438. }
  439. .ui.icon.input > .circular.icon {
  440. top: 0.35em;
  441. right: 0.5em;
  442. }
  443. /* Left Icon Input */
  444. .ui[class*="left icon"].input > .icon {
  445. right: auto;
  446. left: 1px;
  447. border-radius: 0.325em 0em 0em 0.325em;
  448. }
  449. .ui[class*="left icon"].input > .circular.icon {
  450. right: auto;
  451. left: 0.5em;
  452. }
  453. .ui[class*="left icon"].input > input {
  454. padding-left: 2.85em !important;
  455. padding-right: 1em !important;
  456. }
  457. /* Transparent Icon */
  458. .ui.transparent.icon.input > .icon {
  459. width: 1.25em;
  460. }
  461. .ui.transparent.icon.input > input {
  462. padding-left: 0em !important;
  463. padding-right: 1.75em !important;
  464. }
  465. .ui.transparent[class*="left icon"].input > input {
  466. padding-left: 0em !important;
  467. padding-left: 1.75em !important;
  468. }
  469. /* Focus */
  470. .ui.icon.input > input:focus ~ .icon {
  471. opacity: 1;
  472. }
  473. /*--------------------
  474. Labeled
  475. ---------------------*/
  476. /* Adjacent Label */
  477. .ui.labeled.input {
  478. display: table;
  479. }
  480. .ui.labeled.input > input {
  481. display: table-cell;
  482. vertical-align: top;
  483. }
  484. .ui.labeled.input > .label {
  485. display: table-cell;
  486. vertical-align: middle;
  487. white-space: nowrap;
  488. font-size: 1em;
  489. }
  490. .ui.labeled.input > .label > .icon {
  491. display: inline;
  492. vertical-align: top;
  493. }
  494. /* Fluid Labeled */
  495. .ui.fluid.labeled.input {
  496. display: table;
  497. width: 100%;
  498. }
  499. .ui.fluid.labeled.input > .label {
  500. width: 0.01%;
  501. }
  502. /* Label on Left */
  503. .ui.labeled.input:not([class*="corner labeled"]):not([class*="right labeled"]) > input {
  504. border-left: none;
  505. border-top-left-radius: 0px;
  506. border-bottom-left-radius: 0px;
  507. }
  508. .ui.labeled.input:not([class*="corner labeled"]):not([class*="right labeled"]) > .label {
  509. border-top-right-radius: 0px;
  510. border-bottom-right-radius: 0px;
  511. }
  512. /* Label on Right */
  513. .ui[class*="right labeled"].input > input {
  514. border-right: none;
  515. border-top-right-radius: 0px !important;
  516. border-bottom-right-radius: 0px !important;
  517. }
  518. .ui[class*="right labeled"].input > .label {
  519. border-top-left-radius: 0px;
  520. border-bottom-left-radius: 0px;
  521. }
  522. /* Corner Label */
  523. .ui.labeled.input .corner.label {
  524. top: 1px;
  525. right: 1px;
  526. font-size: 0.75em;
  527. border-radius: 0em 0.325em 0em 0em;
  528. }
  529. .ui.labeled.input input {
  530. padding-right: 2.5em !important;
  531. }
  532. /* Spacing with corner label */
  533. .ui[class*="corner labeled"].input {
  534. display: inline-block;
  535. }
  536. .ui[class*="corner labeled"].input > input {
  537. display: block;
  538. }
  539. .ui[class*="corner labeled"].icon.input:not(.left) > input {
  540. padding-right: 3.25em !important;
  541. }
  542. .ui[class*="corner labeled"].icon.input:not(.left) > .icon {
  543. margin-right: 1.25em;
  544. }
  545. /*--------------------
  546. Action
  547. ---------------------*/
  548. .ui.action.input {
  549. display: table;
  550. }
  551. .ui.action.input > input {
  552. display: table-cell;
  553. vertical-align: top;
  554. }
  555. .ui.action.input > .button,
  556. .ui.action.input > .buttons {
  557. display: table-cell;
  558. vertical-align: middle;
  559. white-space: nowrap;
  560. }
  561. .ui.action.input > .button > .icon,
  562. .ui.action.input > .buttons > .button > .icon {
  563. display: inline;
  564. vertical-align: top;
  565. }
  566. .ui.fluid.action.input {
  567. display: table;
  568. width: 100%;
  569. }
  570. .ui.fluid.action.input > .button {
  571. width: 0.01%;
  572. }
  573. /* Button on Right */
  574. .ui.action.input:not([class*="left action"]) > input {
  575. border-right: none;
  576. border-top-right-radius: 0px !important;
  577. border-bottom-right-radius: 0px !important;
  578. }
  579. .ui.action.input:not([class*="left action"]) > .button,
  580. .ui.action.input:not([class*="left action"]) > .buttons {
  581. border-top-left-radius: 0px;
  582. border-bottom-left-radius: 0px;
  583. }
  584. /* Button on Left */
  585. .ui[class*="left action"].input > .button,
  586. .ui[class*="left action"].input > .buttons {
  587. border-top-right-radius: 0px;
  588. border-bottom-right-radius: 0px;
  589. }
  590. .ui[class*="left action"].input > input {
  591. border-left: none;
  592. border-top-left-radius: 0px;
  593. border-bottom-left-radius: 0px;
  594. }
  595. /*--------------------
  596. Fluid
  597. ---------------------*/
  598. .ui.fluid.input {
  599. display: block;
  600. }
  601. /*--------------------
  602. Size
  603. ---------------------*/
  604. .ui.mini.input {
  605. font-size: 0.8125em;
  606. }
  607. .ui.small.input {
  608. font-size: 0.875em;
  609. }
  610. .ui.input {
  611. font-size: 1em;
  612. }
  613. .ui.large.input {
  614. font-size: 1.125em;
  615. }
  616. .ui.big.input {
  617. font-size: 1.25em;
  618. }
  619. .ui.huge.input {
  620. font-size: 1.375em;
  621. }
  622. .ui.massive.input {
  623. font-size: 1.5rem;
  624. }
  625. /*******************************
  626. Overrides
  627. *******************************/
  628. /*******************************
  629. Overrides
  630. *******************************/