Is there a way to reduce the "weight" of glyphics?
I use ok "Glyphicon <span class="glyphicon glyphicon-ok"></span>, which looks like this:
<span class="glyphicon glyphicon-ok"></span>
Is there a way to reduce weight in order to produce a thinner tick without reducing the font size? Changing font-weightto lighterhas no effect.
font-weight
lighter
Using the back door is the way to do it.
-webkit-text-stroke: 2px white;
You can apply the property font-weightto an alias ::beforeto change the font-weight:
::before
.glyphicon { font-size: 60px; } .glyphicon-light::before { font-weight: 100; } .glyphicon-thick::before { font-weight: 900; }
<!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <span class="glyphicon glyphicon-search glyphicon-light"></span> <span class="glyphicon glyphicon-search"></span> <span class="glyphicon glyphicon-search glyphicon-thick"></span>
.
$(document).ready(function() { $( "[.fas || .glyphicon]" ).each(function( index ) { var color = $(this).parent().css("background-color"); $(this).css("-webkit-text-stroke","2px "+color) }); });
: .fas .glyphicon.
.fas
.glyphicon
Source: https://habr.com/ru/post/1671850/More articles:How to get data from a component in VueJS - componentsNetworkInfo reacts incorrectly to network changes on a Nougat phone - javaUsing JobService to replace BroadcastReceiver? Network Changes and Alarms - javaМожете ли вы описать, что делает эта функция JavaScript `parseField`? - javascriptCan I do similar parallel computing on a GPU? - iosTSQL - create table columns based on records in a column - sqlRunning a Kafka Cluster in Docker Containers? - apache-kafkaHow to select input value from onchange using jQuery? - javascriptLocationRequest and LocationServices.API not allowed - androidAndroid2 camera output to ImageReader format YUV_420_888 is still slow - androidAll Articles