Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Themes #1

Closed
wwebfor opened this issue Jan 21, 2014 · 4 comments
Closed

Themes #1

wwebfor opened this issue Jan 21, 2014 · 4 comments

Comments

@wwebfor
Copy link
Member

wwebfor commented Jan 21, 2014

No description provided.

@afknapping
Copy link
Contributor

Proposal:

  1. Add sematic classes to all markup elements. (but do not use for styling yet, keeping representational and library classes in markup).
  2. Move styles within stylesheets to the semantic classes (via mixins or preferably @extends).
  3. In case of integration/acceptance tests, update them to the semantic classes.
  4. Remove representational and library classes from the markup.

The look of the page should not change at all during these steps. Might be a use case for PhantomCSS.

When finished, the semantic classes can be used as an API for custom CSS styling.


Notes on the CSS classes:

I have been playing with stuff based on Simple Naming for Modular CSS Class Names and settled on giving most elements a three point identifier like view--component--element.

While using double dashes raises eyebrows at first, these classes have not only been a breeze to style, but also to write tests for.

I'll try to send a PR for step one.

@afknapping
Copy link
Contributor

@wwebfor How do I start the app locally? grunt serve outputs this:

@wwebfor
Copy link
Member Author

wwebfor commented Apr 13, 2014

@filtercake, you should compile less file with grunt task: grunt lessc

afknapping pushed a commit to afknapping/laverna that referenced this issue Apr 13, 2014
afknapping pushed a commit to afknapping/laverna that referenced this issue Apr 13, 2014
afknapping pushed a commit to afknapping/laverna that referenced this issue Apr 16, 2014
afknapping pushed a commit to afknapping/laverna that referenced this issue Apr 16, 2014
afknapping pushed a commit to afknapping/laverna that referenced this issue Apr 16, 2014
- failed screenshots folder is in base directory. that way a git status will output a list with failed test diff images
afknapping pushed a commit to afknapping/laverna that referenced this issue Apr 16, 2014
- without any more setup, fail screenshots need to be manually removed from failure/ and test/visual/screenshots
- an automated setup in grunt should clean up failures when tests are back to  green.
- a watch task for the failures folder could open an interface where you approve a failed test image as still passing or mark a new master (which should trigger the tests again). see csscritic.
afknapping pushed a commit to afknapping/laverna that referenced this issue Apr 16, 2014
- screenshot folder is now ignored by git
- failures folder moved to test directory and is not ignored.
- that way failed tests show up as untracked files in git status.
afknapping pushed a commit to afknapping/laverna that referenced this issue Apr 16, 2014
afknapping pushed a commit to afknapping/laverna that referenced this issue Apr 18, 2014
afknapping pushed a commit to afknapping/laverna that referenced this issue Apr 18, 2014
afknapping pushed a commit to afknapping/laverna that referenced this issue Apr 18, 2014
- failed screenshots folder is in base directory. that way a git status will output a list with failed test diff images
afknapping pushed a commit to afknapping/laverna that referenced this issue Apr 18, 2014
- without any more setup, fail screenshots need to be manually removed from failure/ and test/visual/screenshots
- an automated setup in grunt should clean up failures when tests are back to  green.
- a watch task for the failures folder could open an interface where you approve a failed test image as still passing or mark a new master (which should trigger the tests again). see csscritic.
afknapping pushed a commit to afknapping/laverna that referenced this issue Apr 18, 2014
- screenshot folder is now ignored by git
- failures folder moved to test directory and is not ignored.
- that way failed tests show up as untracked files in git status.
afknapping pushed a commit to afknapping/laverna that referenced this issue Apr 18, 2014
afknapping pushed a commit to afknapping/laverna that referenced this issue Apr 18, 2014
afknapping pushed a commit to afknapping/laverna that referenced this issue Apr 18, 2014
afknapping pushed a commit to afknapping/laverna that referenced this issue Apr 18, 2014
afknapping pushed a commit to afknapping/laverna that referenced this issue Apr 18, 2014
afknapping pushed a commit to afknapping/laverna that referenced this issue Apr 18, 2014
afknapping pushed a commit to afknapping/laverna that referenced this issue Apr 18, 2014
afknapping pushed a commit to afknapping/laverna that referenced this issue Apr 18, 2014
wwebfor added a commit that referenced this issue Apr 19, 2014
remove sourcemaps from git. #1
afknapping pushed a commit to afknapping/laverna that referenced this issue May 4, 2014
afknapping pushed a commit to afknapping/laverna that referenced this issue May 4, 2014
afknapping pushed a commit to afknapping/laverna that referenced this issue May 4, 2014
afknapping pushed a commit to afknapping/laverna that referenced this issue May 4, 2014
afknapping pushed a commit to afknapping/laverna that referenced this issue May 4, 2014
afknapping pushed a commit to afknapping/laverna that referenced this issue May 4, 2014
wwwredfish pushed a commit that referenced this issue Aug 5, 2014
@tovletoglou
Copy link

Related issues:
#226 Request: Night mode
#421 Dark theme

wwebfor added a commit that referenced this issue Oct 19, 2017
Close #1, #421, #656, #764. Related issue: #825, #226.
@wwebfor wwebfor closed this as completed Dec 26, 2017
4lch4 pushed a commit to 4lch4/laverna that referenced this issue Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants