1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

[ci skip] Adds Dark Mode Iconography

Adds dark mode icons to the dark mode color scheme for rails guides.
This commit is contained in:
Mark Godwin 2021-04-19 09:20:20 -06:00
parent bfa5b45f42
commit 400bf4ec04
8 changed files with 71 additions and 3 deletions

View file

@ -0,0 +1,4 @@
<svg class="w-6 h-6" fill="none" stroke="#eeeeee" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M16 4v12l-4-2-4 2V4M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"></path>
</svg>

After

Width:  |  Height:  |  Size: 290 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 B

View file

@ -0,0 +1,3 @@
<svg class="w-6 h-6" fill="none" stroke="#a6e22e" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
</svg>

After

Width:  |  Height:  |  Size: 211 B

View file

@ -0,0 +1,5 @@
<svg class="w-6 h-6" fill="none" stroke="#444" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path>
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
</svg>

After

Width:  |  Height:  |  Size: 802 B

View file

@ -0,0 +1,4 @@
<svg class="w-6 h-6" fill="none" stroke="#f9d9d8" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M7 11.5V14m0-2.5v-6a1.5 1.5 0 113 0m-3 6a1.5 1.5 0 00-3 0v2a7.5 7.5 0 0015 0v-5a1.5 1.5 0 00-3 0m-6-3V11m0-5.5v-1a1.5 1.5 0 013 0v1m0 0V11m0-5.5a1.5 1.5 0 013 0v3m0 0V11"></path>
</svg>

After

Width:  |  Height:  |  Size: 374 B

View file

@ -0,0 +1,4 @@
<svg class="w-6 h-6" fill="none" stroke="#d5e9f6" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
</svg>

After

Width:  |  Height:  |  Size: 262 B

View file

@ -0,0 +1,4 @@
<svg class="w-6 h-6" fill="none" stroke="#fff9d8" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"></path>
</svg>

After

Width:  |  Height:  |  Size: 301 B

View file

@ -3,6 +3,7 @@
:root {
--text-color: #ddd;
--text-red: #fc4343;
--note-color: #fff9d8;
}
body {
@ -48,6 +49,12 @@
border-left: 0;
}
#feature ul li {
background-size: 1.4em 1.4em;
background-image: url(../images/check_icon.svg);
background-position: left 0.5em;
}
#mainCol a.anchorlink, #mainCol a.anchorlink code {
color: #eee;
}
@ -69,13 +76,31 @@
color: var(--text-red);
}
#subCol .chapters ul li {
background-image: url(../images/bullet_dark.gif);
}
#subCol h3.chapter {
padding-left:30px;
background-image: url(../images/book_icon.svg);
background-size: 1.25em;
background-repeat: no-repeat;
}
#subCol h3.chapter img {
display: none;
}
#mainCol div.warning, #subCol dd.warning {
border: 1px solid #f9d9d8;
background: unset;
background-color: #482928;
background-image: url(../images/hand_icon.svg);
background-size: 28px 28px;
background-position: 10px 12px;
color: #f9d9d8;
}
#footer {
background-color: #000;
}
@ -85,26 +110,45 @@
}
.note {
--note-color: #fff9d8;
color: var(--note-color);
border: 1px solid var(--note-color);
background-color: #3e3b2c;
background-image: url(../images/note_icon.svg);
background-size: 28px 28px;
background-position: 10px 10px;
}
#mainCol dd.work-in-progress, #subCol dd.work-in-progress {
color: var(--note-color);
border: 1px solid var(--note-color);
background-color: #3e3b2c;
background-image: url(../images/note_icon.svg);
background-size: 28px 28px;
background-position: 10px 10px;
}
.info {
border: 1px solid #d5e9f6;
background-color: #243440;
color: #d5e9f6;
background-image: url(../images/info_icon.svg);
background-size: 28px 28px;
background-position: 10px 10px;
}
.clipboard-button {
color: #ddd;
background-color: #222;
}
div.code_container {
background: none;
/*background: none;*/
background-color: #000;
background-image: url(../images/cog_icon.svg);
background-size: 28px 28px;
background-position: 10px 14px;
border: 1px solid #333;
}
}