1
1
CSS Selectors (css-tricks.com)
submitted 4 months ago by mac@programming.dev to c/css@programming.dev
2
1

Hi,

No matter what I try


<style>
.FlexColumn {display: flex;flex-flow: column nowrap }
</style>

<div class="FlexColumn">
	<div>X</div>
	<div>X</div>
	<div>X</div>
	<div>X</div>
	<div>X</div>
</div>
<!-- I tried many CSS trick here... -->
<div>
   <span>X</span><br><span>X</span><br><span>X</span><br><span>X</span>
</div>

I always get a vertical gap between the characters !

Any ideas ?

Thanks.

3
1
submitted 4 months ago by trymeout@lemmy.world to c/css@programming.dev

When I use the --sourcemap argument in the CLI to generate the CSS builds with sourcemaps, when the CSS uses @include, it does not update the path and therefore will not work.

In the code below, the builds are stored in the dist directory, while the CSS source code is stored in the src directory.

This is my simple code to reproduce this...

- src/
   - stylesheet.css
- dist
   - my-package.css
   - my-package.css.map
- demo.html
- bundle.css
- package.json

bundle.css

@import 'src/stylesheet.css';

demo.html

<link rel="stylesheet" href="dist/my-package.css">

package.json

{
  "name": "my-package",
  "version": "1.0.0",
  "license": "MIT",
  "scripts": {
   "build": "lightningcss --sourcemap bundle.css -o dist/my-package.css"
  },
  "devDependencies": {
    "lightningcss-cli": "^1.25.1"
  }
}

src/stylesheet.css

body {
	background-color: red;
}

dist/my-package.css output

@import "src/stylesheet.css";

/*# sourceMappingURL=dist/my-package.css.map */

What I expected from the dist/my-package.css output

@import "../src/stylesheet.css";

/*# sourceMappingURL=dist/my-package.css.map */

Does anyone know why this is the outcome? Any help will be most appreciated.

4
1
submitted 5 months ago by tyteen4a03@lemmy.zip to c/css@programming.dev
5
1
6
1
CSS Folding Effect (www.joshwcomeau.com)
7
1
submitted 7 months ago by mac@programming.dev to c/css@programming.dev
8
1
submitted 7 months ago by mac@programming.dev to c/css@programming.dev
9
1
CSS variables (gomakethings.com)
submitted 7 months ago by mac@programming.dev to c/css@programming.dev
10
1
submitted 8 months ago by mac@programming.dev to c/css@programming.dev
11
1
submitted 8 months ago by mac@programming.dev to c/css@programming.dev
12
1
submitted 8 months ago by mac@programming.dev to c/css@programming.dev
13
1
submitted 8 months ago by mac@programming.dev to c/css@programming.dev
14
1
submitted 8 months ago by silas@programming.dev to c/css@programming.dev

Video basically explaining how to use named grid columns to avoid those negative margins for breakout and full-width sections

15
1
submitted 8 months ago* (last edited 8 months ago) by starman@programming.dev to c/css@programming.dev
16
1

cross-posted from: https://programming.dev/post/11085588

We just tagged the first public v4.0.0-alpha so you can start experimenting with it and help us get to a stable release later this year.

17
1
CSS Relative colors (techhub.iodigital.com)
submitted 10 months ago by mac@programming.dev to c/css@programming.dev
18
1
submitted 10 months ago by mac@programming.dev to c/css@programming.dev
19
1
submitted 11 months ago* (last edited 11 months ago) by mac@programming.dev to c/css@programming.dev

^ preview there seems to have not been created well and made the code block with a header a header but correct text is in the article

20
1

cross-posted from: https://programming.dev/post/7667731

Hi,

As CSS do not have a color-overlay[^1] filter.

There is some heavy work around:

https://isotropic.co/tool/hex-color-to-css-filter/

that use a combination of CSS filter to target the desired color...

Those online calculators are neat, but I would like an offline version, in case the provided one become inaccessible.

I've downloaded the zip of https://codepen.io/sosuke/pen/Pjoqqp

But it doesn't work locally.. :/

So I would like to know, if someone know one in 🐍 Python ? or how can I make one then ?

Or if someone know another way to have the color-overlay[^1] effect in html\css, I'm all ears !

Thank.

[^1]: To apply like in Photoshop a color on the shape of the image (so not on the parts that have transparency.

21
1
CSS animation-composition (12daysofweb.dev)
submitted 11 months ago by mac@programming.dev to c/css@programming.dev
22
1
submitted 11 months ago by starman@programming.dev to c/css@programming.dev

cross-posted from: https://programming.dev/post/7555221

There’s nothing like building a major new product for finding all the features you wish you had in your own tools, so we capitalized on that inspiration and turned it into this — Tailwind CSS v3.4.

23
1
CSS Wrapped: 2023 (developer.chrome.com)
submitted 11 months ago by mac@programming.dev to c/css@programming.dev
24
1
submitted 11 months ago by mac@programming.dev to c/css@programming.dev
25
1
submitted 11 months ago by mac@programming.dev to c/css@programming.dev
view more: next ›

CSS

456 readers
7 users here now

founded 1 year ago
MODERATORS