Comments (8)
Using a framework for the sandbox, or the client UI as well?
from uppy.
The important thing here is the client UI. If the sandbox can profit from it - cool, but that's just to polish our work environment
from uppy.
I think we might not need a CSS framework here. It’s a dropzone, modalbox and selects, right? We can borrow pieces from Pure and others, but I’d say we start fresh, try to stay lightweight. I can handle the CSS :)
from uppy.
Okay. Was just making sure you weren't just talking about the sandbox.
I think it'd be best to avoid frameworks for the client UI. Bootstrap is nice for internal projects or quick prototyping, but it's not great for real projects. The client UI shouldn't be too CSS heavy anyway, so I think we'll be fine.
As for standards, here are my usual preferences:
- Alphabetize selectors.
- Alphabetize rules in a selector.
- Style for the mobile breakpoint first, then use (min-width) media queries to get the tablet and desktop breakpoints right.
With SASS, I am fine with one-level deep nesting but don't like nesting with an &
extend operator. For instance, if you were selecting .foo and .foo__bar
/* bad */
.foo {
&__bar {}
}
/* good */
.foo {}
.foo__bar {}
It makes it a lot easier to search for selectors in files and know which selector you're actually working on.
Finally, I'm partial to using a syntax called SUIT CSS that is based off BEM. It capitalizes each word in a selector and uses dashes '-' instead of underscores '__' for children. So:
.Transloadit-UploadField
vs.
.transloadit__upload-field
from uppy.
Sounds good. I added Skeleton to the sandbox but that has no meaning beyond a bit of polish for our day-to-day work. Feel free to rip it out as well.
@hedgerh Please cement those guidelines in a CONTRIBUTING.md
. Afterwards @arturi and us can comment on it or change what we don't like.
If you all +1 we can close this
from uppy.
Wow, this is just perfect. Everything I would have said over the next few weeks probably. @hedgerh, 👍
Also, this is worth looking through, Medium CSS guidelines: https://gist.github.com/fat/a47b882eb5f84293c4ed
from uppy.
@arturi: YES! :D 👍 I'll take a look at the Medium guidelines.
from uppy.
With #17 merged let's close this one 👍
from uppy.
Related Issues (20)
- CDN urls are all broken, so the getting started guides dont work anymore HOT 1
- cannot engage S3 accelerated endpoints due to AWS SDK API changes? HOT 13
- Undefined "uploadRemoteFile" when using RemoteSources HOT 1
- Upgrade `tus-js-client` HOT 4
- Uppy stuck in "Encoding..." state with error `[Transloadit] Couldn’t find the file, it was likely removed in the process` HOT 5
- Expose type PreactRender in @uppy/dashboard HOT 1
- STS client side signing with accelerated endpoint HOT 2
- pCloud support? HOT 1
- Upgrading today from `"@sveltejs/kit": "1.30.0"` to `"@sveltejs/kit": "2.0.0"` I'm getting a warning HOT 1
- Events don't fire with Dashboard in @uppy/react HOT 1
- requiredMetaFields type not exist in restrictions HOT 1
- Dashboard: possibility to directly open input file dialog instead of toggleAddFilesPanel from content bar add more button HOT 1
- Dashboard: remove button is not displayed on file when upload fails using XHR
- Custom form data send form data? HOT 2
- Module augmentation for custum type UppyFile HOT 1
- Error: tus: invalid or missing Location header, originated from request HOT 2
- Uploading restarts for large files on uploading via cloud storage ( Drive | Dropbox ) through Transloadit Companion HOT 9
- AWS-S3 single-part drag-drop uploads do not set the content-type header in S3 PUT calls for .mov files on chromium
- Google Drive remote source does not chunkify the request for Tus server HOT 4
- Update compressorjs to 1.2.1
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 uppy.