Ghost/ghost/admin/app
Daniël van der Winden af0338b504
Rewrote the publish modal logic and layout (#20832)
Removed unnecessary code, rewrote it in places where we were repeating
ourselves, and followed the new layout for posts + emails.
2024-08-27 15:22:11 +00:00
..
adapters
authenticators
components Rewrote the publish modal logic and layout (#20832) 2024-08-27 15:22:11 +00:00
controllers Fixed excerpt blur saving non-draft posts 2024-08-19 21:04:15 +01:00
decorators
errors
helpers
initializers
instance-initializers
mixins
models 🐛 Fixed editor unsaved changes modal showing too often (#20787) 2024-08-19 18:03:13 +00:00
modifiers
routes
serializers
services
session-stores
styles Updated the buttons in the publish flow modals (#20831) 2024-08-27 13:06:19 +00:00
templates 🔒 Fixed admin forms defaulting to GET method (#20810) 2024-08-21 15:49:52 -07:00
transforms
transitions
utils Added one-time payments under "payments" for filtering (#20807) 2024-08-22 10:26:46 +00:00
validators
app.js
index.html
README.md
router.js
transitions.js

Ghost Admin App

Ember.js application used as a client-side admin for the Ghost blogging platform. This readme is a work in progress guide aimed at explaining the specific nuances of the Ghost Ember app to contributors whose main focus is on this side of things.

CSS

We use pure CSS, which is pre-processed for backwards compatibility by Myth. We do not follow any strict CSS framework, however our general style is pretty similar to BEM.

Styles are primarily broken up into 4 main categories:

  • Patterns - are base level visual styles for HTML elements (eg. Buttons)
  • Components - are groups of patterns used to create a UI component (eg. Modals)
  • Layouts - are groups of components used to create application screens (eg. Settings)

All of these separate files are subsequently imported and compiled in app.css.

Front End Standards

  • 4 spaces for HTML & CSS indentation. Never tabs.
  • Double quotes only, never single quotes.
  • Use tags and elements appropriate for an HTML5 doctype (including self-closing tags)
  • Adhere to the Recess CSS property order.
  • Always a space after a property's colon (.e.g, display: block; and not display:block;).
  • End all lines with a semi-colon.
  • For multiple, comma-separated selectors, place each selector on its own line.
  • Use js- prefixed classes for JavaScript hooks into the DOM, and never use these in CSS as per Slightly Obtrusive JavaScript
  • Avoid over-nesting CSS. Never nest more than 3 levels deep.
  • Use comments to explain "why" not "what" (Good: This requires a z-index in order to appear above mobile navigation. Bad: This is a thing which is always on top!)