How and where to use ::ng-deep?

Usually /deep/ “shadow-piercing” combinator can be used to force a style down to child components. This selector had an alias >>> and now has another one called ::ng-deep. since /deep/ combinator has been deprecated, it is recommended to use ::ng-deep For example: <div class=”overview tab-pane” id=”overview” role=”tabpanel” [innerHTML]=”project?.getContent( ‘DETAILS’)”></div> and css .overview { ::ng-deep { … Read more

Can I stretch text using CSS?

Yes, you can actually with CSS 2D Transforms. This is supported in almost all modern browsers, including IE9+. Here’s an example. HTML <p>I feel like <span class=”stretch”>stretching</span>.</p> CSS span.stretch { display:inline-block; -webkit-transform:scale(2,1); /* Safari and Chrome */ -moz-transform:scale(2,1); /* Firefox */ -ms-transform:scale(2,1); /* IE 9 */ -o-transform:scale(2,1); /* Opera */ transform:scale(2,1); /* W3C */ } … Read more

Calculate a percent with SCSS/SASS

Have you tried the percentage function ? $my_width: percentage(4/12); div{ width: $my_width; } UPDATE This function was updated since version 1.33.0 and now this is a correct method to do it: @use “sass:math”; div { width: math.percentage(math.div(4,12)); } Source: https://sass-lang.com/documentation/modules/math#percentage

CSS transition with visibility not working

This is not a bug– you can only transition on ordinal/calculable properties (an easy way of thinking of this is any property with a numeric start and end number value..though there are a few exceptions). This is because transitions work by calculating keyframes between two values, and producing an animation by extrapolating intermediate amounts. visibility … Read more

How to style the UL list to a single line

ul li{ display: inline; } For more see the basic list options and a basic horizontal list at listamatic. (thanks to Daniel Straight below for the links). Also, as pointed out in the comments, you probably want styling on the ul and whatever elements go inside the li’s and the li’s themselves to get things … Read more

Using :before CSS pseudo element to add image to modal

http://caniuse.com/#search=::after ::after and ::before with content are better to use as they’re supported in every major browser other than Internet Explorer at least 5 versions back. Internet Explorer has complete support in version 9+ and partial support in version 8. Is this what you’re looking for? .Modal::after{ content:url(“https://stackoverflow.com/questions/6668577/blackCarrot.png”); /* with class ModalCarrot ??*/ position:relative; /*or … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)