Skip to content

Commit

Permalink
Space above h1/etc
Browse files Browse the repository at this point in the history
  • Loading branch information
michaliskambi committed Oct 31, 2024
1 parent b738210 commit ad05a3a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions htdocs/castle-engine-website-base/castle-engine.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,18 @@ a.btn:focus,
margin-bottom: 0;
}

/* Margin from h1 to above content, like .book-header, see .../navigation */
h1 {
margin-top: 0.25em;
/* Non-zero margin from h1/etc. to the content above.
Reboot used in Bootstrap 5 sets this to zero, and relies on other things
having bottom margin to distance themselves from h1/etc.
but it's not nice for us, reasons:
- we want space between .book-header, see .../navigation
- we want space between h1/etc. sections and image/video above,
see .../physics, .../viewport_3d
- we want space between h1/etc. sections and tables above,
see https://castle-engine.io/apidoc/html/CastleControl.TCastleControl.html
*/
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
margin-top: .5rem;
}

/* all images, movies responsive */
Expand Down
2 changes: 1 addition & 1 deletion htdocs/castle_engine_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function castle_detect_environment()
define('CGE_LATEST_DOWNLOAD', 'https://github.com/castle-engine/castle-engine/archive/snapshot.zip');

// bump this each time you change castle-engine.css, to work with CloudFlare caching (or you can purge CloudFlare cache manually)
define('CASTLE_ENGINE_CSS_VERSION', 49);
define('CASTLE_ENGINE_CSS_VERSION', 50);

define('TWITTER_HANDLE', 'castleengine'); // https://twitter.com/castleengine/

Expand Down

0 comments on commit ad05a3a

Please sign in to comment.