Editorially Application Styleguide
This is the styleguide for the application portion of Editorially, hopefully it will get the marketing site styles added on to it quickly. I am using as much as I can some base layout things from the application itself and will be using all the application CSS to create the modules, buttons, etc that are currently in the code. The hope is that if styles are old or not in use, we will find them and be able to delete them as we go through this as a team.
Layout styles for the app are contained in two places, dashboard.scss and editor.scss (and the files it includes). I'm using the basic dashboard.scss layout for this page.
We are using Sass and Compass throughout the CSS, so where applicable this guide shows the variables or mixins.
NOTE: there are some inline styles being used here, this is just to make things layout and visible, such as div sizing for the color blocks. In production we would obviously not do this. In addition - we need to start using Sass more, for variables and other features to make the CSS a bit leaner.
List of styles I can't see where they are used
- .help-tips
- .scrolltest
- .sect-account (SR - I think these are from the old account modal in dashboard.scss)
- The portion in editor.scss where it is all the margin-bottoms and min-heights
- Are we using rounded icons? There are styles but not sure if I've seen any in the app.
Color palette used
This is all inline. TODO: Make all these colors variables and grep through the styles to swap them out.
Blue - #3d9ecf - $blue
Dark Gray - #4d4d4d - $dk-gray
Medium Gray - #999 - $med-gray
Light Gray - #e6e6e6 - $lt-gray
Salmon - #e6624e - $salmon
Red - #dd4b39 - $red
Yellow - #eab550 - $yellow
Green - #88b716 - $green
Global Link and Button Styles
Buttons shown as a links, BUT, they can be used with labels and inputs in forms and also button tags, actually that's probably how they SHOULD be used There are examples below for the button and the label/input styles. Any divs with background colors or padding are simply there to be able to see these buttons in the guide.
A note on the above button styles, the .btn-ico style needs to be used in conjunction with a icon style so the icon appears, but you get the drift of sizing and how much padding is added in here. There are small, medium and large styles for this. In addition the small, medium, and large button styles could be used with any of the above, these are all just extensions of the main button style.
Tooltips
Icons
We use Grunt to generate SVG goodness along with all the backups. Below is an example of one such icon and the classes that would go along with it. You can find the icon style sheets in the app code here: app/assets/images/icons/[appropriate-file-name].css
Avatar Sizes
Submenus
Not sure the best way to show these here, since they depend so much on where they are in the app - mostly used for the gear menu and the head in the editor
Modals
The modals use opacity to appear and it's triggered by the overlay being open. Still trying to figure out how to show this in the guide. But for now in the app examples are the new doc modal and the cheat sheet modal.
Form Elements
Note: layout styles in this code are just to make this a bit more legible.
Alerts/Messages in the Editor
Note: layout styles in this code are just to make this a bit more legible.
The above alerts/statuses are used in conjuction with .msg to do inline errors for forms, such as invalid emails, etc.
Doc grid styles
These styles are in the dashboard.scss
Showing one coded example, use inspector to see the classes that change for the different document states.
Doc list view styles
Name | Status | Modified | Owner | Options |
---|---|---|---|---|
Reviewing | You | |||
Draft | You | |||
Final | You | |||
Copyediting | You | |||
Revising | You |
Example of the table with one row to see the code. Use the inspector above to see what changes for the various document states.
Name | Status | Modified | Owner | Options |
---|---|---|---|---|
Reviewing | You |
New Menuz
Size down the screen to see the small screen version
Invitations
Current Invitations
Title of the Document
Invited by John Doe