1
0

responsive.css 18 KB

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