|
|
@@ -0,0 +1,473 @@
|
|
|
+// template structures frame
|
|
|
+
|
|
|
+$btn-background-color: $menu-background-color;
|
|
|
+$btn-text-color: $menu-font-color;
|
|
|
+$input-border-color: #bfbfbf;
|
|
|
+
|
|
|
+.ot-structures-frame, .ot-structures-frame-details {
|
|
|
+ @include flex;
|
|
|
+
|
|
|
+ header {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ justify-content: flex-start;
|
|
|
+ width: 100%;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ h2 {
|
|
|
+ font-size: 21px;
|
|
|
+ font-weight: 750;
|
|
|
+ flex: 1;
|
|
|
+ text-align: left;
|
|
|
+ color: $btn-background-color;
|
|
|
+ }
|
|
|
+
|
|
|
+ header a {
|
|
|
+ padding: 3px;
|
|
|
+ margin: 2px;
|
|
|
+ font-weight: 500;
|
|
|
+ }
|
|
|
+
|
|
|
+ input, select {
|
|
|
+ height: 36px;
|
|
|
+ border: solid 1px $input-border-color;
|
|
|
+ border-radius: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-col {
|
|
|
+ @include flex;
|
|
|
+ flex-direction: column;
|
|
|
+ flex: 1;
|
|
|
+ max-width: 50%;
|
|
|
+ padding: 12px;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ .btn {
|
|
|
+ background-color: $btn-background-color;
|
|
|
+ border-radius: 4px;
|
|
|
+ padding: 8px;
|
|
|
+ font-weight: 750;
|
|
|
+ color: $btn-text-color;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ .spacer {
|
|
|
+ flex: 1;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.ot-structures-frame {
|
|
|
+ flex-direction: row;
|
|
|
+ flex-wrap: wrap;
|
|
|
+
|
|
|
+ // The wrapper role is to maintain the map's height equal to its width
|
|
|
+ // @see https://stackoverflow.com/a/14896313/4279120
|
|
|
+ #structure-map-wrapper {
|
|
|
+ position: relative;
|
|
|
+ width: 100%;
|
|
|
+ padding-bottom: 100%;
|
|
|
+ float: left;
|
|
|
+ height: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ #structure-map {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ position: absolute;
|
|
|
+ left: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ #structure-map a {
|
|
|
+ text-decoration: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ #structure-map-bar {
|
|
|
+ margin: 16px 2% 6px 2%;
|
|
|
+ max-width: 100%;
|
|
|
+ }
|
|
|
+
|
|
|
+ #structure-map-bar .advice {
|
|
|
+ color: #e4611b;
|
|
|
+ font-weight: 750;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ #overseas-provinces-list {
|
|
|
+ @include flex;
|
|
|
+ flex-direction: row;
|
|
|
+ list-style: none;
|
|
|
+ align-items: center;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ padding: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ #overseas-provinces-list li {
|
|
|
+ border: solid 1px #000000;
|
|
|
+ height: 80px;
|
|
|
+ width: 80px;
|
|
|
+ margin: 0 6px 6px 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ #overseas-provinces-list li img {
|
|
|
+ width: 100%;
|
|
|
+ max-width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-search {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-search form {
|
|
|
+ width: 100%;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-search-row {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ margin-bottom: 8px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .search-bar-wrapper {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ height: 30px;
|
|
|
+ padding: 6px 2%;
|
|
|
+ border: solid 1px $input-border-color;
|
|
|
+ margin: 6px 0;
|
|
|
+ max-width: 44%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .search-bar-wrapper:not(:last-child) {
|
|
|
+ margin-right: auto;
|
|
|
+ }
|
|
|
+
|
|
|
+ .search-bar {
|
|
|
+ flex: 1;
|
|
|
+ background: none;
|
|
|
+ outline: none;
|
|
|
+ height: auto;
|
|
|
+ font-size: 18px;
|
|
|
+ border: none;
|
|
|
+ width: 95%;
|
|
|
+ min-width: 85%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .search-bar-btn {
|
|
|
+ border: none;
|
|
|
+ background: none;
|
|
|
+ width: 5%;
|
|
|
+ min-width: 24px;
|
|
|
+ padding: 5px;
|
|
|
+ font-size: 18px;
|
|
|
+ cursor: pointer;
|
|
|
+ min-height: 32px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .search-bar-btn .fas {
|
|
|
+ color: darken($input-border-color, 20);
|
|
|
+ }
|
|
|
+
|
|
|
+ .city-search-dropdown {
|
|
|
+ min-width: 100%;
|
|
|
+ position: relative;
|
|
|
+ display: inline-block;
|
|
|
+ top: 10px;
|
|
|
+ left: -100%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .city-search-results, .city-search-no-result, .city-search-loading {
|
|
|
+ position: absolute;
|
|
|
+ min-width: 100%;
|
|
|
+ background: #EEEEEE;
|
|
|
+ box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
|
|
|
+ z-index: 99;
|
|
|
+ top: 100%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .city-search-loading img {
|
|
|
+ padding:10px;
|
|
|
+ width:30px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .city-search-item {
|
|
|
+ display: block;
|
|
|
+ padding: 12px 24px;
|
|
|
+ white-space: nowrap;
|
|
|
+ }
|
|
|
+
|
|
|
+ .city-search-item:hover {
|
|
|
+ background-color: #d9d9d9;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-search select {
|
|
|
+ color: $btn-background-color;
|
|
|
+ padding: 4px 6px;
|
|
|
+ margin: 3px 6px;
|
|
|
+ font-weight: 750;
|
|
|
+ width: 127px;
|
|
|
+ font-size: 12px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-search .reset-search {
|
|
|
+ background: none;
|
|
|
+ color: $btn-background-color;
|
|
|
+ margin: 0 6px 6px 6px;
|
|
|
+ cursor: pointer;
|
|
|
+ height: 36px;
|
|
|
+ border: solid 2px $btn-background-color;
|
|
|
+ border-radius: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-search .submit-search {
|
|
|
+ background-color: $btn-background-color;
|
|
|
+ color: $btn-text-color;
|
|
|
+ font-weight: 750;
|
|
|
+ margin: 0 6px 6px 6px;
|
|
|
+ cursor: pointer;
|
|
|
+ height: 36px;
|
|
|
+ border: none;
|
|
|
+ border-radius: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-results .structures-page {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-card {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ width: 44%;
|
|
|
+ min-width: 240px;
|
|
|
+ border: solid 1px #cccccc;
|
|
|
+ border-radius: 4px;
|
|
|
+ padding: 12px 8px;
|
|
|
+ margin: 8px 1%;
|
|
|
+ background-color: #f2f2f2;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-poster {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ justify-content: center;
|
|
|
+ margin: 8px;
|
|
|
+ min-width: 200px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-poster img {
|
|
|
+ width: auto;
|
|
|
+ height: auto;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-details {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-details > * {
|
|
|
+ margin: 4px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-categories {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ min-height: 18px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-category {
|
|
|
+ background-color: #d9d9d9;
|
|
|
+ color: #262626;
|
|
|
+ font-size: 11px;
|
|
|
+ margin-right: 4px;
|
|
|
+ padding: 1px 5px;
|
|
|
+ height: 16px;
|
|
|
+ border-radius: 6px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-name {
|
|
|
+ font-size: 21px;
|
|
|
+ font-weight: 750;
|
|
|
+ width: 100%;
|
|
|
+ text-align: left;
|
|
|
+ color: $btn-background-color;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-details-table tr {
|
|
|
+ background-color: #eeeeee !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-details-table td {
|
|
|
+ border:none;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-details-entry {
|
|
|
+ color: #595959;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-details-entry .fas {
|
|
|
+ color: $btn-background-color;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-see {
|
|
|
+ width: 128px;
|
|
|
+ max-height: 28px;
|
|
|
+ padding: 4px;
|
|
|
+ font-weight: 500;
|
|
|
+ margin-top: 8px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-see:hover {
|
|
|
+ text-decoration: none;
|
|
|
+ color: white;
|
|
|
+ }
|
|
|
+
|
|
|
+ .results-count-message {
|
|
|
+ width: 100%;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ justify-content: center;
|
|
|
+ color: #666666;
|
|
|
+ font-size: 0.8em;
|
|
|
+ }
|
|
|
+
|
|
|
+ .pagination-bar {
|
|
|
+ li a {
|
|
|
+ color: #4d4d4d;
|
|
|
+ font-weight: 600;
|
|
|
+ }
|
|
|
+
|
|
|
+ li.current a {
|
|
|
+ color: $btn-background-color;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.ot-structures-frame.list-view {
|
|
|
+ // List view changes
|
|
|
+
|
|
|
+ .structure-col-map {
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-search form .search-buttons {
|
|
|
+ }
|
|
|
+
|
|
|
+ .search-bar-wrapper {
|
|
|
+ flex: 1;
|
|
|
+ max-width: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ .search-bar-wrapper:not(:last-child) {
|
|
|
+ margin-right: 2%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-search-row.filters {
|
|
|
+ margin: 0 auto 12px auto;
|
|
|
+ }
|
|
|
+
|
|
|
+ .search-bar {
|
|
|
+ flex: 1;
|
|
|
+ max-width: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ .filters select, .filters button {
|
|
|
+ height: 52px;
|
|
|
+ width: auto;
|
|
|
+ }
|
|
|
+
|
|
|
+ .filters button {
|
|
|
+ margin: 3px 6px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-col-results {
|
|
|
+ width: 100%;
|
|
|
+ max-width: 100%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-card {
|
|
|
+ width: 95%;
|
|
|
+ flex-direction: row;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-card .spacer {
|
|
|
+ flex: 0; // disable spacer in list view
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-details {
|
|
|
+ flex: 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-see {
|
|
|
+ align-self: flex-end;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.ot-structures-frame.map-view .activate-map-view {
|
|
|
+ font-weight: 750;
|
|
|
+}
|
|
|
+.ot-structures-frame.list-view .activate-list-view {
|
|
|
+ font-weight: 750;
|
|
|
+}
|
|
|
+
|
|
|
+// Small screens
|
|
|
+@media screen and (max-width: 700px) {
|
|
|
+ .ot-structures-frame {
|
|
|
+ flex-direction: column;
|
|
|
+ flex-wrap: nowrap;
|
|
|
+
|
|
|
+ .structure-col {
|
|
|
+ max-width: none;
|
|
|
+
|
|
|
+ // prevents content to be higher than the container
|
|
|
+ min-width: 100px;
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
+
|
|
|
+ #overseas-provinces-list li {
|
|
|
+ margin: 0 auto 6px auto;
|
|
|
+ height: 90px;
|
|
|
+ width: 90px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-search-row {
|
|
|
+ flex-direction: column;
|
|
|
+ }
|
|
|
+
|
|
|
+ .search-bar-wrapper {
|
|
|
+ width: 95%;
|
|
|
+ max-width: 95%;
|
|
|
+ margin: 3px auto;
|
|
|
+ }
|
|
|
+
|
|
|
+ .search-bar-wrapper input {
|
|
|
+ width: auto;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-search select {
|
|
|
+ width: 95%;
|
|
|
+ margin: 3px auto;
|
|
|
+ }
|
|
|
+
|
|
|
+ .structure-card {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .list-view .structure-card {
|
|
|
+ flex-direction: column;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.ot-structures-frame-details {
|
|
|
+ flex-direction: column;
|
|
|
+
|
|
|
+}
|