less

git: Show default / configured pager command

醉酒当歌 提交于 2021-02-19 07:59:05
问题 Git allows extensive configuration, with one of the values being core.pager . If this value is not set, Git performs some logic internally to automatically determine what the pager should be. core.pager Text viewer for use by Git commands (e.g., less). The value is meant to be interpreted by the shell. The order of preference is the $GIT_PAGER environment variable, then core.pager configuration, then $PAGER, and then the default chosen at compile time (usually less). When the LESS environment

Webpack 4 with Less and MiniCssExtractPlugin using entries

倖福魔咒の 提交于 2021-02-19 01:35:37
问题 I have following structure for styles in my application: application - css/ - bootstrap/ - boostrap.less -> has (@import "another.less") - another.less - common/ - common.less - entries/ - bootstrap.js -> has (import style from "../bootstrap/bootstrap.less") - common.js -> has (import common from "../common/common.less") And now I need to create separate CSS-es from styles imported to entries bootstrap.js and common.js. webpack.config.js const MiniCssExtractPlugin = require("mini-css-extract

Why doesn't flex direction column with align-items=center center image properly

半腔热情 提交于 2021-02-08 23:37:28
问题 I stumbled upon an issue with image centering within a flexbox with direction:column . Imagine you have two elements within a flexbox, where the first one contains an image: <div class="container"> <div class="image-container"> <img class="img" src="https://interactive-examples.mdn.mozilla.net/media/examples/firefox-logo.svg"> </div> <div class="another-flex-child"> Random content here </div> </div> .container { height: 300px; background-color: green; display: flex; flex-direction: column;

less.modifyVars not updating LESS variable

◇◆丶佛笑我妖孽 提交于 2021-01-27 07:50:40
问题 My project has a requirement to have a user-editable theme. Meaning the users should have the ability to change the different colors used in the application. I've imported less.js (version 1.7.0) into my project and I've successfully called the less.modifyVars() function from my javascript but for some reason my less file isn't getting updated. My stylesheet is dynamically compiled by grunt. This is the code in head of the HTML: <link rel="stylesheet/less" type="text/css" href="/static/<%=

less.modifyVars not updating LESS variable

吃可爱长大的小学妹 提交于 2021-01-27 07:46:27
问题 My project has a requirement to have a user-editable theme. Meaning the users should have the ability to change the different colors used in the application. I've imported less.js (version 1.7.0) into my project and I've successfully called the less.modifyVars() function from my javascript but for some reason my less file isn't getting updated. My stylesheet is dynamically compiled by grunt. This is the code in head of the HTML: <link rel="stylesheet/less" type="text/css" href="/static/<%=

Style input range background before thumb

我的未来我决定 提交于 2020-12-08 10:40:44
问题 I want to style the bar before the thumb with a different color on a range input. I'v tried looking for a solution but I havent found a proper solution. This is what I need it to look like: Chrome doesnt seem to support input[type='range']::-webkit-slider-thumb:before anymore and I am at a loss how to style it. Here's what I have so far: input[type='range'] { min-width: 100px; max-width: 200px; &::-webkit-slider-thumb { -webkit-appearance: none !important; background-color: @white; border:

Style input range background before thumb

扶醉桌前 提交于 2020-12-08 10:33:53
问题 I want to style the bar before the thumb with a different color on a range input. I'v tried looking for a solution but I havent found a proper solution. This is what I need it to look like: Chrome doesnt seem to support input[type='range']::-webkit-slider-thumb:before anymore and I am at a loss how to style it. Here's what I have so far: input[type='range'] { min-width: 100px; max-width: 200px; &::-webkit-slider-thumb { -webkit-appearance: none !important; background-color: @white; border:

Style input range background before thumb

折月煮酒 提交于 2020-12-08 10:32:40
问题 I want to style the bar before the thumb with a different color on a range input. I'v tried looking for a solution but I havent found a proper solution. This is what I need it to look like: Chrome doesnt seem to support input[type='range']::-webkit-slider-thumb:before anymore and I am at a loss how to style it. Here's what I have so far: input[type='range'] { min-width: 100px; max-width: 200px; &::-webkit-slider-thumb { -webkit-appearance: none !important; background-color: @white; border: