demo-center.css 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  1. html {
  2. font-size: 12px;
  3. }
  4. .amap-copyright{
  5. box-sizing: content-box
  6. }
  7. * {
  8. box-sizing: border-box
  9. }
  10. .input-textarea{
  11. color:grey;
  12. height:8em;
  13. overflow:auto;
  14. border-radius:0.4rem;
  15. border:1px solid #ced4da;
  16. margin-bottom:1rem;
  17. }
  18. body {
  19. margin: 0;
  20. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  21. line-height: 1.5;
  22. font-weight: 300;
  23. color: #111213;
  24. }
  25. hr {
  26. margin: 0.5rem 0;
  27. box-sizing: content-box;
  28. height: 0;
  29. overflow: visible;
  30. border: 0;
  31. border-top: 1px solid rgba(0, 0, 0, .1)
  32. }
  33. p {
  34. margin-top: 0;
  35. margin-bottom: 0;
  36. }
  37. label {
  38. display: inline-block;
  39. margin-bottom: 0.4rem;
  40. }
  41. label, .btn {
  42. margin-left: 0;
  43. font-size: 1rem;
  44. }
  45. button, input, select {
  46. margin: 0;
  47. font-family: inherit;
  48. font-size: inherit;
  49. line-height: inherit;
  50. overflow: visible;
  51. text-transform: none
  52. }
  53. [type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner, button::-moz-focus-inner {
  54. padding: 0;
  55. border-style: none;
  56. }
  57. input[type=checkbox], input[type=radio] {
  58. box-sizing: border-box;
  59. padding: 0;
  60. -webkit-box-sizing: border-box;
  61. box-sizing: border-box;
  62. padding: 0;
  63. margin: 0 0.5rem 0 0;
  64. }
  65. h4 {
  66. font-family: inherit;
  67. line-height: 1.8;
  68. font-weight: 300;
  69. color: inherit;
  70. font-size: 1.1rem;
  71. margin-top: 0;
  72. margin-bottom: .5rem
  73. }
  74. .btn {
  75. display: inline-block;
  76. font-weight: 400;
  77. text-align: center;
  78. white-space: nowrap;
  79. vertical-align: middle;
  80. -webkit-user-select: none;
  81. -moz-user-select: none;
  82. -ms-user-select: none;
  83. user-select: none;
  84. border: 1px solid transparent;
  85. transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  86. background-color: transparent;
  87. background-image: none;
  88. color: #25A5F7;
  89. border-color: #25A5F7;
  90. padding: .25rem .5rem;
  91. line-height: 1.5;
  92. border-radius: 1rem;
  93. -webkit-appearance: button;
  94. cursor:pointer;
  95. }
  96. .btn:hover {
  97. color: #fff;
  98. background-color: #25A5F7;
  99. border-color: #25A5F7
  100. }
  101. .btn:hover {
  102. text-decoration: none
  103. }
  104. .input-item {
  105. position: relative;
  106. display: -ms-flexbox;
  107. display: flex;
  108. -ms-flex-wrap: wrap;
  109. flex-wrap: wrap;
  110. -ms-flex-align: center;
  111. align-items: center;
  112. width: 100%;
  113. height: 3rem;
  114. }
  115. .input-item:last-child {
  116. margin-bottom: 0;
  117. }
  118. .input-item>select, .input-item>input[type=text], .input-item>input[type=date] {
  119. position: relative;
  120. -ms-flex: 1 1 auto;
  121. flex: 1 1 auto;
  122. width: 1%;
  123. margin-bottom: 0;
  124. }
  125. .input-item>select:not(:last-child), .input-item>input[type=text]:not(:last-child), .input-item>input[type=date]:not(:last-child) {
  126. border-top-right-radius: 0;
  127. border-bottom-right-radius: 0
  128. }
  129. .input-item>select:not(:first-child), .input-item>input[type=text]:not(:first-child), .input-item>input[type=date]:not(:first-child) {
  130. border-top-left-radius: 0;
  131. border-bottom-left-radius: 0
  132. }
  133. .input-item-prepend {
  134. margin-right: -1px;
  135. }
  136. .input-item-text, input[type=text],input[type=date], select {
  137. height: calc(2.2rem + 2px);
  138. }
  139. .input-item-text {
  140. width: 6rem;
  141. text-align: justify;
  142. padding: 0.4rem 0.7rem;
  143. display: inline-block;
  144. text-justify: distribute-all-lines;
  145. /*ie6-8*/
  146. text-align-last: justify;
  147. /* ie9*/
  148. -moz-text-align-last: justify;
  149. /*ff*/
  150. -webkit-text-align-last: justify;
  151. /*chrome 20+*/
  152. -ms-flex-align: center;
  153. align-items: center;
  154. margin-bottom: 0;
  155. font-size: 1rem;
  156. font-weight: 400;
  157. line-height: 1.5;
  158. color: #495057;
  159. text-align: center;
  160. white-space: nowrap;
  161. background-color: #e9ecef;
  162. border: 1px solid #ced4da;
  163. border-radius: .25rem;
  164. border-bottom-right-radius: 0;
  165. border-top-right-radius: 0;
  166. }
  167. .input-item-text input[type=checkbox], .input-item-text input[type=radio] {
  168. margin-top: 0
  169. }
  170. .input-card {
  171. display: flex;
  172. flex-direction: column;
  173. min-width: 0;
  174. word-wrap: break-word;
  175. background-color: #fff;
  176. background-clip: border-box;
  177. border-radius: .25rem;
  178. width: 22rem;
  179. border-width: 0;
  180. border-radius: 0.4rem;
  181. box-shadow: 0 2px 6px 0 rgba(114, 124, 245, .5);
  182. position: fixed;
  183. bottom: 1rem;
  184. right: 1rem;
  185. -ms-flex: 1 1 auto;
  186. flex: 1 1 auto;
  187. padding: 0.75rem 1.25rem;
  188. }
  189. .input-text {
  190. line-height: 2rem;
  191. margin-right: 2rem;
  192. }
  193. .info hr {
  194. margin-right: 0;
  195. margin-left: 0;
  196. border-top-color: grey;
  197. }
  198. .info {
  199. padding: .75rem 1.25rem;
  200. margin-bottom: 1rem;
  201. border-radius: .25rem;
  202. position: fixed;
  203. top: 1rem;
  204. background-color: white;
  205. width: auto;
  206. min-width: 22rem;
  207. border-width: 0;
  208. right: 1rem;
  209. box-shadow: 0 2px 6px 0 rgba(114, 124, 245, .5);
  210. }
  211. .code {
  212. left: 1.5rem;
  213. right: 1.5rem;
  214. top: 1.5rem;
  215. bottom: 1.5rem;
  216. overflow: auto;
  217. margin-bottom: 0rem;
  218. }
  219. .code .btn {
  220. top: 1rem;
  221. position: absolute;
  222. right: 1rem;
  223. }
  224. .code .result {
  225. border: 1px solid rgba(0, 0, 0, 0.1);
  226. border-radius: 0.5rem;
  227. padding: 1rem;
  228. bottom: 1rem;
  229. position: absolute;
  230. top: 5.5rem;
  231. right: 1rem;
  232. left: 1rem;
  233. overflow: auto;
  234. }
  235. .code .status {
  236. color: #80adff;
  237. display: inline-block;
  238. font-size: 14px;
  239. }
  240. .code h4 {
  241. display: inline-block;
  242. max-width: 20rem;
  243. margin-right: 1rem;
  244. margin-bottom: 1rem;
  245. }
  246. select, input[type=text], input[type=date] {
  247. display: inline-block;
  248. width: 100%;
  249. padding: .375rem 1.75rem .375rem .75rem;
  250. line-height: 1.5;
  251. color: #495057;
  252. vertical-align: middle;
  253. background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right .75rem center;
  254. background-size: 8px 10px;
  255. border: 1px solid #ced4da;
  256. border-radius: .25rem;
  257. -webkit-appearance: none;
  258. -moz-appearance: none;
  259. appearance: none
  260. }
  261. input[type=text],input[type=date] {
  262. background: #fff;
  263. padding: .375rem .75rem;
  264. }
  265. select:focus, input[type=text]:focus, input[type=date]:focus {
  266. border-color: #80bdff;
  267. outline: 0;
  268. box-shadow: 0 0 0 .1rem rgba(128, 189, 255, .1)
  269. }
  270. .btn:focus {
  271. outline: 0;
  272. box-shadow: none;
  273. }
  274. select:focus::-ms-value, input[type=text]:focus::-ms-value,input[type=date]:focus::-ms-value {
  275. color: #495057;
  276. background-color: #fff
  277. }
  278. /* native toastr */
  279. .native-toast {
  280. position: fixed;
  281. background-color: rgba(50, 50, 50, .8);
  282. border-radius: 33px;
  283. color: white;
  284. left: 50%;
  285. text-align: center;
  286. padding: 6px 12px;
  287. opacity: 0;
  288. z-index: 99999;
  289. transition: transform .25s, opacity .25s, top .25s;
  290. box-sizing: border-box;
  291. }
  292. .native-toast-bottom {
  293. bottom: 50px;
  294. -ms-transform: translateX(-50%) translateY(50px);
  295. transform: translateX(-50%) translateY(50px)
  296. }
  297. .native-toast-bottom.native-toast-shown {
  298. opacity: 1;
  299. -ms-transform: translateX(-50%) translateY(0);
  300. transform: translateX(-50%) translateY(0);
  301. }
  302. .native-toast-bottom.native-toast-edge {
  303. bottom: 0;
  304. }
  305. .native-toast-top {
  306. top: 50px;
  307. -ms-transform: translateX(-50%) translateY(-50px);
  308. transform: translateX(-50%) translateY(-50px)
  309. }
  310. .native-toast-top.native-toast-shown {
  311. opacity: 1;
  312. -ms-transform: translateX(-50%) translateY(0);
  313. transform: translateX(-50%) translateY(0);
  314. }
  315. .native-toast-top.native-toast-edge {
  316. top: 0;
  317. }
  318. .native-toast-center {
  319. top: 0;
  320. -ms-transform: translateX(-50%) translateY(-50px);
  321. transform: translateX(-50%) translateY(-50px)
  322. }
  323. .native-toast-center.native-toast-shown {
  324. opacity: 1;
  325. top: 50%;
  326. -ms-transform: translateX(-50%) translateY(-50%);
  327. transform: translateX(-50%) translateY(-50%);
  328. }
  329. .native-toast-edge {
  330. border-radius: 0;
  331. width: 100%;
  332. text-align: left;
  333. }
  334. @media screen and (min-width: 40rem) {
  335. .native-toast:not(.native-toast-edge) {
  336. max-width: 18rem;
  337. }
  338. }
  339. /*
  340. max-width does not seem to work in small screen?
  341. */
  342. /*@media screen and (max-width: 768px) {
  343. .native-toast:not(.native-toast-edge) {
  344. max-width: 400px;
  345. }
  346. }
  347. @media screen and (max-width: 468px) {
  348. .native-toast:not(.native-toast-edge) {
  349. max-width: 300px;
  350. }
  351. }*/
  352. /* types */
  353. .native-toast-error {
  354. background-color: #d92727;
  355. color: white;
  356. }
  357. .native-toast-success {
  358. background-color: #62a465;
  359. color: white;
  360. }
  361. .native-toast-warning {
  362. background-color: #fdaf17;
  363. color: white;
  364. }
  365. .native-toast-info {
  366. background-color: #5060ba;
  367. color: white;
  368. }
  369. [class^="native-toast-icon-"] {
  370. vertical-align: middle;
  371. margin-right: 8px
  372. }
  373. [class^="native-toast-icon-"] svg {
  374. width: 16px;
  375. height: 16px;
  376. }