Font-awesome: Icon request: icon-resize-grip

Created on 8 Jan 2013  路  15Comments  路  Source: FortAwesome/Font-Awesome

Hi!

I try to improve look of popular jqGrid plugin which can be used to display grids. It uses jQuery UI CSS framework. In the answer I posted the first attempt to replace jQuery UI Icons to the corresponding icons of Font Awesome.

The problem is that I don't fond any icons which can be used instead of ui-icon-gripsmall-diagonal-se which is the standard icon used in resizable dialog (see here). I marked the icon which I mean red on the image below. So looks like the dialog after 400% scaling

resizable-image

(one see very clear the differences in quality between some Font Awesome icons which I use already and the resizable icon ui-icon-gripsmall-diagonal-se)

The implementation of the "resizable" icon should be not complex, but I hope it would be helpful for many other users who prefer to use more Font Awesome instead of standard jQuery UI icons.

Best regards
Oleg

new icon web application icons

Most helpful comment

You can use fa-th and clip it:

<i class="fa fa-th"/>

.fa-th {
  clip-path: polygon(100% 0%, 70% 0%, 70% 30%, 30% 30%, 30% 60%, 0% 60%, 0% 100%, 100% 100%);
}

JsFiddle

For IE, since it doesn't support clip-path

<svg viewbox="0 0 20 20" height="14px" width="14px">
  <clipPath id="mask">
    <path d="m 0 20 v -6.5 h 7 v -6.5 h 7 v -6.5 h 7 v 20 h -20">      
  </clipPath>

  <image clip-path="url(#mask)" href="https://use.fontawesome.com/releases/v5.0.13/svgs/solid/th.svg" height="20px" width="20px" />
</svg>

https://codepen.io/DDuTCH/pen/jKWJOB

I needed to change the color, which I couldn't figure out for IE except by modifying the th svg directly

<svg viewbox="0 0 512 512">
  <path fill="#4484ba" d="M330.664 296 v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm32-240v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm386.667-56H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm0 160H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zM181.333 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24z"/>
</svg>

https://codepen.io/DDuTCH/pen/NzxVJN

All 15 comments

(Added clarification to Issue #816 to distinguish it from this one.)

I would like to have this too, any updates?
Thanks :)

ditto

+1 for grip and drag icons.

+1

+1 especially for the corner grip one, it's the last one I'm missing in my UI (to resize components)

yes please, drag icon!! amazing that this doesn't exist yet

+1

+1

+1

+1

+1

Use fa-signal for this purpose.
With the following css properties:
left: initial;
right: 4px;
bottom: 0px;

You can use fa-th and clip it:

<i class="fa fa-th"/>

.fa-th {
  clip-path: polygon(100% 0%, 70% 0%, 70% 30%, 30% 30%, 30% 60%, 0% 60%, 0% 100%, 100% 100%);
}

JsFiddle

For IE, since it doesn't support clip-path

<svg viewbox="0 0 20 20" height="14px" width="14px">
  <clipPath id="mask">
    <path d="m 0 20 v -6.5 h 7 v -6.5 h 7 v -6.5 h 7 v 20 h -20">      
  </clipPath>

  <image clip-path="url(#mask)" href="https://use.fontawesome.com/releases/v5.0.13/svgs/solid/th.svg" height="20px" width="20px" />
</svg>

https://codepen.io/DDuTCH/pen/jKWJOB

I needed to change the color, which I couldn't figure out for IE except by modifying the th svg directly

<svg viewbox="0 0 512 512">
  <path fill="#4484ba" d="M330.664 296 v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm32-240v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm386.667-56H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm0 160H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zM181.333 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24z"/>
</svg>

https://codepen.io/DDuTCH/pen/NzxVJN

+1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ufoczek picture ufoczek  路  3Comments

tdolph picture tdolph  路  3Comments

sezeresen picture sezeresen  路  3Comments

rufengch picture rufengch  路  3Comments

jakuuub picture jakuuub  路  3Comments