Giter VIP home page Giter VIP logo

bootstrap4-genesis's People

Contributors

dependabot[bot] avatar salcode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

bootstrap4-genesis's Issues

Add styling for code blocks

As you can see in this screenshot, we do not have a background color on code blocks (like we did in Bootstrap 3.x).

screen shot 2019-01-15 at 15 54 53

We should reinstate a background color on code blocks.

It would be nice if the styled code blocks more like this.

Set CHILD_THEME_ values based on style.css header values

Set the CHILD_THEME_ values based on the values defined in the header of style.css

  • CHILD_THEME_NAME used in default footer
  • CHILD_THEME_URL used in default footer
  • CHILD_THEME_VERSION used as ver URL param for style.css when loaded

Related #35

Improve blockquote styles

By default the Bootstrap 4 blockquotes have very minimal styling and blend in with the content.

See Bootstrap 4 Blockquote Documentation

Default Bootstrap 4 Blockquotes

screen shot 2019-01-31 at 11 53 58

Example GitHub Blockquote

Something like this, seems like a small change that would significantly improve the blockquote appearance.

This is a GitHub blockquote

CSS files location

In the original Bootstrap Genesis, the complied CSS files is at css/style.min.css and we use some hooks to load that CSS file instead of the WordPress default for a theme (style.css). This also allows us to skip including a header at the top of the CSS file as is required by WordPress for the theme to load properly.

off-canvas menu

hi, would love to see off-canvas menu implemented
and make the current menu switchable from the admin

thank you!

Eliminate duplicate version and description in package.json

Currently package.json has two version fields and two description fields.

This was originally done with the idea of Bootstrap4 Genesis and the child theme that gets built being separate projects with separate version numbers. However, I think this is confusing and since the whole idea of this project is to use it as a starting point and change everything while making your own theme, I think we should remove these duplications.

package.json excerpt

{
  "name": "bootstrap4-genesis",
  "version": "0.1.0",
  "description": "WordPress Genesis Child Theme using Bootstrap 4",
  "config": {
    "theme": {
      "name": "Bootstrap4 Genesis",
      "uri": "https://github.com/salcode/bootstrap4-genesis",
      "author": "Sal Ferrarello",
      "authoruri": "https://salferrarello.com",
      "description": "WordPress Genesis Child Theme using Bootstrap 4",
      "version": "0.1.0",
...

Wrap code blocks?

In the original bootstrap-genesis a code block with a single long line of text wraps. Currently this project, Bootstrap4 Genesis, creates a scroll bar.

Bootstrap Genesis

Screen Shot 2019-05-02 at 16 17 55

Bootstrap4 Genesis

Screen Shot 2019-05-02 at 16 16 25

Next Step

Do we want to make the code blocks wrap by default here in Bootstrap4 Genesis?

If we want to make this change, it looks like adding

pre code { white-space: pre-wrap; }

will do the trick.

Increase font-size

Currently, the $font-size-base is set to 1rem (the Bootstrap default), which "Assumes the browser default, typically 16px"

I propose increasing this to 1.4rem to make the site more easily readable.

npm run watch

npm ERR! Failed at the [email protected] watch script 'gulp watch'.
npm ERR! This is most likely a problem with the bootstrap4-genesis package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! gulp watch
npm ERR! You can get their info via:
npm ERR! npm owner ls bootstrap4-genesis
npm ERR! There is likely additional logging output above.

Add styling for inline code

I'm not a big fan of the default inline code style in bootstrap.

e.g.

screen shot 2019-01-25 at 16 11 08

I'd prefer it look more like the inline code styling here in GitHub.

Code block for comparison of inline and block styles

Related #19

Add gulp-postcss

Add gulp-autoprefixer gulp-postcss and autoprefixer

This specifically came up because Safari does not support position: sticky without a vendor prefix.

If you use other PostCSS based tools, like cssnano, you may want to run them together using gulp-postcss instead of gulp-autoprefixer. It will be faster, as the CSS is parsed only once for all PostCSS based tools, including Autoprefixer.

source gulp-autoprefixer documentation

Consider moving sass/main.scss to sass/custom.scss

Using custom.scss is more inline with the Bootstrap 4 Documentation.

I think it is also worth considering prepending an underscore (_custom.scss) to differentiate this file as the entry point, since we're currently considering putting all of the custom sass files in /sass instead of burying them down another folder level.

(Alternatively, we could move custom.scss up into the root directory, in which case we may want to rename it style.scss)

Pagination

Here is the recommended Bootstrap4 pagination markup. [source]

<nav aria-label="Page navigation example">
  <ul class="pagination">
    <li class="page-item"><a class="page-link" href="#">Previous</a></li>
    <li class="page-item"><a class="page-link" href="#">1</a></li>
    <li class="page-item"><a class="page-link" href="#">2</a></li>
    <li class="page-item"><a class="page-link" href="#">3</a></li>
    <li class="page-item"><a class="page-link" href="#">Next</a></li>
  </ul>
</nav>

We can't get this exactly, as a first note, the <ul> in Genesis is hardcoded with no capability to modify (i.e. add a pagination class).

We addressed this in Bootstrap Genesis with

.bsg-pagination-numeric ul {
    @extend .pagination;
}

Use the theme version number when loading style.css

Currently, the Genesis version number is being used for the version number (which results in the URL parameter ?ver= having a value based on Genesis and not being updated when a new version of our child theme is pushed live).

Includes folder location

Currently in the original Bootstrap Genesis, we use the /lib directory.

Options:

  • /lib
  • /functions
  • /includes
  • other?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.