Skip to content

Commit b2bce03

Browse files
committed
test one
1 parent 2888458 commit b2bce03

File tree

8 files changed

+288
-0
lines changed

8 files changed

+288
-0
lines changed

resources/rssguard.qrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@
7878
<file>skins/vergilius/metadata.xml</file>
7979
<file>skins/vergilius/theme.css</file>
8080

81+
<file>skins/nudus/html_adblocked.html</file>
82+
<file>skins/nudus/html_enclosure_every.html</file>
83+
<file>skins/nudus/html_enclosure_image.html</file>
84+
<file>skins/nudus/html_single_message.html</file>
85+
<file>skins/nudus/html_wrapper.html</file>
86+
<file>skins/nudus/metadata.xml</file>
87+
<file>skins/nudus/theme.css</file>
88+
8189
<file>initial_feeds/feeds-en.opml</file>
8290

8391
<file>desktop/com.github.rssguard.desktop</file>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<div>
2+
<h4>%1</h4>
3+
<div>%2</div>
4+
</div>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/&nbsp;<a href="%1"><div style="display:none"><!-- cannot be removed -->%2</div><span style="text-transform: uppercase;">%3</span></a>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<a href="%1"><img src="%1" alt="%2" style="height: %3px;" /></a>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<div dir="auto">
2+
<div class="mwrapper">
3+
<section class="mhead">
4+
<div style="float: right; margin: 10px;"><!--where should I put it?????-->%7</div>
5+
<span class="msmall">%2</span>
6+
<h1>%1<span class="mlinks">%6<span class="murl">&nbsp;/&nbsp;<a href="%3">URL</a></span></span></h1>
7+
<span class="msmall" id="removeme">%5</span>
8+
</section>
9+
<hr class="mseparator" />
10+
<div class="mbody">
11+
%4
12+
</div>
13+
</div>
14+
</div>
Lines changed: 237 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,237 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<!DOCTYPE html>
3+
<html lang="en">
4+
<!--
5+
___________________________
6+
< I'm an expert in my field. >
7+
---------------------------
8+
\ ^__^
9+
\ (oo)\_______
10+
(__)\ )\/\
11+
||----w |
12+
|| ||
13+
TODO:
14+
1. Remove JS
15+
2. Rename classes
16+
-->
17+
<head>
18+
<style>
19+
:root {
20+
--base-unit: 10px;
21+
/* fusion border grey */
22+
--grey1: #B8B8B8;
23+
24+
/* some grey */
25+
--grey2: #CFCFCF;
26+
--grey10: #343434;
27+
--grey20: #F1F1F1;
28+
}
29+
body, h1, h2, h3, h4, h5, h6,
30+
p, blockquote, pre, hr,
31+
dl, dd, ol, ul, figure {
32+
margin: 0;
33+
padding: 0;
34+
}
35+
h1, h2, h3, h4, h5, h6,
36+
p, blockquote, pre,
37+
ul, ol, dl, figure {
38+
margin-bottom: var(--base-unit);
39+
}
40+
body {
41+
cursor: default;
42+
}
43+
pre,
44+
code {
45+
cursor: text;
46+
}
47+
h1, h2, h3, h4, h5, h6 {
48+
font-weight: 600 !important;
49+
}
50+
h1 { font-size: 1.25em !important; }
51+
h2 { font-size: 1.20em !important; }
52+
h3 { font-size: 1.15em !important; }
53+
h4 { font-size: 1.1em !important; }
54+
h5 { font-size: 1em !important; }
55+
h6 { font-size: .95em !important; }
56+
b {
57+
font-weight: bold !important;
58+
}
59+
i {
60+
font-style: italic !important;
61+
}
62+
strong {
63+
font-weight: 800 !important;
64+
}
65+
em {
66+
font-style: oblique !important;
67+
}
68+
mark {
69+
background: #FFECCC;
70+
}
71+
sub,
72+
sup {
73+
font-size: .8em !important;
74+
}
75+
small {
76+
font-size: .9em !important;
77+
}
78+
q {
79+
font-style: italic !important;
80+
}
81+
q::before {
82+
content: '“';
83+
}
84+
q::after {
85+
content: '”';
86+
}
87+
a {
88+
color: steelblue;
89+
word-break: break-word;
90+
}
91+
a:hover {
92+
text-decoration: none;
93+
}
94+
cite {
95+
font-style: italic !important;
96+
font-weight: bold !important;
97+
}
98+
figure > img {
99+
display: block;
100+
}
101+
figcaption {
102+
font-size: .8em !important;
103+
}
104+
blockquote {
105+
color: var(--grey10);
106+
border-left: 4px solid var(--grey2);
107+
margin-left: 0;
108+
padding: 0 var(--base-unit);
109+
}
110+
pre,
111+
code {
112+
background: var(--grey20);
113+
}
114+
code {
115+
border-radius: 5px;
116+
color: var(--grey10);
117+
padding: 0 .25em;
118+
word-break: break-word;
119+
}
120+
pre {
121+
--horiz: 13px;
122+
123+
border-radius: 3px;
124+
margin 0;
125+
overflow-x: auto;
126+
padding: 7px var(--horiz);
127+
white-space: pre !important;
128+
width: calc(100wv - calc(var(--horiz) * 2)) !important;
129+
}
130+
pre code {
131+
border: none;
132+
display: block;
133+
padding: 0;
134+
tab-size: 4;
135+
}
136+
table {
137+
border-collapse: collapse;
138+
width: 100%;
139+
}
140+
table,
141+
th,
142+
td {
143+
border: 1px solid var(--grey1);
144+
}
145+
img {
146+
max-height: 100%;
147+
/* there are few cases when in horiz layout max-width: 500px; is better with hi-res images*/
148+
max-width: 100%;
149+
}
150+
details > summary {
151+
border-radius: 5px;
152+
cursor: pointer;
153+
}
154+
details > summary:hover {
155+
background: var(--grey20);
156+
}
157+
details[open] > summary {
158+
background: var(--grey20);
159+
}
160+
details > summary:focus {
161+
box-shadow: none;
162+
outline: none;
163+
}
164+
hr {
165+
background: var(--grey2);
166+
border: none;
167+
display: block;
168+
height: 2px;
169+
margin: var(--base-unit) 0;
170+
}
171+
.mwrapper {
172+
padding: var(--base-unit) !important;
173+
}
174+
.mhead .msmall,
175+
.mhead .mlinks {
176+
opacity: .8;
177+
}
178+
.mhead h1 {
179+
margin: 0;
180+
}
181+
.msmall {
182+
font-size: 0.9em;
183+
}
184+
.mlinks a {
185+
word-break: break-word;
186+
}
187+
.murl {
188+
visibility: hidden;
189+
}
190+
body:hover .mwrapper .murl {
191+
visibility: visible;
192+
}
193+
.mbody {
194+
/*
195+
* for articles without html elements;
196+
* not sure if I want to add this
197+
*/
198+
/*word-break: break-word !important;*/
199+
}
200+
</style>
201+
202+
<style>
203+
html, body, div, span, applet, object, iframe,
204+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
205+
a, abbr, acronym, address, big, cite, code,
206+
del, dfn, em, img, ins, kbd, q, s, samp,
207+
small, strike, strong, sub, sup, tt, var,
208+
b, u, i, center,
209+
dl, dt, dd, ol, ul, li,
210+
fieldset, form, label, legend,
211+
table, caption, tbody, tfoot, thead, tr, th, td,
212+
article, aside, canvas, details, embed,
213+
figure, figcaption, footer, header, hgroup,
214+
menu, nav, output, ruby, section, summary,
215+
time, mark, audio, video {
216+
font: inherit;
217+
font-size: 100%;
218+
}
219+
220+
html {
221+
height: 100vh;
222+
}
223+
224+
body {
225+
height: 100vh;
226+
}
227+
</style>
228+
<meta name="viewport" content="width=device-width, initial-scale=1">
229+
<title>%1</title>
230+
</head>
231+
<body>
232+
%2
233+
<script>
234+
document.getElementById('removeme').innerHTML = 'JavaScript is on!';
235+
</script>
236+
</body>
237+
</html>

resources/skins/nudus/metadata.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<skin version="0.01">
3+
<author>
4+
<name>anonymous</name>
5+
<email>anonymous</email>
6+
</author>
7+
<palette>
8+
<color key="1">#4861F0</color>
9+
<color key="2">#F04861</color>
10+
<color key="3">#61F048</color>
11+
</palette>
12+
</skin>

resources/skins/nudus/theme.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
QTextEdit {
2+
selection-background-color: #4861f0;
3+
}
4+
5+
QStatusBar::item {
6+
border: none;
7+
}
8+
9+
QSplitter::handle {
10+
background: rgba(117, 117, 117, 0.5);
11+
}

0 commit comments

Comments
 (0)