many small fixes, that should return some homogeneity

This commit is contained in:
Yann Esposito (Yogsototh) 2022-10-23 16:35:27 +02:00
parent e3ba853504
commit f9b8bfb9ef
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646
7 changed files with 34 additions and 100 deletions

View file

@ -290,42 +290,12 @@
[:strong
[:i.ico.big "☠"]" Fatal"]
" This is done by adding "
[:code "fatal"]" to the class.\n"]]
[:div {:class "col c6 gapless"}
[:h2 "Strong Alerts"]
[:br]
[:div {:class "msg alert"}
[:strong "Alert Message"]
" This is a normal message with "
[:code "msg"]".\n"]
[:div {:class "msg alert info"}
[:strong.c3
[:i.ico.big "☞"] " Alert Info"]
[:span.c9
" This is done by adding "]
[:code "info"]" to the class.\n"]
[:div {:class "msg alert ok"}
[:code "fatal"]" to the class.\n"]
[:div {:class "msg hl"}
[:strong
[:i.ico.big "☑"]
" Alert OK"]
[:i.ico.big "☞"] "Highlighted"]
" This is done by adding "
[:code "ok"]" to the class.\n"]
[:div {:class "msg alert warn"}
[:strong
[:i.ico.big "☣"]
" Alert Warning"]
" This is done by adding "
[:code "warn"]" to the class.\n"]
[:div {:class "msg alert err"}
[:strong
[:i.ico.big "☒"]" Alert Error"]
" This is done by adding "
[:code "err"]" to the class.\n"]
[:div {:class "msg alert fatal"}
[:strong
[:i.ico.big "☠"]" Alert Fatal"]
" This is done by adding "
[:code "fatal"]" to the class.\n"]]]
[:code "hl"]" to the class.\n"]]]
messages-section {:title "Messages"
:cards [messages]}
forms [:div
@ -391,11 +361,11 @@
tables-section {:title "Tables"
:cards [table]}
basic-icons [:div.col.start
[:h4 "Android Safe"]
[:h4 "Safe"]
[:i {:class "ico block big"} "☎ ♂ ♀ ⓧ © § ® ⇦ ⇧ ⇨ ⇩♠ ♣ ♥ ♦ ♪ ♛ ♜ ♝ ♞ ♟☜ ☞ ♨ ♭ ♯ ¥£ ¢❊ ฿ ๏ ※ ₧ ₨ ₪ € №\n"]
[:div {:class "msg push"}
[:p
"The \"Android Safe\" icons work everywhere, tested on hundreds of devices."]
"The \"Safe\" icons should work almost everywhere."]
[:p
(mapcat (fn [w i]
[ [:span w " "] [:i.ico i] " "])
@ -412,11 +382,7 @@
[:h4 "Total Set"]
[:i {:class "ico block big"}
"✉ ✰ ☁ ✈ ☑ ☒ ✆ ☀ ☮ ☢ ☠ ☣ ⌂ ℗ ☺ ☻ ☼ ∡ ∿ ⊝ ⊘ ⁂ ☤ ♫ ☄ ✎ ☟ ☝ ☹ ☭ ☚ ☛ ✌ 〠 ☃ ♮ ☂ ☸ ✍ ☯ ✂ ₩ ◍ ۩\n"]
[:div {:class "msg warn push"}
"Although over 75% of Android devices we tested support all \"Total Set\" icons, "
"if a substantial portion of your users use old Android devices you should stick to the "
" \"Android Safe\" set. (The \"Total Set\" does not include icons from the "
"\"Android Safe\" set.)"]]
[:div.msg "Just a bunch of a few more unicode icons."]]
icons-section {:title "icons"
:cards [basic-icons full-icons]}
grid

2
brut.min.css vendored

File diff suppressed because one or more lines are too long

View file

@ -921,14 +921,13 @@
<div><span>Directly in the column</span><img src="../h/img/brutalism.webp"></img></div>
</div>
</div>
</pre></details></div></div></div><div class="col"><h2 id="icons"><a href="#icons"><i class="ico">§</i></a> icons</h2><div class="row"><div class="card c6"><div class="col start"><h4>Android Safe</h4><i class="ico block big">☎ ♂ ♀ ⓧ © § ® ⇦ ⇧ ⇨ ⇩♠ ♣ ♥ ♦ ♪ ♛ ♜ ♝ ♞ ♟☜ ☞ ♨ ♭ ♯ ¥£ ¢❊ ฿ ๏ ※ ₧ ₨ ₪ € №
</i><div class="msg push"><p>The &quot;Android Safe&quot; icons work everywhere, tested on hundreds of devices.</p><p><span>Inserting </span><i class="ico"></i> <span>in </span><i class="ico"></i> <span>the </span><i class="ico"></i> <span>middle </span><i class="ico"></i> <span>of </span><i class="ico">©</i> <span>some </span><i class="ico">§</i> <span>text </span><i class="ico">®</i> <span>to </span><i class="ico"></i> <span>check </span><i class="ico"></i> <span>the </span><i class="ico"></i> <span>size. </span><i class="ico"></i> <span>Now </span><i class="ico"></i> <span>this </span><i class="ico"></i> <span>should </span><i class="ico"></i> <span>give </span><i class="ico"></i> <span>an </span><i class="ico"></i> <span>idea </span><i class="ico"></i> <span>about </span><i class="ico"></i> <span>the </span><i class="ico"></i> <span>size </span><i class="ico"></i> <span>relatively </span><i class="ico"></i> <span>to </span><i class="ico"></i> <span>the </span><i class="ico"></i> <span>text. </span><i class="ico"></i> <span>Hmmm </span><i class="ico"></i> <span>this </span><i class="ico"></i> <span>is </span><i class="ico"></i> <span>quite </span><i class="ico"></i> <span>long </span><i class="ico"></i> <span>and </span><i class="ico"></i> <span>boring </span><i class="ico">฿</i> <span>to </span><i class="ico"></i> <span>write </span><i class="ico"></i> <span>text </span><i class="ico"></i> <span>in </span><i class="ico"></i> <span>between </span><i class="ico"></i> <span>like </span><i class="ico"></i> <span>that! </span><i class="ico"></i> </p></div></div><details><summary>code</summary><pre>
</pre></details></div></div></div><div class="col"><h2 id="icons"><a href="#icons"><i class="ico">§</i></a> icons</h2><div class="row"><div class="card c6"><div class="col start"><h4>Safe</h4><i class="ico block big">☎ ♂ ♀ ⓧ © § ® ⇦ ⇧ ⇨ ⇩♠ ♣ ♥ ♦ ♪ ♛ ♜ ♝ ♞ ♟☜ ☞ ♨ ♭ ♯ ¥£ ¢❊ ฿ ๏ ※ ₧ ₨ ₪ € №
</i><div class="msg push"><p>The &quot;Safe&quot; icons should work almost everywhere.</p><p><span>Inserting </span><i class="ico"></i> <span>in </span><i class="ico"></i> <span>the </span><i class="ico"></i> <span>middle </span><i class="ico"></i> <span>of </span><i class="ico">©</i> <span>some </span><i class="ico">§</i> <span>text </span><i class="ico">®</i> <span>to </span><i class="ico"></i> <span>check </span><i class="ico"></i> <span>the </span><i class="ico"></i> <span>size. </span><i class="ico"></i> <span>Now </span><i class="ico"></i> <span>this </span><i class="ico"></i> <span>should </span><i class="ico"></i> <span>give </span><i class="ico"></i> <span>an </span><i class="ico"></i> <span>idea </span><i class="ico"></i> <span>about </span><i class="ico"></i> <span>the </span><i class="ico"></i> <span>size </span><i class="ico"></i> <span>relatively </span><i class="ico"></i> <span>to </span><i class="ico"></i> <span>the </span><i class="ico"></i> <span>text. </span><i class="ico"></i> <span>Hmmm </span><i class="ico"></i> <span>this </span><i class="ico"></i> <span>is </span><i class="ico"></i> <span>quite </span><i class="ico"></i> <span>long </span><i class="ico"></i> <span>and </span><i class="ico"></i> <span>boring </span><i class="ico">฿</i> <span>to </span><i class="ico"></i> <span>write </span><i class="ico"></i> <span>text </span><i class="ico"></i> <span>in </span><i class="ico"></i> <span>between </span><i class="ico"></i> <span>like </span><i class="ico"></i> <span>that! </span><i class="ico"></i> </p></div></div><details><summary>code</summary><pre>
&lt;div class=&quot;col start&quot;&gt;
&lt;h4&gt;Android Safe&lt;/h4&gt;&lt;i class=&quot;ico block big&quot;&gt;☎ ♂ ♀ ⓧ © § ® ⇦ ⇧
⇨ ⇩♠ ♣ ♥ ♦ ♪ ♛ ♜ ♝ ♞ ♟☜ ☞ ♨ ♭ ♯ ¥£ ¢❊ ฿ ๏ ※ ₧ ₨ ₪ € №&lt;/i&gt;
&lt;h4&gt;Safe&lt;/h4&gt;&lt;i class=&quot;ico block big&quot;&gt;☎ ♂ ♀ ⓧ © § ® ⇦ ⇧ ⇨ ⇩♠ ♣
♥ ♦ ♪ ♛ ♜ ♝ ♞ ♟☜ ☞ ♨ ♭ ♯ ¥£ ¢❊ ฿ ๏ ※ ₧ ₨ ₪ € №&lt;/i&gt;
&lt;div class=&quot;msg push&quot;&gt;
&lt;p&gt;The &quot;Android Safe&quot; icons work everywhere, tested on
hundreds of devices.&lt;/p&gt;
&lt;p&gt;The &quot;Safe&quot; icons should work almost everywhere.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Inserting&lt;/span&gt; &lt;i class=&quot;ico&quot;&gt;&lt;/i&gt;
&lt;span&gt;in&lt;/span&gt; &lt;i class=&quot;ico&quot;&gt;&lt;/i&gt; &lt;span&gt;the&lt;/span&gt;
&lt;i class=&quot;ico&quot;&gt;&lt;/i&gt; &lt;span&gt;middle&lt;/span&gt; &lt;i class=&quot;ico&quot;&gt;&lt;/i&gt;
@ -958,17 +957,13 @@
&lt;/div&gt;
&lt;/div&gt;
</pre></details></div><div class="card c6"><div class="col start"><h4>Total Set</h4><i class="ico block big">✉ ✰ ☁ ✈ ☑ ☒ ✆ ☀ ☮ ☢ ☠ ☣ ⌂ ℗ ☺ ☻ ☼ ∡ ∿ ⊝ ⊘ ⁂ ☤ ♫ ☄ ✎ ☟ ☝ ☹ ☭ ☚ ☛ ✌ 〠 ☃ ♮ ☂ ☸ ✍ ☯ ✂ ₩ ◍ ۩
</i><div class="msg warn push">Although over 75% of Android devices we tested support all &quot;Total Set&quot; icons, if a substantial portion of your users use old Android devices you should stick to the &quot;Android Safe&quot; set. (The &quot;Total Set&quot; does not include icons from the &quot;Android Safe&quot; set.)</div></div><details><summary>code</summary><pre>
</i><div class="msg">Just a bunch of a few more unicode icons.</div></div><details><summary>code</summary><pre>
&lt;div class=&quot;col start&quot;&gt;
&lt;h4&gt;Total Set&lt;/h4&gt;&lt;i class=&quot;ico block big&quot;&gt;✉ ✰ ☁ ✈ ☑ ☒ ✆ ☀ ☮ ☢
☠ ☣ ⌂ ℗ ☺ ☻ ☼ ∡ ∿ ⊝ ⊘ ⁂ ☤ ♫ ☄ ✎ ☟ ☝ ☹ ☭ ☚ ☛ ✌ 〠 ☃ ♮ ☂ ☸ ✍ ☯ ✂ ₩
◍ ۩&lt;/i&gt;
&lt;div class=&quot;msg warn push&quot;&gt;
Although over 75% of Android devices we tested support all
&quot;Total Set&quot; icons, if a substantial portion of your users use
old Android devices you should stick to the &quot;Android Safe&quot;
set. (The &quot;Total Set&quot; does not include icons from the
&quot;Android Safe&quot; set.)
&lt;div class=&quot;msg&quot;&gt;
Just a bunch of a few more unicode icons.
&lt;/div&gt;
&lt;/div&gt;
</pre></details></div></div></div><div class="col"><h2 id="Forms"><a href="#Forms"><i class="ico">§</i></a> Forms</h2><div class="row"><div class="card c6"><div><input class="neutral" placeholder="input" type="text" /><br /><textarea class="neutral" placeholder="textarea" rows="3"></textarea><br /><span class="addon bg-info">$</span><input type="text" /><div class="msg"><strong>Be careful with addons!</strong> If you do not want a space between the addon and the input make sure that there is no space between the <code>&lt;span&gt;</code> and <code>&lt;input&gt;</code> tags. Example: <pre>... &lt;/span&gt;<span class="hl"> </span>&lt;input ...</pre><span class="addon">$</span> <input class="smooth" type="text" /><pre>... &lt;/span&gt;&lt;input ...</pre><span class="addon">$</span><input class="smooth" type="text" /></div></div><details><summary>code</summary><pre>
@ -1070,12 +1065,7 @@
</div><div class="msg warn"><strong><i class="ico big"></i> Warning</strong> This is done by adding <code>warn</code> to the class.
</div><div class="msg err"><strong><i class="ico big"></i> Error</strong> This is done by adding <code>err</code> to the class.
</div><div class="msg fatal"><strong><i class="ico big"></i> Fatal</strong> This is done by adding <code>fatal</code> to the class.
</div></div><div class="col c6 gapless"><h2>Strong Alerts</h2><br /><div class="msg alert"><strong>Alert Message</strong> This is a normal message with <code>msg</code>.
</div><div class="msg alert info"><strong class="c3"><i class="ico big"></i> Alert Info</strong><span class="c9"> This is done by adding </span><code>info</code> to the class.
</div><div class="msg alert ok"><strong><i class="ico big"></i> Alert OK</strong> This is done by adding <code>ok</code> to the class.
</div><div class="msg alert warn"><strong><i class="ico big"></i> Alert Warning</strong> This is done by adding <code>warn</code> to the class.
</div><div class="msg alert err"><strong><i class="ico big"></i> Alert Error</strong> This is done by adding <code>err</code> to the class.
</div><div class="msg alert fatal"><strong><i class="ico big"></i> Alert Fatal</strong> This is done by adding <code>fatal</code> to the class.
</div><div class="msg hl"><strong><i class="ico big"></i>Highlighted</strong> This is done by adding <code>hl</code> to the class.
</div></div></div><details><summary>code</summary><pre>
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col c6 gapless&quot;&gt;
@ -1104,33 +1094,9 @@
&lt;strong&gt;&lt;i class=&quot;ico big&quot;&gt;&lt;/i&gt; Fatal&lt;/strong&gt; This is
done by adding &lt;code&gt;fatal&lt;/code&gt; to the class.
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;col c6 gapless&quot;&gt;
&lt;h2&gt;Strong Alerts&lt;/h2&gt;&lt;br&gt;&lt;/br&gt;
&lt;div class=&quot;msg alert&quot;&gt;
&lt;strong&gt;Alert Message&lt;/strong&gt; This is a normal message
with &lt;code&gt;msg&lt;/code&gt;.
&lt;/div&gt;
&lt;div class=&quot;msg alert info&quot;&gt;
&lt;strong class=&quot;c3&quot;&gt;&lt;i class=&quot;ico big&quot;&gt;&lt;/i&gt; Alert
Info&lt;/strong&gt; &lt;span class=&quot;c9&quot;&gt;This is done by
adding&lt;/span&gt; &lt;code&gt;info&lt;/code&gt; to the class.
&lt;/div&gt;
&lt;div class=&quot;msg alert ok&quot;&gt;
&lt;strong&gt;&lt;i class=&quot;ico big&quot;&gt;&lt;/i&gt; Alert OK&lt;/strong&gt; This is
done by adding &lt;code&gt;ok&lt;/code&gt; to the class.
&lt;/div&gt;
&lt;div class=&quot;msg alert warn&quot;&gt;
&lt;strong&gt;&lt;i class=&quot;ico big&quot;&gt;&lt;/i&gt; Alert Warning&lt;/strong&gt;
This is done by adding &lt;code&gt;warn&lt;/code&gt; to the class.
&lt;/div&gt;
&lt;div class=&quot;msg alert err&quot;&gt;
&lt;strong&gt;&lt;i class=&quot;ico big&quot;&gt;&lt;/i&gt; Alert Error&lt;/strong&gt; This
is done by adding &lt;code&gt;err&lt;/code&gt; to the class.
&lt;/div&gt;
&lt;div class=&quot;msg alert fatal&quot;&gt;
&lt;strong&gt;&lt;i class=&quot;ico big&quot;&gt;&lt;/i&gt; Alert Fatal&lt;/strong&gt; This
is done by adding &lt;code&gt;fatal&lt;/code&gt; to the class.
&lt;div class=&quot;msg hl&quot;&gt;
&lt;strong&gt;&lt;i class=&quot;ico big&quot;&gt;&lt;/i&gt;Highlighted&lt;/strong&gt; This
is done by adding &lt;code&gt;hl&lt;/code&gt; to the class.
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

View file

@ -19,16 +19,16 @@
display: inline-block;
margin: 0 4px 4px 0;
padding: 1rem 2rem;
box-shadow: 4px 4px var(--shadow);
box-shadow: 4px 4px var(--nl);
vertical-align: bottom;
}
.btn:hover {
box-shadow: 4px 4px var(--fg);
box-shadow: 4px 4px var(--n1);
}
.btn:active,.btn:focus {
box-shadow: 1px 1px #000;
box-shadow: 1px 1px var(--n2);
position: relative;
top: 3px;
left: 3px;

View file

@ -12,7 +12,7 @@
--n1: darken(@neutral,10%);
--n2: darken(@neutral,20%);
--shadow: rgba(0,0,0,0.65);
--shadow: rgba(128,128,128,0.5);
/* rainbow colors */
--y: #b58900;
@ -28,11 +28,10 @@
}
@media (prefers-color-scheme: dark) {
:root {
body { filter: invert(100%) hue-rotate(180deg);
.tg,.btn { filter: invert(100%) hue-rotate(180deg); }
}
img { filter: brightness(80%) invert(100%) ; }
body { filter: invert(100%) hue-rotate(180deg);}
img,.fill { filter: brightness(80%) invert(100%) ; }
.msg, .btn, .b, .info, .g, .ok, .y, .warn, .r, .err, .m, .fatal, .o, .v, .c,.alert {
filter: brightness(90%) invert(100%) hue-rotate(180deg);
}
}
html { background: var(--bg); color: var(--fg); }

View file

@ -26,5 +26,5 @@ textarea, input[type=text] {
}
textarea:focus, input:focus, select:focus {
border-color: var(--i1);
border-color: var(--accent);
}

View file

@ -51,14 +51,17 @@ table { font-size: 1rem; }
.big { font-size: 2rem; line-height: 2.8rem;}
.huge { font-size: 3rem; line-height: 4.1rem;}
/* highligh revert the colors */
.hl { background: var(--fg); color: var(--bg); }
.hl { background: var(--fg); color: var(--bg);
border: solid 1px;
padding: 1px;
}
/* doc are for long text to read */
.doc { max-width: 65ch;
font-size: 1.25rem;
font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,segoe ui,helvetica neue,helvetica,Cantarell,Ubuntu,roboto,noto,arial,sans-serif;
text-align: justify;
line-height: 1.5em;
p {
text-indent: 3rem;
}
}