tazpkg view tazpanel/pkgs.css @ rev 747

Add and use icons from Faenza icon theme (new light look and feel); fix last recharge date (pay respect to timezone time offset); add few comments; stylize search toolbar; fix "up" command; admin: select mirror as standard way to select item from list; open external links in the new tab (or new window); and a ton of other small changes.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jan 21 17:53:26 2015 +0200 (2015-01-21)
parents c4c2d523a719
children f2975370bd27
line source
1 body { -webkit-appearance: window; }
3 /**
4 * Sidebar menus
5 */
7 #content-sidebar {
8 margin-right: 138px; /* sidebar width */
9 padding: 10px;
10 }
12 #sidebar { /* full width = width(132) + h-padding(5) + border(1) = 138px */
13 position: fixed; top: 60px; bottom: 0; right: 0;
14 width: 132px; padding: 5px 5px 0 0;
15 border-left: 1pt solid #AAA;
16 background-color: #EEE;
17 overflow-y: auto; overflow-x: hidden; /* for tiny screens */
18 }
20 #sidebar h4 {
21 margin: 0; padding: 0;
22 font-size: 16px; color: #222;
23 text-align: center;
24 }
26 /* hack to remove unwanted scrollbar from multiline selector */
27 .select_wrap {
28 display: inline-block;
29 vertical-align: top;
30 overflow: hidden;
31 }
32 .select_wrap select {
33 padding: 5px;
34 margin:-5px -20px -5px -5px;
35 width: 162px; /* sidebar:(138px) + this h-margin:(20px+5px) */
36 font-size: small;
37 }
39 /* zebra on selector */
40 select option:nth-child(even) {
41 background-color: rgba(0,0,0,0.05);
42 }
44 option:checked { color: red; font-weight: bold; background-color: orange; }
46 /* sidebar links */
47 #sidebar a {
48 display: inline-block;
49 padding: 0 0 0 0.5em; margin: 0;
50 color: #000;
51 font-size: small;
52 width: 100%;
53 }
56 /**
57 * List of packages
58 */
60 /* links classes:
61 * pkg - package (not installed);
62 * pkgi - package (installed);
63 * pkgib - package (installed and blocked);
64 * w - web site
65 *
66 * you can style links using icons and/or color
67 */
69 a.pkg { background: url(images/tp-new.png) no-repeat left; }
70 a.pkgi { background: url(images/tp-pkgi.png) no-repeat left; }
71 a.pkgib { background: url(images/tp-pkgib.png) no-repeat left; color: red; }
72 a.w, .pkglist td:nth-child(4) a {
73 background: url(images/tp-web.png) no-repeat left; }
75 a.pkg, a.pkgi, a.pkgib, a.w, .pkglist td:nth-child(4) a {
76 margin: 0; padding: 0 0 0 17px;
77 min-height: 16px; min-width: 16px;
78 display: inline-block;
79 }
81 /* not break the line */
82 .pkglist td:nth-child(1),
83 .filelist td:nth-child(1) { white-space: nowrap; }
85 .pkglist td:nth-child(1) a,
86 .filelist td:nth-child(1) a { max-width: 12em; }
87 .pkglist td:nth-child(2) { max-width: 7em; }
88 .filelist td:nth-child(2) { max-width: 30em; }
90 /* ellipsize content of 1st and 2nd columns */
91 .pkglist td:nth-child(1) a,
92 .pkglist td:nth-child(2),
93 .filelist td:nth-child(1) a,
94 .filelist td:nth-child(2) {
95 white-space: nowrap;
96 overflow: hidden;
97 text-overflow: ellipsis; -o-text-overflow: ellipsis;
98 }
101 .pkglist tr { border-bottom: 1pt solid #DDD; }
103 .pkglist, .pkglist thead { border: 1.5pt solid #BBB!important; }
107 /**
108 * Summary table
109 */
111 /* to have minimal width of first column */
112 .summary td:nth-child(1) { width:10%; white-space: nowrap; }
114 /* light blue links on summary table */
115 .summary a { color: #248; }
119 /**
120 * Pager
121 */
123 a.pages {
124 display: inline-block;
125 padding: 0.5ex;
126 margin: 0.5ex 0;
127 border: 1px solid #AAA;
128 width: 3ex;
129 text-align: center;
130 }
131 a.pages:hover {
132 border: 1px solid #F94;
133 background: #F94;
134 color: black;
135 }
136 a.pages.current, a.pages.current:hover {
137 font-weight: bold;
138 border: 1px solid #07F;
139 background: #07F;
140 color: #eee;
141 }
145 /*
146 * Tags
147 */
148 #tags { text-align: center; }
149 a.tag1 { font-size: 0.9em; color: #678; }
150 a.tag2 { font-size: 1.0em; color: #444; }
151 a.tag3 { font-size: 1.1em; color: #16A; }
152 a.tag4 { font-size: 1.3em; color: #282; }
153 a.tag5 { font-size: 1.5em; color: #828; }
154 a.tag6 { font-size: 1.8em; color: #862; }
155 a.tag7 { font-size: 2.1em; color: #FA0; }
156 a.tag8 { font-size: 2.4em; color: #F00; }
157 #tags a {
158 display: inline-block;
159 white-space: nowrap;
160 vertical-align: middle;
161 padding: 0.2em 0.5em;
162 }
163 #tags a:hover {
164 outline: 1.5pt solid #FC8;
165 }
169 /*
170 * Action buttons panel
171 */
172 #actions {
173 background-color: rgba(229,229,229,0.5);
174 margin: 0; padding: 0.2rem 0.3rem!important;
175 border: 1pt solid #CCC;
176 border-radius: 0.3rem;
177 overflow: auto; /* provide break after floated objects */
178 }
179 .button img {
180 padding: 0 4px 0 0;
181 }
184 /* "articles" are used in the admin page */
185 article, fieldset {
186 display: block;
187 border: 1pt solid rgba(128, 128, 128, 0.5);
188 border-radius: 0.3rem;
189 padding: 0.3rem 0.3rem 0 0.3rem;
190 margin: 0.5rem 0;
191 background-color: rgba(128, 128, 128, 0.2);
192 }
193 article h3 {
194 padding: 0.3rem; margin: -0.3rem;
195 border-bottom: 1pt solid rgba(128, 128, 128, 0.5);
196 border-radius: 0.3rem 0.3rem 0 0;
197 background-color: rgba(128, 128, 128, 0.3);
198 }
199 legend {
200 font-weight: bold;
201 }
202 /* Disable too much borders */
203 article pre, article table { border: none }
206 /*
207 * Search block
208 */
209 .search {
210 position: fixed; right: 10px; top: 8px;
211 height: 25px;
212 border-radius: 4px;
213 background-color: #FFF;
214 padding: 0; margin: 0;
215 }
216 .search input {
217 height: 100%;
218 margin: 0; padding: 4px;
219 /*outline: none;*/
220 }
221 .search input:nth-child(1) {
222 width: 200px;
223 border: none;
224 -webkit-appearance: none; /* remove borders for input type="search" */
225 }
226 .search input:nth-child(2), .search input:nth-child(3) { -webkit-appearance: push-button; }
228 .search input:nth-child(1) {
229 border-radius: 4px 0 0 4px;
230 -moz-border-radius: 4px 0 0 4px;
231 -webkit-border-radius: 4px 0 0 4px;
232 }
233 .search input:nth-child(2) { border-radius: 0; -moz-border-radius: 0; -webkit-border-radius: 0; }
234 .search input:nth-child(3) {
235 border-top-left-radius: 0; border-bottom-left-radius: 0;
236 -moz-border-top-left-radius: 0; -moz-border-bottom-left-radius: 0;
237 -webkit-border-top-left-radius: 0; -webkit-border-bottom-left-radius: 0;
238 }