]> git.openstreetmap.org Git - nominatim.git/blob - website/css/search.css
user interface: less spacing in table, pushing more content above the fold
[nominatim.git] / website / css / search.css
1
2
3 form {
4   width: 100%;
5   padding: 1em 15px;
6 }
7 form #q {
8   min-width: 500px;
9 }
10 @media (max-width: 850px) {
11 form #q {
12   min-width: 400px;
13 }
14 }
15 form .checkbox-inline {
16   margin-left: 10px;  
17 }
18 form label {
19   font-weight: normal;
20 }
21
22 .search-type-link {
23   display: inline;
24   margin-right: 2em;
25   position: absolute;
26   right: 0
27 }
28
29 .sidebar {
30   width: 25%;
31   padding: 15px;
32   padding-top: 0;
33   display: inline-block;
34   float: left;
35 }
36
37
38 #map-wrapper {
39   position: relative;
40   min-height: 700px;
41   width: 75%;
42   padding-right: 20px;
43   display: inline-block;
44   float: left;
45 }
46
47 #map {
48   height: 100%;
49   min-height: 700px;
50   background:#eee;
51 }
52
53 #map-position {
54   position: absolute;
55   top: 0;
56   right: 20px;
57   padding: 0 5px;
58   color: #333;
59   font-size: 11px;
60   background-color: rgba(255, 255, 255, 0.7);
61   z-index: 100;
62 }
63
64 .result {
65   font-size: 0.8em;
66   margin: 5px;
67   margin-top:0px;
68   padding: 4px 8px;
69   border-radius: 2px;
70   background:#F0F7FF;
71   border: 2px solid #D7E7FF;
72   cursor:pointer;
73   min-height: 5em;
74 }
75
76
77 .result.highlight {
78   background-color: #D9E7F7;
79   border-color: #9DB9E4;
80 }
81 .result.highlight .details {
82   margin: 10px auto;
83   display: block;
84   max-width: 10em;
85 }
86 .result img{
87   float: right;
88 }
89 .result .type{
90   color: gray;
91   font-size: 0.8em;
92 }
93 .result .details {
94   display: none;
95 }
96 .noresults{
97   text-align: center;
98   padding: 1em;
99 }
100
101 .more{
102   text-align:center;
103   margin-top: 1em;
104 }
105
106 footer {
107   text-align: center;  
108   padding: 2em 0;
109   font-size: 0.8em;
110   clear: both;
111   color: #333;
112 }
113
114 footer p {
115   margin: 1em;
116 }
117
118 @media (max-width: 768px) {
119   #content {
120     top: 0;
121     position: relative;
122   }
123   #map-wrapper {
124     width: 100%;
125     max-height: 300px;
126     padding: 20px;
127   }
128   #map-position {
129     top: 20px;
130     right: 20px;
131   }
132   #map {
133     height: 300px;
134   }
135   .sidebar {
136     width: 100%;
137   }
138   .search-button-group {
139     display: inline
140   }
141 }