css

Changing color of mat form ripple conditionally

爱⌒轻易说出口 提交于 2021-02-10 14:57:10
问题 I am working on a angular app. I am using mat-form-field as follows. <mat-form-field appearance="fill"> <mat-label id="title">{{ title }} </mat-label> <input formControlName="title" matInput id="title" (click)='updateValue("title")' readonly> </mat-form-field> I get a rectangle shaped form field with above code. When I hover over the bottom line of mat form field like when I take my mouse on bottom of a particular form field I want to change color. For it I am suing following CSS .mat-form

Changing color of mat form ripple conditionally

蓝咒 提交于 2021-02-10 14:56:22
问题 I am working on a angular app. I am using mat-form-field as follows. <mat-form-field appearance="fill"> <mat-label id="title">{{ title }} </mat-label> <input formControlName="title" matInput id="title" (click)='updateValue("title")' readonly> </mat-form-field> I get a rectangle shaped form field with above code. When I hover over the bottom line of mat form field like when I take my mouse on bottom of a particular form field I want to change color. For it I am suing following CSS .mat-form

How to make chart horizontally scrollable

僤鯓⒐⒋嵵緔 提交于 2021-02-10 14:53:31
问题 I am using this chart library https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.3.0/Chart.min.js" and I have success to show the chart data, but I cannot make it scrollable horizontally. How to make it scroll? I've tried all the way <div class="wrapper" style="background-color: whitesmoke; "> <div class="chartAreaWrapper" style="width: 550px; overflow:scroll;"> <canvas id="myChart" width="1600" height="900"></canvas> </div> </div> this one of them, and this the javascript var years = [1,2,3,4

How to apply a mask-image only on an element's background and not on its children?

房东的猫 提交于 2021-02-10 14:53:24
问题 I'm trying to apply a mask-image on the background of an element, but I don't want to mask its children. I've tried to change the z-index without any success. * { box-sizing: border-box; } body { margin: 0; background: #000; } .el { width: 100%; height: 60px; mask-repeat: no-repeat; mask-position: center; background-color: #fff; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60'%3E%3Cpath d='M100 60c-13.43 0-20.2-11.37-26.74-22.37C67.25

How to apply a mask-image only on an element's background and not on its children?

谁说胖子不能爱 提交于 2021-02-10 14:53:17
问题 I'm trying to apply a mask-image on the background of an element, but I don't want to mask its children. I've tried to change the z-index without any success. * { box-sizing: border-box; } body { margin: 0; background: #000; } .el { width: 100%; height: 60px; mask-repeat: no-repeat; mask-position: center; background-color: #fff; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60'%3E%3Cpath d='M100 60c-13.43 0-20.2-11.37-26.74-22.37C67.25

Stroke animation not happening

此生再无相见时 提交于 2021-02-10 14:50:56
问题 I am playing with CSS3 animation and dashoffset. This is the tutorial I have been following: https://jakearchibald.com/2013/animated-line-drawing-svg/ After some adaptation, this stroke dashoffset animation is still not working : @keyframes dash { to { stroke-dashoffset: 0; } } #currency-chart-path { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: dash 5s linear forwards; } <svg id="city-total-v2" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999

Add or Remove Row in Input Table

爱⌒轻易说出口 提交于 2021-02-10 14:47:44
问题 I am trying to design a webpage with an input table where users can add or remove rows as they want. UI like this- And here is my html code: <div class="container my-5"> <h2>Welcome to dynamic input table with row adding option</h2> <form method="" action=""> <table class="table table-hover my-5"> <thead class=""> <tr> <th>No</th> <th>Name</th> <th>Pnone Number</th> <th>Email</th> <th>Remove?</th> </tr> </thead> <tbody> <tr> <td>1</td> <td><input type="text" name="name-1"></td> <td><input

CSS3 animation: Not loading in Safari

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-10 14:46:41
问题 the following animation doesn't even load in Safari browser (but works nicely in Chrome, Mozilla, IE, Opera) http://codepen.io/anon/pen/utdIK Any idea how to fix it? This problem looks similar, but it didn't fit to my problem. CSS3 animation not working in safari HTML: <div id="spinner-2"> <div class="slices bar"> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> </div> </div> <div class="maskWheel"></div> </div> CSS: #spinner-2 { width: 45px;

CSS3 animation: Not loading in Safari

百般思念 提交于 2021-02-10 14:46:08
问题 the following animation doesn't even load in Safari browser (but works nicely in Chrome, Mozilla, IE, Opera) http://codepen.io/anon/pen/utdIK Any idea how to fix it? This problem looks similar, but it didn't fit to my problem. CSS3 animation not working in safari HTML: <div id="spinner-2"> <div class="slices bar"> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> </div> </div> <div class="maskWheel"></div> </div> CSS: #spinner-2 { width: 45px;

Inner border-radius on a table cell

巧了我就是萌 提交于 2021-02-10 14:44:52
问题 I'm trying to create a photo frame with a HTML table and some CSS. I want to add an inner border-radius to it, but I can't find a way to color "edges" (spaces between "normal border" and "border with radius"). Here's a fiddle that showcases my problem. The objective is to color the edges of the center cell, without coloring it (it must be transparent to show what's underneath, the table background color in the example). table { border-spacing: 0; background-color: aqua; } td { border: solid