Comments (7)
Instead of vertically aligning with flexbox, you could try aligning them by setting display: inline-block
and vertical-align: middle
for both elements
from pup-legacy.
Hmm... seems to work, but I think vertical-align: baseline
lines up a little better.
Baseline
Middle
However, is this starting to get very specific to .dot
?
Should we consider:
<span class="dot">
<span class="dot__label">Blue: </span>
<span class="dot__icon"></span>
</span>
Or just a more... robust .dot
component?
from pup-legacy.
Also, baseline
really only works for .dot--small
just a normal dot kind of sucks and doesn't line up right... maybe we should drop .dot--small
and make that the default/only size?
from pup-legacy.
@restlessbit what do you think about separating .inline-center
and .dot
. It doesn't seem like I can get exactly what I want... unless we add an .inline-baseline
helper as well... which seems weird.
Does it make sense to have a component structure like I suggested with having the label be a part of .dot
?
from pup-legacy.
Having a block of text with inline-center
and applying that to the block looks good to me:
from pup-legacy.
idk, the dot looks too high to me.
Looking at it in this context:
Baseline
Middle
Middle just... looks off to me
from pup-legacy.
i think both are fine tbh 😺
from pup-legacy.
Related Issues (14)
- Add Jenkinsfile
- Add boot icon
- Change activity indicator icon from green to blue
- Add industry icon
- Add card component
- Add banner component
- Fix scolling momentum for app-container and aside layout HOT 1
- Make modals more mobile friendly
- Whoops HOT 1
- Use node v6.9.0
- Fix line-breaks in preserve-whitespace helper
- Add missing styles HOT 1
- Remove max width from page-header
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pup-legacy.