More work on icons

This commit is contained in:
Alexander Meindl 2024-10-06 13:55:32 +02:00
parent 5def0ef25d
commit 98f027d45d
3 changed files with 36 additions and 5 deletions

View File

@ -42,6 +42,7 @@ module AdditionalsIconsHelper
def svg_sprite_icon(icon_name, size: DEFAULT_ICON_SIZE, sprite: 'icons', css_class: nil, title: nil)
sprite_path = "#{sprite}.svg"
title = l title if title.is_a? Symbol
css_classes = "a-s#{size} a-svg-icon"
css_classes += " #{css_class}" if css_class

View File

@ -808,5 +808,35 @@
<path d="M19 17m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" />
</g>
</symbol>
<symbol viewBox="0 0 24 24" id="icon--history">
<!-- history -->
<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
<path d="M12 8l0 4l2 2"/>
<path d="M3.05 11a9 9 0 1 1 .5 4m-.5 5v-5h5"/>
</g>
</symbol>
<symbol viewBox="0 0 24 24" id="icon--unsupported">
<!-- circle-minus -->
<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
<path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" />
<path d="M9 12l6 0" />
</g>
</symbol>
<symbol viewBox="0 0 24 24" id="icon--test">
<!-- flask -->
<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
<path d="M20 8.04l-12.122 12.124a2.857 2.857 0 1 1 -4.041 -4.04l12.122 -12.124" />
<path d="M7 13h8" />
<path d="M19 15l1.5 1.6a2 2 0 1 1 -3 0l1.5 -1.6z" />
<path d="M15 3l6 6" />
</g>
</symbol>
<symbol viewBox="0 0 24 24" id="icon--settings">
<!-- settings -->
<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
<path d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z" />
<path d="M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0" />
</g>
</symbol>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 44 KiB

View File

@ -46,6 +46,11 @@ em.info a.external {
background-repeat: no-repeat;
}
.flex-buttons {
margin-top: 2px;
margin-bottom: 2px;
}
.flex-center {
display: flex;
align-items: center;
@ -222,11 +227,6 @@ h2#page-title.live-search input {
margin-left: 5px;
}
h2#page-title.import::before {
font-weight: 900;
content: '\f093'; /* fas fa-upload */
}
/* Tooltips */
.ui-tooltip {
background: #000;