Leta (@_leta09) header
Leta (@_leta09) profile picture

Tech | Code | Software dev Frontend: HTML, CSS, JS, React Backend: Python, SQL

Joined February 2023
Photo by Leta (@_leta09)Photo by Leta (@_leta09)Photo by Leta (@_leta09)Photo by Leta (@_leta09)Photo by Leta (@_leta09)Photo by Leta (@_leta09)Photo by Leta (@_leta09)Photo by Leta (@_leta09)Photo by Leta (@_leta09)Photo by Leta (@_leta09)
Pinned Tweet
6 CSS pseudo-elements every beginner should know 馃憞 ::before ::after ::first-line ::first-letter ::marker ::selection Small selectors, lots of design control. Watch the full breakdown: youtu.be/hP6hoCVOWbs #CSS #WebDevelopment #Frontend
1
2
246
Elephant funny moments 馃ぃ馃ぃ馃ぃ
6
53
3
446
16,712
Leta retweeted
Six CSS pseudo-elements. Six simple ideas. A lot of possibilities. ::before ::after ::first-line ::first-letter ::marker ::selection youtu.be/hP6hoCVOWbs #CSS #Frontend #Coding
1
2
92
Six CSS pseudo-elements. Six simple ideas. A lot of possibilities. ::before ::after ::first-line ::first-letter ::marker ::selection youtu.be/hP6hoCVOWbs #CSS #Frontend #Coding
1
2
92
Sharing is caring, even in the wild.馃馃徎
3
30
1
109
1,969
Leta retweeted
CSS doesn't always need more HTML. Sometimes the cleaner solution is a pseudo-element. Before adding another element to your markup, ask yourself: "Could CSS handle this?" youtu.be/hP6hoCVOWbs #CSS #CleanCode #WebDevelopment
1
1
2
95
CSS doesn't always need more HTML. Sometimes the cleaner solution is a pseudo-element. Before adding another element to your markup, ask yourself: "Could CSS handle this?" youtu.be/hP6hoCVOWbs #CSS #CleanCode #WebDevelopment
1
1
2
95
Leta retweeted
::selection doesn't permanently change your text. It only changes its appearance while the user has selected it. That makes it perfect for small UX/design touches. youtu.be/hP6hoCVOWbs #CSS #UXDesign #WebDev
1
1
82
::selection doesn't permanently change your text. It only changes its appearance while the user has selected it. That makes it perfect for small UX/design touches. youtu.be/hP6hoCVOWbs #CSS #UXDesign #WebDev
1
1
82
light-dark() has worked in every major browser for a couple of years, but is often missed by developers and is a handy CSS function to use. It picks a light or dark color from the page's color-scheme, so a theme toggle only has to flip color-scheme on the root.
3
8
52
2,013
CSS tip: dark mode colors without a single media query. :root { color-scheme: light dark; --bg: light-dark(#fff, #18181b); --text: light-dark(#18181b, #fafafa); } Each property gets a light and a dark value, and the page follows the system theme.
8
15
1
119
8,548
Leta retweeted
One of my favorite things about ::first-line: You don't manually define which words are part of the line. The browser handles it based on the available space. youtu.be/hP6hoCVOWbs #CSS #WebDevelopment #Frontend
1
1
102
One of my favorite things about ::first-line: You don't manually define which words are part of the line. The browser handles it based on the available space. youtu.be/hP6hoCVOWbs #CSS #WebDevelopment #Frontend
1
1
102
Leta retweeted
Here's a useful CSS mental model: ::first-line cares about a line. ::first-letter cares about a letter. The names are almost the documentation. youtu.be/hP6hoCVOWbs #CSS #CodingTips #LearnCSS
1
2
110
Here's a useful CSS mental model: ::first-line cares about a line. ::first-letter cares about a letter. The names are almost the documentation. youtu.be/hP6hoCVOWbs #CSS #CodingTips #LearnCSS
1
2
110
Leta retweeted
A normal paragraph can become: Big first letter. Styled first line. Custom selection colors. All with CSS. No complicated JavaScript required. youtu.be/hP6hoCVOWbs #CSS #WebDesign #FrontendDevelopment
1
1
51
A normal paragraph can become: Big first letter. Styled first line. Custom selection colors. All with CSS. No complicated JavaScript required. youtu.be/hP6hoCVOWbs #CSS #WebDesign #FrontendDevelopment
1
1
51
Leta retweeted
If you're learning CSS, don't try to memorize everything. Build a toolbox. ::before, ::after, ::first-line, ::first-letter, ::marker, and ::selection are six useful tools to add. youtu.be/hP6hoCVOWbs #CSS #LearnToCode #WebDevelopment
1
3
87
If you're learning CSS, don't try to memorize everything. Build a toolbox. ::before, ::after, ::first-line, ::first-letter, ::marker, and ::selection are six useful tools to add. youtu.be/hP6hoCVOWbs #CSS #LearnToCode #WebDevelopment
1
3
87
Definitely the most precious thing all day 馃挅
6
51
2
397
9,591
Leta retweeted
CSS gets more interesting when you stop thinking only about elements. You can target: The first line The first letter The list marker Selected text That's the power of pseudo-elements. youtu.be/hP6hoCVOWbs #CSS #Frontend #Coding
1
1
63