Improved www.ttss.krakow.pl
Jacek Kowalski
2017-04-23 8b6250cb5db8d1bb17902d45f08a2e929e8e0afd
commit | author | age
57b8d3 1 html, body, #map {
JK 2     margin: 0;
3     font-family: sans-serif;
07c714 4     overflow: hidden;
JK 5 }
6
7 #map {
8     position: absolute;
9     top: 0;
10     left: 0;
11     right: 0;
12     bottom: 0;
13 }
14
15 #map .ol-attribution {
16     left: 0;
17     right: auto;
57b8d3 18 }
JK 19
20 #popup {
21     color: black;
22     background: white;
23     padding: 5px;
07c714 24     border-left: 1px solid black;
JK 25     font-size: 14px;
26     
27     position: absolute;
28     width: 300px;
29     right: -315px;
30     top: 0;
31     bottom: 0;
32     
33     transition: right .4s;
34     transition: width .4s;
35     
8b6250 36     opacity: .85;
JK 37     
38     overflow-y: auto;
07c714 39 }
JK 40
41 #popup.show {
42     right: 0;
43 }
44
45 @media (max-width: 600px) {
46     #popup {
47         width: 90%;
48         right: -100%;
49     }
50     
51     #popup.show {
52         right: 0%;
53     }
54 }
55
8b6250 56 #popup .close {
JK 57     float: right;
58     cursor: pointer;
59     font-size: 20px;
60 }
07c714 61 #popup .type {
JK 62     padding-bottom: 0;
63     color: #444;
64     font-size: 80%;
57b8d3 65 }
JK 66 #popup p {
67     margin: 0;
68     padding: 5px;
69 }
07c714 70 #popup .name {
57b8d3 71     font-weight: bold;
JK 72 }
07c714 73 #popup .vehicleInfo {
JK 74     font-size: 21px;
8b6250 75     margin: -4px 0 -5px;
JK 76 }
77 #popup table {
78     margin-top: 3px;
79     border-top: 1px solid gray;
80     width: 100%;
81     border-collapse: collapse;
82 }
83 #popup table th {
84     text-align: left;
85     border-bottom: 1px solid #999;
86     padding-top: 5px;
87 }
88 #popup table td {
89     vertical-align: top;
90 }
91 #popup .active {
92     background: #f5f5f5;
93     color: gray;
94 }
95 #popup .success {
96     background: #dff0d8;
97 }
98 #popup .warning {
99     background: #fcf8e3;
100 }
101 #popup .danger {
102     background: #f2dede;
103 }
104 #popup table .vehicleInfo {
105     float: right;
07c714 106 }
57b8d3 107
JK 108 #title {
109     top: .5em;
110     left: .5em;
111     padding: 2px .5em;
112     font-weight: bold;
113     background-color: rgba(255,255,255,.6);
114 }
8b6250 115
JK 116 #fail, #popup .error {
57b8d3 117     background: red;
JK 118     color: white;
119     font-weight: bold;
120     padding: 5px;
8b6250 121 }
JK 122 #fail {
123     top: -10em;
124     right: 0.5em;
57b8d3 125 }
JK 126 .ol-zoom {
127     top: 2.2em;
128 }
129
130 a {
131     color: #337ab7;
132     text-decoration: none;
8b6250 133     cursor: pointer;
57b8d3 134 }
JK 135 a:hover {
136     text-decoration: underline;
137 }
8b6250 138
JK 139 .small {
140     font-size: 80%;
141 }