less Questions

6

Solved

H i, Hoping you can help. Is there a way for LESS to return just a value - feel like I'm missing something very obvious Say I have: @unit:em; @basevalue:1; Can I use something to give me a sh...
Explode asked 1/4, 2014 at 18:42

13

Solved

I am user of AWS elastic beanstalk, and I have a little problem. I want to build my CSS files with less+node. But I don`t know how to install node in my dockerfile, when building with jenkins. He...
Anuska asked 4/4, 2016 at 10:10

8

I am trying to use .less files with a minimalist React app (created with create-react-app). I've added less and less-loader to my package.json as well as a module rule in my webpack.config.js file....
Munford asked 1/9, 2019 at 21:46

6

Solved

In the following CSS taken from Twitter Bootstrap what does the ampersand (&) character mean? .clearfix { *zoom: 1; &:before, &:after { display: table; content: ""; } &:afte...
Sides asked 28/11, 2012 at 15:42

2

Solved

When using client-side compilation for less, and if there are errors, Less is not showing me what those errors are. It's supposed to insert some HTML, but it seems not to be doing this. The HTML on...
Scrounge asked 10/5, 2012 at 22:40

3

Solved

I thought it's possible to replace the @breadcrumb-separator temporarily, but unfortunately it doesn't work that way: #detailnavigation { @breadcrumb-separator: "|"; .list-inline.related { .bre...
Lareine asked 11/10, 2013 at 14:6

5

I am using LESS to organize and import all my CSS files. I am also using Twitter Bootstrap which I integrated inside my style.less. It works fine like below however when I use lessc to minify the l...
Puton asked 10/10, 2012 at 6:38

13

I'm trying to install LESS on my machine and have installed node already. However, when I enter "node install -g less" I get the following error and am not sure what to do? FPaulMAC:bin paul$ npm ...
Bobsled asked 28/10, 2014 at 15:48

3

I prefer create project style and components style with tailwind css framework. I want to use a few ant design component. Tailwindcss and ant.design have problems together. Ant design alignment los...
Lora asked 25/3, 2020 at 16:28

7

Solved

I am trying to group clases so the code will be cleaner and legible. In the documentation of Tailwind it talks about "@apply", that can be used for this objective but I am using the CDN a...
Segregate asked 23/3, 2022 at 7:58

4

In my project, I use CSS Modules with Less, which means I get the best of both worlds. My src folder looks something like this: components/ [all components] theme/ themes/ lightTheme.less dar...
Cornia asked 17/1, 2020 at 12:44

2

Solved

I'm upgrading to antd v5 and i had some issues with keeping the variables overrides made from less files with v4 i have multiple less files inside src/theme one of them is with the following @impor...
Ditch asked 9/1, 2023 at 16:15

5

Solved

The Less compilers that I'm using (OrangeBits and dotless 1.3.0.5) are aggressively translating body { width: calc(100% - 250px - 1.5em); } into body { width: calc(-151.5%); } Which is obviou...
Heroic asked 15/8, 2012 at 15:15

7

Solved

I want to use Next.js with Sass and CSS modules but also want to use Ant Design and wanted to use the Less styles for smaller building size. I'm able to enable either CSS modules or Less loader but...
Traylor asked 16/4, 2020 at 0:5

6

Solved

I want to use this dark theme for my new react web app : https://github.com/ant-design/ant-design-dark-theme After following directions on customizing theme here and directions on applying the the...
Vaughan asked 15/1, 2020 at 1:48

7

I'm using atom editor version 1.0 stable in ubuntu 14.04. my question is, How can I change the background colour of currently selected window tab... (means current tab..) by editing style.less file...
Mistreat asked 22/7, 2015 at 16:28

1

I am switching from Ant Design(which is using LESS) to use Tailwindcss. Overall Tailwindcss is great to use, but I notice some of the problem in it. in LESS, it is easier to override a styles by lo...
Virginavirginal asked 3/1, 2023 at 15:33

3

Solved

Is there a way of adding CSS rules to an element only if it has an certain child element ? I do know it is not possible to do it with CSS, but I'm not sure if it is possible to do it with LESS.
Nonsuit asked 31/10, 2012 at 14:20

7

Solved

I'm trying to add color to different element with a data attribute in my css but doensn't work ... I follow this instructions : The attr() Function: Properties Values Collected from the Edited Do...
Gonsalves asked 17/12, 2014 at 15:44

7

Solved

On input focus I want to change the color of the label element. How can I achieve this in less? .control-label{ color: @gray-light; } .controls{ input, textarea{ background-color:red; &...
Besot asked 16/1, 2014 at 6:19

4

Solved

I'm using Twitter's Bootstrap library to quickly throw together a prototype. Here's what my layout looks like in HTML: <div class="navbar-messages container"> <div class="alert alert-in...
Urena asked 13/5, 2012 at 18:22

8

I'd like to implement switching between dark/light theme dynamically with Ant design v4. It's possible to customize the theme with other CSS/LESS imports as it's written here: https://ant.design/do...
Mordacious asked 2/3, 2020 at 15:23

5

I have to use a converter, but it is very limited. http://hallotheme.com/less2scss Any idea how to convert from LESS to SCSS better?
Taenia asked 23/10, 2014 at 6:41

1

I was wondering if someone could point me in the right direction here. When I run my development server, and some times even the production server the build crashes sporadically saying the javascri...
Respect asked 13/8, 2020 at 8:1

4

Solved

I'm creating an app with React, Redux, Ant-Design, LESS and many other modules. I have to fetch the Primary color from the DB and I assign it to a CSS variable (--primary-color). I darken the color...
Dolliedolloff asked 27/11, 2018 at 20:15

© 2022 - 2024 — McMap. All rights reserved.