responsive.css 18 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004
  1. /* Tablets */
  2. input[type="submit"], button {
  3. -webkit-appearance: none;
  4. appearance: none;
  5. }
  6. @media (max-width: 1024px) {
  7. /* Basic */
  8. html {
  9. -webkit-text-size-adjust: 100%;
  10. }
  11. td, th {
  12. padding: 10px;
  13. font-size: 14px;
  14. }
  15. .small {
  16. font-size: 12px;
  17. }
  18. /* Layout */
  19. #container {
  20. min-width: 0;
  21. }
  22. #content {
  23. padding: 20px 30px 30px;
  24. }
  25. div.breadcrumbs {
  26. padding: 10px 30px;
  27. }
  28. /* Header */
  29. #header {
  30. flex-direction: column;
  31. padding: 15px 30px;
  32. justify-content: flex-start;
  33. }
  34. #branding h1 {
  35. margin: 0 0 8px;
  36. font-size: 20px;
  37. line-height: 1.2;
  38. }
  39. #user-tools {
  40. margin: 0;
  41. font-weight: 400;
  42. line-height: 1.85;
  43. text-align: left;
  44. }
  45. #user-tools a {
  46. display: inline-block;
  47. line-height: 1.4;
  48. }
  49. /* Dashboard */
  50. .dashboard #content {
  51. width: auto;
  52. }
  53. #content-related {
  54. margin-right: -290px;
  55. }
  56. .colSM #content-related {
  57. margin-left: -290px;
  58. }
  59. .colMS {
  60. margin-right: 290px;
  61. }
  62. .colSM {
  63. margin-left: 290px;
  64. }
  65. .dashboard .module table td a {
  66. padding-right: 0;
  67. }
  68. td .changelink, td .addlink {
  69. font-size: 13px;
  70. }
  71. /* Changelist */
  72. #toolbar {
  73. border: none;
  74. padding: 15px;
  75. }
  76. #changelist-search > div {
  77. display: flex;
  78. flex-wrap: nowrap;
  79. max-width: 480px;
  80. }
  81. #changelist-search label {
  82. line-height: 22px;
  83. }
  84. #toolbar form #searchbar {
  85. flex: 1 0 auto;
  86. width: 0;
  87. height: 22px;
  88. margin: 0 10px 0 6px;
  89. }
  90. #toolbar form input[type=submit] {
  91. flex: 0 1 auto;
  92. }
  93. #changelist-search .quiet {
  94. width: 0;
  95. flex: 1 0 auto;
  96. margin: 5px 0 0 25px;
  97. }
  98. #changelist .actions {
  99. display: flex;
  100. flex-wrap: wrap;
  101. padding: 15px 0;
  102. }
  103. #changelist .actions.selected {
  104. border: none;
  105. }
  106. #changelist .actions label {
  107. display: flex;
  108. }
  109. #changelist .actions select {
  110. background: #fff;
  111. }
  112. #changelist .actions .button {
  113. min-width: 48px;
  114. margin: 0 10px;
  115. }
  116. #changelist .actions span.all,
  117. #changelist .actions span.clear,
  118. #changelist .actions span.question,
  119. #changelist .actions span.action-counter {
  120. font-size: 11px;
  121. margin: 0 10px 0 0;
  122. }
  123. #changelist-filter {
  124. flex-basis: 200px;
  125. }
  126. .change-list .filtered .results,
  127. .change-list .filtered .paginator,
  128. .filtered #toolbar,
  129. .filtered .actions,
  130. #changelist .paginator {
  131. border-top-color: #eee;
  132. }
  133. #changelist .results + .paginator {
  134. border-top: none;
  135. }
  136. /* Forms */
  137. label {
  138. font-size: 14px;
  139. }
  140. .form-row input[type=text],
  141. .form-row input[type=password],
  142. .form-row input[type=email],
  143. .form-row input[type=url],
  144. .form-row input[type=tel],
  145. .form-row input[type=number],
  146. .form-row textarea,
  147. .form-row select,
  148. .form-row .vTextField {
  149. box-sizing: border-box;
  150. margin: 0;
  151. padding: 6px 8px;
  152. min-height: 36px;
  153. font-size: 14px;
  154. }
  155. .form-row select {
  156. height: 36px;
  157. }
  158. .form-row select[multiple] {
  159. height: auto;
  160. min-height: 0;
  161. }
  162. fieldset .fieldBox {
  163. float: none;
  164. margin: 0 -10px;
  165. padding: 0 10px;
  166. }
  167. fieldset .fieldBox + .fieldBox {
  168. margin-top: 10px;
  169. padding-top: 10px;
  170. border-top: 1px solid #eee;
  171. }
  172. textarea {
  173. max-width: 100%;
  174. max-height: 120px;
  175. }
  176. .aligned label {
  177. padding-top: 6px;
  178. }
  179. .aligned .related-lookup,
  180. .aligned .datetimeshortcuts,
  181. .aligned .related-lookup + strong {
  182. align-self: center;
  183. margin-left: 15px;
  184. }
  185. form .aligned ul.radiolist {
  186. margin-left: 2px;
  187. }
  188. /* Related widget */
  189. .related-widget-wrapper {
  190. float: none;
  191. }
  192. .related-widget-wrapper-link + .selector {
  193. max-width: calc(100% - 30px);
  194. margin-right: 15px;
  195. }
  196. select + .related-widget-wrapper-link,
  197. .related-widget-wrapper-link + .related-widget-wrapper-link {
  198. margin-left: 10px;
  199. }
  200. /* Selector */
  201. .selector {
  202. display: flex;
  203. width: 100%;
  204. }
  205. .selector .selector-filter {
  206. display: flex;
  207. align-items: center;
  208. }
  209. .selector .selector-filter label {
  210. margin: 0 8px 0 0;
  211. }
  212. .selector .selector-filter input {
  213. width: auto;
  214. min-height: 0;
  215. flex: 1 1;
  216. }
  217. .selector-available, .selector-chosen {
  218. width: auto;
  219. flex: 1 1;
  220. display: flex;
  221. flex-direction: column;
  222. }
  223. .selector select {
  224. width: 100%;
  225. flex: 1 0 auto;
  226. margin-bottom: 5px;
  227. }
  228. .selector ul.selector-chooser {
  229. width: 26px;
  230. height: 52px;
  231. padding: 2px 0;
  232. margin: auto 15px;
  233. border-radius: 20px;
  234. transform: translateY(-10px);
  235. }
  236. .selector-add, .selector-remove {
  237. width: 20px;
  238. height: 20px;
  239. background-size: 20px auto;
  240. }
  241. .selector-add {
  242. background-position: 0 -120px;
  243. }
  244. .selector-remove {
  245. background-position: 0 -80px;
  246. }
  247. a.selector-chooseall, a.selector-clearall {
  248. align-self: center;
  249. }
  250. .stacked {
  251. flex-direction: column;
  252. max-width: 480px;
  253. }
  254. .stacked > * {
  255. flex: 0 1 auto;
  256. }
  257. .stacked select {
  258. margin-bottom: 0;
  259. }
  260. .stacked .selector-available, .stacked .selector-chosen {
  261. width: auto;
  262. }
  263. .stacked ul.selector-chooser {
  264. width: 52px;
  265. height: 26px;
  266. padding: 0 2px;
  267. margin: 15px auto;
  268. transform: none;
  269. }
  270. .stacked .selector-chooser li {
  271. padding: 3px;
  272. }
  273. .stacked .selector-add, .stacked .selector-remove {
  274. background-size: 20px auto;
  275. }
  276. .stacked .selector-add {
  277. background-position: 0 -40px;
  278. }
  279. .stacked .active.selector-add {
  280. background-position: 0 -40px;
  281. }
  282. .active.selector-add:focus, .active.selector-add:hover {
  283. background-position: 0 -140px;
  284. }
  285. .stacked .active.selector-add:focus, .stacked .active.selector-add:hover {
  286. background-position: 0 -60px;
  287. }
  288. .stacked .selector-remove {
  289. background-position: 0 0;
  290. }
  291. .stacked .active.selector-remove {
  292. background-position: 0 0;
  293. }
  294. .active.selector-remove:focus, .active.selector-remove:hover {
  295. background-position: 0 -100px;
  296. }
  297. .stacked .active.selector-remove:focus, .stacked .active.selector-remove:hover {
  298. background-position: 0 -20px;
  299. }
  300. .help-tooltip, .selector .help-icon {
  301. display: none;
  302. }
  303. form .form-row p.datetime {
  304. width: 100%;
  305. }
  306. .datetime input {
  307. width: 50%;
  308. max-width: 120px;
  309. }
  310. .datetime span {
  311. font-size: 13px;
  312. }
  313. .datetime .timezonewarning {
  314. display: block;
  315. font-size: 11px;
  316. color: #999;
  317. }
  318. .datetimeshortcuts {
  319. color: #ccc;
  320. }
  321. .form-row .datetime input.vDateField, .form-row .datetime input.vTimeField {
  322. width: 75%;
  323. }
  324. .inline-group {
  325. overflow: auto;
  326. }
  327. /* Messages */
  328. ul.messagelist li {
  329. padding-left: 55px;
  330. background-position: 30px 12px;
  331. }
  332. ul.messagelist li.error {
  333. background-position: 30px 12px;
  334. }
  335. ul.messagelist li.warning {
  336. background-position: 30px 14px;
  337. }
  338. /* Login */
  339. .login #header {
  340. padding: 15px 20px;
  341. }
  342. .login #branding h1 {
  343. margin: 0;
  344. }
  345. /* GIS */
  346. div.olMap {
  347. max-width: calc(100vw - 30px);
  348. max-height: 300px;
  349. }
  350. .olMap + .clear_features {
  351. display: block;
  352. margin-top: 10px;
  353. }
  354. /* Docs */
  355. .module table.xfull {
  356. width: 100%;
  357. }
  358. pre.literal-block {
  359. overflow: auto;
  360. }
  361. }
  362. /* Mobile */
  363. @media (max-width: 767px) {
  364. /* Layout */
  365. #header, #content, #footer {
  366. padding: 15px;
  367. }
  368. #footer:empty {
  369. padding: 0;
  370. }
  371. div.breadcrumbs {
  372. padding: 10px 15px;
  373. }
  374. /* Dashboard */
  375. .colMS, .colSM {
  376. margin: 0;
  377. }
  378. #content-related, .colSM #content-related {
  379. width: 100%;
  380. margin: 0;
  381. }
  382. #content-related .module {
  383. margin-bottom: 0;
  384. }
  385. #content-related .module h2 {
  386. padding: 10px 15px;
  387. font-size: 16px;
  388. }
  389. /* Changelist */
  390. #changelist {
  391. align-items: stretch;
  392. flex-direction: column;
  393. }
  394. #toolbar {
  395. padding: 10px;
  396. }
  397. #changelist-filter {
  398. margin-left: 0;
  399. }
  400. #changelist .actions label {
  401. flex: 1 1;
  402. }
  403. #changelist .actions select {
  404. flex: 1 0;
  405. width: 100%;
  406. }
  407. #changelist .actions span {
  408. flex: 1 0 100%;
  409. }
  410. #changelist-filter {
  411. position: static;
  412. width: auto;
  413. margin-top: 30px;
  414. }
  415. .object-tools {
  416. float: none;
  417. margin: 0 0 15px;
  418. padding: 0;
  419. overflow: hidden;
  420. }
  421. .object-tools li {
  422. height: auto;
  423. margin-left: 0;
  424. }
  425. .object-tools li + li {
  426. margin-left: 15px;
  427. }
  428. /* Forms */
  429. .form-row {
  430. padding: 15px 0;
  431. }
  432. .aligned .form-row,
  433. .aligned .form-row > div {
  434. display: flex;
  435. flex-wrap: wrap;
  436. max-width: 100vw;
  437. }
  438. .aligned .form-row > div {
  439. width: calc(100vw - 30px);
  440. }
  441. textarea {
  442. max-width: none;
  443. }
  444. .vURLField {
  445. width: auto;
  446. }
  447. fieldset .fieldBox + .fieldBox {
  448. margin-top: 15px;
  449. padding-top: 15px;
  450. }
  451. fieldset.collapsed .form-row {
  452. display: none;
  453. }
  454. .aligned label {
  455. width: 100%;
  456. padding: 0 0 10px;
  457. }
  458. .aligned label:after {
  459. max-height: 0;
  460. }
  461. .aligned .form-row input,
  462. .aligned .form-row select,
  463. .aligned .form-row textarea {
  464. flex: 1 1 auto;
  465. max-width: 100%;
  466. }
  467. .aligned .checkbox-row {
  468. align-items: center;
  469. }
  470. .aligned .checkbox-row input {
  471. flex: 0 1 auto;
  472. margin: 0;
  473. }
  474. .aligned .vCheckboxLabel {
  475. flex: 1 0;
  476. padding: 1px 0 0 5px;
  477. }
  478. .aligned label + p,
  479. .aligned label + div.help,
  480. .aligned label + div.readonly {
  481. padding: 0;
  482. margin-left: 0;
  483. }
  484. .aligned p.file-upload {
  485. margin-left: 0;
  486. font-size: 13px;
  487. }
  488. span.clearable-file-input {
  489. margin-left: 15px;
  490. }
  491. span.clearable-file-input label {
  492. font-size: 13px;
  493. padding-bottom: 0;
  494. }
  495. .aligned .timezonewarning {
  496. flex: 1 0 100%;
  497. margin-top: 5px;
  498. }
  499. form .aligned .form-row div.help {
  500. width: 100%;
  501. margin: 5px 0 0;
  502. padding: 0;
  503. }
  504. form .aligned ul {
  505. margin-left: 0;
  506. padding-left: 0;
  507. }
  508. form .aligned ul.radiolist {
  509. margin-right: 15px;
  510. margin-bottom: -3px;
  511. }
  512. form .aligned ul.radiolist li + li {
  513. margin-top: 5px;
  514. }
  515. /* Related widget */
  516. .related-widget-wrapper {
  517. width: 100%;
  518. display: flex;
  519. align-items: flex-start;
  520. }
  521. .related-widget-wrapper .selector {
  522. order: 1;
  523. }
  524. .related-widget-wrapper > a {
  525. order: 2;
  526. }
  527. .related-widget-wrapper .radiolist ~ a {
  528. align-self: flex-end;
  529. }
  530. .related-widget-wrapper > select ~ a {
  531. align-self: center;
  532. }
  533. select + .related-widget-wrapper-link,
  534. .related-widget-wrapper-link + .related-widget-wrapper-link {
  535. margin-left: 15px;
  536. }
  537. /* Selector */
  538. .selector {
  539. flex-direction: column;
  540. }
  541. .selector > * {
  542. float: none;
  543. }
  544. .selector-available, .selector-chosen {
  545. margin-bottom: 0;
  546. flex: 1 1 auto;
  547. }
  548. .selector select {
  549. max-height: 96px;
  550. }
  551. .selector ul.selector-chooser {
  552. display: block;
  553. float: none;
  554. width: 52px;
  555. height: 26px;
  556. padding: 0 2px;
  557. margin: 15px auto 20px;
  558. transform: none;
  559. }
  560. .selector ul.selector-chooser li {
  561. float: left;
  562. }
  563. .selector-remove {
  564. background-position: 0 0;
  565. }
  566. .active.selector-remove:focus, .active.selector-remove:hover {
  567. background-position: 0 -20px;
  568. }
  569. .selector-add {
  570. background-position: 0 -40px;
  571. }
  572. .active.selector-add:focus, .active.selector-add:hover {
  573. background-position: 0 -60px;
  574. }
  575. /* Inlines */
  576. .inline-group[data-inline-type="stacked"] .inline-related {
  577. border: 2px solid #eee;
  578. border-radius: 4px;
  579. margin-top: 15px;
  580. overflow: auto;
  581. }
  582. .inline-group[data-inline-type="stacked"] .inline-related > * {
  583. box-sizing: border-box;
  584. }
  585. .inline-group[data-inline-type="stacked"] .inline-related + .inline-related {
  586. margin-top: 30px;
  587. }
  588. .inline-group[data-inline-type="stacked"] .inline-related .module {
  589. padding: 0 10px;
  590. }
  591. .inline-group[data-inline-type="stacked"] .inline-related .module .form-row:last-child {
  592. border-bottom: none;
  593. }
  594. .inline-group[data-inline-type="stacked"] .inline-related h3 {
  595. padding: 10px;
  596. border-top-width: 0;
  597. border-bottom-width: 2px;
  598. display: flex;
  599. flex-wrap: wrap;
  600. align-items: center;
  601. }
  602. .inline-group[data-inline-type="stacked"] .inline-related h3 .inline_label {
  603. margin-right: auto;
  604. }
  605. .inline-group[data-inline-type="stacked"] .inline-related h3 span.delete {
  606. float: none;
  607. flex: 1 1 100%;
  608. margin-top: 5px;
  609. }
  610. .inline-group[data-inline-type="stacked"] .aligned .form-row > div:not([class]) {
  611. width: 100%;
  612. }
  613. .inline-group[data-inline-type="stacked"] .aligned label {
  614. width: 100%;
  615. }
  616. .inline-group[data-inline-type="stacked"] div.add-row {
  617. margin-top: 15px;
  618. border: 1px solid #eee;
  619. border-radius: 4px;
  620. }
  621. .inline-group div.add-row,
  622. .inline-group .tabular tr.add-row td {
  623. padding: 0;
  624. }
  625. .inline-group div.add-row a,
  626. .inline-group .tabular tr.add-row td a {
  627. display: block;
  628. padding: 8px 10px 8px 26px;
  629. background-position: 8px 9px;
  630. }
  631. /* Submit row */
  632. .submit-row {
  633. padding: 10px 10px 0;
  634. margin: 0 0 15px;
  635. display: flex;
  636. flex-direction: column;
  637. }
  638. .submit-row > * {
  639. width: 100%;
  640. }
  641. .submit-row input, .submit-row input.default, .submit-row a, .submit-row a.closelink {
  642. float: none;
  643. margin: 0 0 10px;
  644. text-align: center;
  645. }
  646. .submit-row a.closelink {
  647. padding: 10px 0;
  648. }
  649. .submit-row p.deletelink-box {
  650. order: 4;
  651. }
  652. /* Messages */
  653. ul.messagelist li {
  654. padding-left: 40px;
  655. background-position: 15px 12px;
  656. }
  657. ul.messagelist li.error {
  658. background-position: 15px 12px;
  659. }
  660. ul.messagelist li.warning {
  661. background-position: 15px 14px;
  662. }
  663. /* Paginator */
  664. .paginator .this-page, .paginator a:link, .paginator a:visited {
  665. padding: 4px 10px;
  666. }
  667. /* Login */
  668. body.login {
  669. padding: 0 15px;
  670. }
  671. .login #container {
  672. width: auto;
  673. max-width: 480px;
  674. margin: 50px auto;
  675. }
  676. .login #header,
  677. .login #content {
  678. padding: 15px;
  679. }
  680. .login #content-main {
  681. float: none;
  682. }
  683. .login .form-row {
  684. padding: 0;
  685. }
  686. .login .form-row + .form-row {
  687. margin-top: 15px;
  688. }
  689. .login .form-row label {
  690. display: block;
  691. margin: 0 0 5px;
  692. padding: 0;
  693. line-height: 1.2;
  694. }
  695. .login .submit-row {
  696. padding: 15px 0 0;
  697. }
  698. .login br, .login .submit-row label {
  699. display: none;
  700. }
  701. .login .submit-row input {
  702. margin: 0;
  703. text-transform: uppercase;
  704. }
  705. .errornote {
  706. margin: 0 0 20px;
  707. padding: 8px 12px;
  708. font-size: 13px;
  709. }
  710. /* Calendar and clock */
  711. .calendarbox, .clockbox {
  712. position: fixed !important;
  713. top: 50% !important;
  714. left: 50% !important;
  715. transform: translate(-50%, -50%);
  716. margin: 0;
  717. border: none;
  718. overflow: visible;
  719. }
  720. .calendarbox:before, .clockbox:before {
  721. content: '';
  722. position: fixed;
  723. top: 50%;
  724. left: 50%;
  725. width: 100vw;
  726. height: 100vh;
  727. background: rgba(0, 0, 0, 0.75);
  728. transform: translate(-50%, -50%);
  729. }
  730. .calendarbox > *, .clockbox > * {
  731. position: relative;
  732. z-index: 1;
  733. }
  734. .calendarbox > div:first-child {
  735. z-index: 2;
  736. }
  737. .calendarbox .calendar, .clockbox h2 {
  738. border-radius: 4px 4px 0 0;
  739. overflow: hidden;
  740. }
  741. .calendarbox .calendar-cancel, .clockbox .calendar-cancel {
  742. border-radius: 0 0 4px 4px;
  743. overflow: hidden;
  744. }
  745. .calendar-shortcuts {
  746. padding: 10px 0;
  747. font-size: 12px;
  748. line-height: 12px;
  749. }
  750. .calendar-shortcuts a {
  751. margin: 0 4px;
  752. }
  753. .timelist a {
  754. background: #fff;
  755. padding: 4px;
  756. }
  757. .calendar-cancel {
  758. padding: 8px 10px;
  759. }
  760. .clockbox h2 {
  761. padding: 8px 15px;
  762. }
  763. .calendar caption {
  764. padding: 10px;
  765. }
  766. .calendarbox .calendarnav-previous, .calendarbox .calendarnav-next {
  767. z-index: 1;
  768. top: 10px;
  769. }
  770. /* History */
  771. table#change-history tbody th, table#change-history tbody td {
  772. font-size: 13px;
  773. word-break: break-word;
  774. }
  775. table#change-history tbody th {
  776. width: auto;
  777. }
  778. /* Docs */
  779. table.model tbody th, table.model tbody td {
  780. font-size: 13px;
  781. word-break: break-word;
  782. }
  783. }