global.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852
  1. @import "mixins";
  2. $theme-color-1: #e4611b;
  3. $btn-background-color: $theme-color-1;
  4. $btn-text-color: #ffffff;
  5. $input-border-color: #bfbfbf;
  6. $content-h1-color: $theme-color-1;
  7. $content-h2-color: #333333;
  8. $content-h3-color: #333333;
  9. $content-h4-color: #333333;
  10. $content-h5-color: #333333;
  11. $content-h1-size: 1.6em;
  12. $content-h1-weight: 500;
  13. $content-h2-size: 1.4em;
  14. $content-h2-weight: 500;
  15. $content-h3-size: 1.2em;
  16. $content-h3-weight: 500;
  17. $content-h4-size: 1.2em;
  18. $content-h4-weight: 500;
  19. $content-h5-size: 1em;
  20. $content-h5-weight: 500;
  21. $content-a-color: $theme-color-1;
  22. body {
  23. overflow-x: hidden;
  24. }
  25. a {
  26. text-decoration: none;
  27. }
  28. h1, h2, h3, h4, h5, h6 {
  29. font-weight: 500;
  30. }
  31. h1, h2 {
  32. padding: 5px;
  33. }
  34. h1 {
  35. color: $content-h1-color;
  36. font-size: $content-h1-size;
  37. font-weight: $content-h1-weight;
  38. }
  39. h2 {
  40. color: $content-h2-color;
  41. font-size: $content-h2-size;
  42. font-weight: $content-h2-weight;
  43. }
  44. h3 {
  45. color: $content-h3-color;
  46. font-size: $content-h3-size;
  47. font-weight: $content-h3-weight;
  48. }
  49. h4 {
  50. color: $content-h4-color;
  51. font-size: $content-h4-size;
  52. font-weight: $content-h4-weight;
  53. }
  54. h5 {
  55. color: $content-h5-color;
  56. font-size: $content-h5-size;
  57. font-weight: $content-h5-weight;
  58. }
  59. a {
  60. color: $content-a-color;
  61. }
  62. a:hover {
  63. color: darken($content-a-color, 20%);
  64. text-decoration: underline;
  65. }
  66. p {
  67. padding: 5px;
  68. margin: 0 0 10px;
  69. }
  70. .text-center {
  71. text-align: center;
  72. }
  73. .text-justify {
  74. text-align: justify;
  75. }
  76. .text-right {
  77. text-align: right;
  78. }
  79. table {
  80. border-collapse: collapse;
  81. }
  82. table caption {
  83. padding-top: 8px;
  84. padding-bottom: 8px;
  85. color: #777;
  86. text-align: left;
  87. }
  88. table td, table th {
  89. border: 1px solid #ddd;
  90. padding: 8px;
  91. }
  92. table tr:nth-child(even) {
  93. background-color: #f2f2f2;
  94. }
  95. table th {
  96. padding-top: 12px;
  97. padding-bottom: 12px;
  98. text-align: left;
  99. color: #333333;
  100. }
  101. pre {
  102. display: block;
  103. padding: 9.5px;
  104. margin: 0 0 10px;
  105. font-size: 13px;
  106. border: 1px solid #ccc;
  107. border-radius: 4px;
  108. background-color: #f5f5f5;
  109. word-break: break-all;
  110. word-wrap: break-word;
  111. color: #333333;
  112. }
  113. img {
  114. max-width: 95%;
  115. height: auto;
  116. }
  117. hr {
  118. margin: 15px 5px;
  119. border-color: #BBB;
  120. }
  121. .align-center {
  122. display: flex;
  123. flex-direction: row;
  124. justify-content: center;
  125. }
  126. .ot-structures-frame, .ot-structures-frame-details {
  127. @include flexbox;
  128. font-family: Arial, serif;
  129. header {
  130. display: flex;
  131. flex-direction: row;
  132. justify-content: flex-start;
  133. width: 100%;
  134. align-items: center;
  135. }
  136. h2 {
  137. font-size: 21px;
  138. font-weight: 750;
  139. flex: 1;
  140. text-align: left;
  141. color: $btn-background-color;
  142. }
  143. header a {
  144. padding: 3px;
  145. margin: 2px;
  146. font-weight: 500;
  147. }
  148. input, select {
  149. height: 36px;
  150. border: solid 1px $input-border-color;
  151. border-radius: 0;
  152. }
  153. .structure-col {
  154. @include flexbox;
  155. flex-direction: column;
  156. flex: 1;
  157. max-width: 50%;
  158. padding: 12px;
  159. align-items: center;
  160. }
  161. .btn {
  162. background-color: $btn-background-color;
  163. border-radius: 4px;
  164. padding: 8px;
  165. font-weight: 750;
  166. color: $btn-text-color;
  167. text-align: center;
  168. }
  169. .spacer {
  170. flex: 1;
  171. }
  172. }
  173. .ot-structures-frame {
  174. flex-direction: row;
  175. flex-wrap: wrap;
  176. // The wrapper role is to maintain the map's height equal to its width
  177. // @see https://stackoverflow.com/a/14896313/4279120
  178. #structure-map-wrapper {
  179. position: relative;
  180. width: 100%;
  181. padding-bottom: 100%;
  182. float: left;
  183. height: 0;
  184. }
  185. #structure-map {
  186. width: 100%;
  187. height: 100%;
  188. position: absolute;
  189. left: 0;
  190. }
  191. #structure-map a {
  192. text-decoration: none;
  193. }
  194. #structure-map-bar {
  195. margin: 16px 2% 6px 2%;
  196. width: 100%;
  197. }
  198. #structure-map-bar .advice {
  199. color: #262626;
  200. font-weight: 750;
  201. text-align: center;
  202. font-size: 12px;
  203. }
  204. #overseas-provinces-list {
  205. @include flexbox;
  206. flex-direction: row;
  207. list-style: none;
  208. align-items: center;
  209. justify-content: center;
  210. flex-wrap: wrap;
  211. padding: 0;
  212. width: 100%;
  213. }
  214. #overseas-provinces-list li {
  215. margin: 5px;
  216. min-width: 50px;
  217. width: 75px;
  218. height: 75px;
  219. }
  220. #overseas-provinces-list li img {
  221. border: solid 1px #000000;
  222. max-width: 100%;
  223. width: 100%;
  224. height: 100%;
  225. cursor: pointer;
  226. }
  227. .structure-search {
  228. width: 100%;
  229. }
  230. .structure-search form {
  231. width: 100%;
  232. display: flex;
  233. flex-direction: column;
  234. }
  235. .structure-search-row {
  236. display: flex;
  237. flex-direction: row;
  238. flex-wrap: wrap;
  239. margin-bottom: 8px;
  240. }
  241. .search-bar-wrapper {
  242. display: flex;
  243. flex-direction: row;
  244. height: 30px;
  245. padding: 6px 2%;
  246. border: solid 1px $input-border-color;
  247. margin: 6px 0;
  248. max-width: 44%;
  249. }
  250. .search-bar-wrapper:not(:last-child) {
  251. margin-right: auto;
  252. }
  253. .search-bar {
  254. flex: 1;
  255. background: none;
  256. outline: none;
  257. height: auto;
  258. font-size: 18px;
  259. border: none;
  260. width: 95%;
  261. min-width: 85%;
  262. }
  263. .search-bar-btn {
  264. @include flexbox;
  265. flex-direction: column;
  266. justify-content: center;
  267. border: none;
  268. background: none;
  269. width: 5%;
  270. min-width: 24px;
  271. padding: 5px;
  272. font-size: 18px;
  273. cursor: pointer;
  274. min-height: 32px;
  275. }
  276. .search-bar-btn .fas {
  277. color: darken($input-border-color, 20);
  278. }
  279. .city-search-dropdown {
  280. min-width: 100%;
  281. position: relative;
  282. display: inline-block;
  283. top: 10px;
  284. left: -100%;
  285. }
  286. .city-search-results, .city-search-no-result, .city-search-loading {
  287. position: absolute;
  288. min-width: 100%;
  289. background: #EEEEEE;
  290. box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
  291. z-index: 99;
  292. top: 100%;
  293. }
  294. .city-search-loading img {
  295. padding:10px;
  296. width:30px;
  297. }
  298. .city-search-item, .city-search-no-result {
  299. display: block;
  300. padding: 12px 24px;
  301. white-space: nowrap;
  302. }
  303. .city-search-item:hover {
  304. background-color: #d9d9d9;
  305. cursor: pointer;
  306. }
  307. .structure-search select {
  308. color: $btn-background-color;
  309. padding: 4px 6px;
  310. margin: 3px 2%;
  311. font-weight: 750;
  312. width: 22%;
  313. min-width: 110px;
  314. font-size: 12px;
  315. }
  316. .structure-search select:first-child {
  317. margin-left: 0;
  318. }
  319. .structure-search select:last-child {
  320. margin-right: 0;
  321. }
  322. .structure-search .reset-search {
  323. background: none;
  324. color: $btn-background-color;
  325. margin: 0 6px 6px 0;
  326. cursor: pointer;
  327. height: 36px;
  328. border: solid 2px $btn-background-color;
  329. border-radius: 0;
  330. }
  331. .structure-search .submit-search {
  332. background-color: $btn-background-color;
  333. color: $btn-text-color;
  334. font-weight: 750;
  335. margin: 0 0 6px 6px;
  336. cursor: pointer;
  337. height: 36px;
  338. border: none;
  339. border-radius: 0;
  340. }
  341. .structure-results .structures-page {
  342. display: flex;
  343. flex-direction: row;
  344. flex-wrap: wrap;
  345. justify-content: center;
  346. }
  347. .structure-card {
  348. display: flex;
  349. flex-direction: column;
  350. width: 42%;
  351. min-width: 200px;
  352. border: solid 1px #cccccc;
  353. border-radius: 4px;
  354. padding: 12px;
  355. margin: 8px 1%;
  356. background-color: #f2f2f2;
  357. }
  358. .structure-poster {
  359. display: flex;
  360. flex-direction: row;
  361. justify-content: center;
  362. margin: 8px;
  363. min-width: 160px;
  364. height: 80px;
  365. }
  366. .structure-poster img {
  367. width: auto;
  368. height: auto;
  369. max-width: 100%;
  370. }
  371. .structure-details {
  372. display: flex;
  373. flex-direction: column;
  374. }
  375. .structure-details > * {
  376. margin: 4px;
  377. }
  378. .structure-practices {
  379. display: flex;
  380. flex-direction: row;
  381. flex-wrap: wrap;
  382. min-height: 18px;
  383. }
  384. .structure-practice {
  385. background-color: #d9d9d9;
  386. color: #262626;
  387. font-size: 11px;
  388. margin: 1px 4px 1px 0;
  389. padding: 1px 5px 3px 5px;
  390. height: 16px;
  391. border-radius: 6px;
  392. }
  393. .structure-name {
  394. font-size: 18px;
  395. font-weight: 750;
  396. width: 100%;
  397. text-align: left;
  398. color: $btn-background-color;
  399. }
  400. .structure-details-table td {
  401. border:none;
  402. }
  403. .structure-details-entry {
  404. color: #595959;
  405. }
  406. .structure-details-entry .fas {
  407. color: $btn-background-color;
  408. }
  409. .structure-see {
  410. width: 128px;
  411. max-height: 28px;
  412. padding: 4px;
  413. font-weight: 500;
  414. margin-top: 8px;
  415. }
  416. .structure-see:hover {
  417. text-decoration: none;
  418. color: white;
  419. }
  420. .results-count-message {
  421. width: 100%;
  422. display: flex;
  423. flex-direction: row;
  424. justify-content: flex-start;
  425. color: #666666;
  426. font-size: 0.8em;
  427. padding-left: 12px;
  428. }
  429. .pagination-bar {
  430. li a {
  431. color: #4d4d4d;
  432. font-weight: 600;
  433. }
  434. li.current a {
  435. color: $btn-background-color;
  436. }
  437. }
  438. }
  439. .ot-structures-frame.list-view {
  440. // List view changes
  441. .structure-col-map {
  442. display: none;
  443. }
  444. .structure-search form .search-buttons {
  445. }
  446. .search-bar-wrapper {
  447. flex: 1;
  448. max-width: none;
  449. }
  450. .search-bar-wrapper:not(:last-child) {
  451. margin-right: 2%;
  452. }
  453. .structure-search-row.filters {
  454. margin: 0 auto 12px auto;
  455. }
  456. .search-bar {
  457. flex: 1;
  458. max-width: none;
  459. }
  460. .filters select, .filters button {
  461. height: 52px;
  462. margin: 3px 0.5%;
  463. }
  464. .filters .reset-search {
  465. margin-left: 0;
  466. }
  467. .filters .submit-search {
  468. margin-right: 0;
  469. }
  470. .filters select {
  471. width: 18.5%;
  472. }
  473. .filters button {
  474. width: 10.5%;
  475. }
  476. .structure-col {
  477. align-items: normal;
  478. }
  479. .structure-col-results {
  480. width: 100%;
  481. max-width: 100%;
  482. }
  483. .structure-card {
  484. width: 95%;
  485. flex-direction: row;
  486. }
  487. .structure-card .spacer {
  488. flex: 0; // disable spacer in list view
  489. }
  490. .structure-details {
  491. flex: 1;
  492. }
  493. .structure-see {
  494. align-self: flex-end;
  495. }
  496. }
  497. .ot-structures-frame.map-view .activate-map-view {
  498. font-weight: 750;
  499. }
  500. .ot-structures-frame.list-view .activate-list-view {
  501. font-weight: 750;
  502. }
  503. // Medium screens
  504. @media screen and (min-width: 700px) and (max-width: 1048px) {
  505. .ot-structures-frame.map-view {
  506. #overseas-provinces-list li {
  507. width: 85px;
  508. height: 85px;
  509. margin: 5px 12px;
  510. }
  511. .structure-search select {
  512. margin: 3px 2%;
  513. width: 46%;
  514. }
  515. }
  516. .ot-structures-frame.list-view {
  517. .structure-search-row {
  518. flex-wrap: nowrap;
  519. }
  520. .filters {
  521. select, button {
  522. width: 15%;
  523. margin: 1%;
  524. }
  525. }
  526. }
  527. }
  528. // Small screens
  529. @media screen and (max-width: 700px) {
  530. .ot-structures-frame {
  531. flex-direction: column;
  532. flex-wrap: nowrap;
  533. .structure-col {
  534. max-width: none;
  535. // prevents content to be higher than the container
  536. min-width: 100px;
  537. overflow: hidden;
  538. }
  539. .structure-search-row {
  540. flex-direction: column;
  541. }
  542. .search-bar-wrapper {
  543. width: 95%;
  544. max-width: 95%;
  545. margin: 3px auto;
  546. }
  547. .search-bar-wrapper input {
  548. width: auto;
  549. }
  550. .structure-search select {
  551. width: 95%;
  552. margin: 3px auto;
  553. }
  554. .structure-card {
  555. width: 100%;
  556. }
  557. }
  558. .ot-structures-frame.list-view {
  559. .search-bar-wrapper {
  560. width: 85%;
  561. }
  562. .structure-card {
  563. flex-direction: column;
  564. }
  565. .structure-search-row {
  566. flex-wrap: nowrap;
  567. }
  568. .structure-search-row.filters {
  569. margin: 0;
  570. }
  571. .filters {
  572. select, button {
  573. width: 80%;
  574. margin: 5px auto;
  575. }
  576. }
  577. }
  578. }
  579. .ot-structures-frame-details {
  580. flex-direction: column;
  581. .please-wait {
  582. @include flexbox;
  583. flex-direction: row;
  584. width: 100%;
  585. height: 100vh;
  586. justify-content: center;
  587. align-items: center;
  588. }
  589. .content {
  590. margin: 18px 10%;
  591. max-width: 80%;
  592. }
  593. header {
  594. @include flexbox;
  595. flex-direction: row;
  596. .go-back {
  597. margin: 16px;
  598. padding: 4px 8px;
  599. color: #737373;
  600. font-weight: 700;
  601. }
  602. h2 {
  603. font-size: 14px;
  604. flex: 1
  605. }
  606. }
  607. .structure-header {
  608. @include flexbox;
  609. flex-direction: row;
  610. align-items: center;
  611. >* {
  612. margin: 12px;
  613. }
  614. .logo {
  615. height: 60px;
  616. width: auto;
  617. }
  618. h3 {
  619. font-size: 22px;
  620. color: $btn-background-color;
  621. font-weight: 750;
  622. flex: 1;
  623. }
  624. .social {
  625. @include flexbox;
  626. flex-direction: row;
  627. align-items: center;
  628. }
  629. .social a {
  630. font-size: 22px;
  631. padding: 4px 6px;
  632. color: #808080;
  633. }
  634. }
  635. .structure-practices {
  636. display: flex;
  637. flex-direction: row;
  638. width: 100%;
  639. margin: 6px auto;
  640. padding-bottom: 6px;
  641. flex-wrap: wrap;
  642. min-height: 18px;
  643. justify-content: center;
  644. border-bottom: solid 1px #a6a6a6;
  645. }
  646. .structure-practice {
  647. background-color: #d9d9d9;
  648. color: #262626;
  649. font-size: 11px;
  650. margin: 1px 4px 1px 0;
  651. padding: 1px 5px 3px 5px;
  652. height: 16px;
  653. border-radius: 6px;
  654. }
  655. .illustration-container {
  656. @include flexbox;
  657. flex-direction: row;
  658. margin: 40px 20%;
  659. justify-content: center;
  660. img {
  661. max-height: 180px;
  662. width: auto;
  663. }
  664. }
  665. .practices-tags {
  666. @include flexbox;
  667. flex-direction: row;
  668. }
  669. .details {
  670. @include flexbox;
  671. flex-direction: row;
  672. max-width: 100%;
  673. color: #666666;
  674. h4 {
  675. font-size: 18px;
  676. font-weight: 750;
  677. border-bottom: solid 1px $btn-background-color;
  678. align-self: flex-start;
  679. color: #666666;
  680. margin: 8px 0;
  681. }
  682. .description {
  683. @include flexbox;
  684. flex-direction: column;
  685. border-right: solid 2px $btn-background-color;
  686. width: 45%;
  687. padding-right: 5%;
  688. }
  689. .contact {
  690. @include flexbox;
  691. flex-direction: column;
  692. width: 45%;
  693. padding-left: 5%;
  694. }
  695. .contact td {
  696. background: none;
  697. border: none;
  698. width: 80%;
  699. }
  700. .contact td:first-child {
  701. width: 20%;
  702. color: $btn-background-color;
  703. }
  704. }
  705. .spot-on-bar {
  706. @include flexbox;
  707. flex-direction: row;
  708. }
  709. #structure-details-map {
  710. height: 300px;
  711. margin-top: 45px;
  712. }
  713. }