less

Need HTML CSS alignment solution

折月煮酒 提交于 2019-12-11 03:53:28
问题 I am really not sure if I am on the right path... every time I find solution for my previous problem and later on when I integrate "fixed" code with something else it breaks again, so that made me think that I am doing something fundamentally wrong here. Thats why I am asking you to REVIEW and propose FIX or completele new SOLUTION for something that I plan to achieve. I am trying to display a flight information and each route should be displayed the way you see on the picture. Right now, it

Why can't Koala compile the default Bootstrap 3 less files?

那年仲夏 提交于 2019-12-11 03:28:30
问题 I'm working on learning Bootstrap 3 and Less, and I've hit a dead end before I've even gotten started. After two days of trial and error, I finally landed on Koala for compiling Less into CSS. I'm on Mac OS 10.7, so Codekit is out (only runs on 8+ now), and since Koala actually runs (and I've installed a dozen pieces of software is trying to implement this workflow, including but not limited to Grunt, Ruby, Git, Bower, Jekyll, GCC, Node.js, not to mention various IDEs and text editors), I am

responsive.less and other responsive less files missing from Bootstrap

非 Y 不嫁゛ 提交于 2019-12-11 03:17:45
问题 I am needing a responsive design at work and have a template project that uses grunt to compile the final css file for bootstrap, but the responsive grids is not working. I checked out what .less files we are compiling and we are compiling (among other things) responsive-utilities.less, but people are saying to make sure to add the responsive.less file, and make sure that gets compiled as well by Grunt. Only problem is I can't find responsive.less anywhere that is supported by bootstrap. I

How to fix less error while compiling bootstrap?

不想你离开。 提交于 2019-12-11 02:56:42
问题 Attached is a trace while compiling using grunt dist (webmaker)Anils-MacBook-Pro:bootstrap anil$ grunt dist Running "clean:dist" (clean) task Running "less:compileCore" (less) task >> ArgumentError: error evaluating function `ceil`: argument must be a number in less/variables.less on line 48, column 27: >> 47 @font-size-base: 15px; >> 48 @font-size-large: ceil(@font-size-base * 1.25); // ~18px >> 49 @font-size-small: ceil(@font-size-base * 0.85); // ~12px Warning: Error compiling less

Possible to reference extended property in less?

妖精的绣舞 提交于 2019-12-11 02:53:55
问题 Is it possible to extend a extended property in less? I have definitions in one (distributed) file and need to add !important to the existing property in my special case. As example I have a less file defining this class .pfx-grey-light-bg { background-color: #e5e5e7; } I'd like to reference this less file now but extend the color to important .pfx-metro-orange-dark-bg:extend(.pfx-orange-dark-bg){ //Pseudo code //background-color: &extended.backgroundColor !important } The result should be

LESS css compiler help in terminal

ぃ、小莉子 提交于 2019-12-11 02:47:49
问题 Im using Ubuntu 13.04 (Linux) I have installed node, and npm. With npm I downloaded less via terminal. Im using this on my simple HTML/CSS project. pure frontend. its not a Ruby or nodejs project. And when I do lessc styles.less styles.css -x -w in terminal, it compiles and compresses the code, but doesn't watch the file for changes, since Im expecting LESS to auto compile and refresh the page automatically. So, if I do any changes in my styles.less, every-time I have to go to terminal and

How do I convert a variable containing a percentage to a number in LESS, but leave plain numbers alone?

好久不见. 提交于 2019-12-11 02:41:41
问题 In a LESS mixin, I have an alpha value that I'd like to convert to a plain number (0.xx) even if it is given as a percentage (xx%). I've found the percentage() function to convert a number to a percentage, but percentage(xx%) returns "xx00%" and dividing by 100 makes 0.xx into 0.00xx, which is no good either. All the "if-then" statements that I could find in LESS invlove making a new scope, so while I could detect the "%", I couldn't pass that information back into a variable to use it. How

Why does module parse failed: /xxx/MyFont.ttf Unexpected character ''

北城以北 提交于 2019-12-11 02:27:38
问题 I encountered this error ERROR in ./src/style/MyFont.ttf Module parse failed: /xxx/MyFont.ttf Unexpected character '' (1:0) You may need an appropriate loader to handle this file type. (Source code omitted for this binary file)` when I import my custom font in my less file like this: @font-face { font-family: "MyFont"; src: url("./MyFont.ttf") format("truetype"); } my webpack config is as follow: rules: [ { test: /\.jsx?$/, exclude: /node_modules/, loader: 'babel-loader', query: babelQuery },

LESS 1.3.3, watch mode hogging a lot of CPU in espresso editor

怎甘沉沦 提交于 2019-12-11 02:22:25
问题 I was using an older version of less (1.2.1) by accident and when I updated the .js to the most recent version (1.3.3) it seems that Espresso, my html/css editor, now takes 40% cpu and up to 90% when in development/watch mode. I've tried other versions and it seems like it happens with 1.3.1+. I've tried different variations of the watch mode and even disabling it completely and it's still using 40-50% cpu. I basically can't work with it now. edit: It seems like it's mostly being caused by

How do you make a LESS mixin for gradients with a variable number of stops?

走远了吗. 提交于 2019-12-11 01:29:41
问题 All of the Less mixins I have found for gradients have only a fixed number of stops. The clash between less and css in the use f the comma makes variable stops impossible to do in the same way. Current mixin that I use for 2 way gradients .gradient (@origin: left, @step-1: @white, @step-2: @black, @fallback: @step-1){ background-color: @fallback; background: -webkit-linear-gradient(@origin, @step-1, @step-2) @fallback no-repeat; background: -moz-linear-gradient(@origin, @step-1, @step-2)