Skip to content

Commit

Permalink
Migration (#98)
Browse files Browse the repository at this point in the history
* Add Alto theme

* Remove unnecessary specificity from link hover selector

* Add Dope theme

* Refine Dope theme

* Remove unnecessary selectors from dark mode styles

* Add Ruby theme

* Add branding+navigation header style

* Post/page template cleanup for Ruby theme

* Remove jQuery dependency from Ruby

* Photoswipe for Ruby

* package.json cleanup

* Add Ease theme

* Ease theme cleanup

* Add Edge theme

* Add callback to pagination script

* Rebuild assets

* Refresh Wave

* Wave theme pagination

* Remove unused settings

* Add tag/author pages to Wave

* Remove unnecessary dependencies

* Post meta spacing

* Dawn theme

* Edition theme

* Cleanup body class

* Lint

* More cleanup

* London theme

* Ease theme search cleanup

* Minor bug fixes

* Remove jQuery dependency from the custom search script

* Put back commented functions

* Update posts per page to make it consistent with homepage section posts

* Alto theme update

* Rebuild assets

* Remove unused theme setting

* Unnecessary rule

* Start adding search support

* Search support to more themes

* Remove starter

* Add Alto theme workflow
  • Loading branch information
minimaluminium authored Jul 12, 2022
0 parents commit 6350a2d
Show file tree
Hide file tree
Showing 53 changed files with 1,013 additions and 0 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2013-2022 Ghost Foundation

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
40 changes: 40 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Ruby

A multi-column theme with a unique card layout. Share your posts with contemporary style. Completely free and fully responsive, released under the MIT license.

**Demo: https://ruby.ghost.io**

 

# Instructions

1. [Download this theme](https://github.com/TryGhost/Ruby/archive/main.zip)
2. Log into Ghost, and go to the `Design` settings area to upload the zip file

# Development

Styles are compiled using Gulp/PostCSS to polyfill future CSS spec. You'll need [Node](https://nodejs.org/), [Yarn](https://yarnpkg.com/) and [Gulp](https://gulpjs.com) installed globally. After that, from the theme's root directory:

```bash
# Install
yarn

# Run build & watch for changes
$ yarn dev
```

Now you can edit `/assets/css/` files, which will be compiled to `/assets/built/` automatically.

The `zip` Gulp task packages the theme files into `dist/<theme-name>.zip`, which you can then upload to your site.

```bash
yarn zip
```

# PostCSS Features Used

- Autoprefixer - Don't worry about writing browser prefixes of any kind, it's all done automatically with support for the latest 2 major versions of every browser.

# Copyright & License

Copyright (c) 2013-2022 Ghost Foundation - Released under the [MIT license](LICENSE).
2 changes: 2 additions & 0 deletions assets/built/main.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/built/main.min.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions assets/built/screen.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/built/screen.css.map

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions assets/css/blog/article.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
.gh-article {
margin-top: 64px;
}

.gh-article-meta {
margin-bottom: 12px;
font-size: 1.2rem;
font-weight: 700;
color: var(--secondary-text-color);
text-transform: uppercase;
}

.gh-article-tag {
color: var(--tag-color, var(--ghost-accent-color));
}

.gh-article-title {
font-size: 3rem;
line-height: 1.4;
letter-spacing: -0.03em;
}

.gh-article-excerpt {
font-size: 2rem;
}

.gh-article-image {
grid-column: main-start / main-end;
}
7 changes: 7 additions & 0 deletions assets/css/blog/author.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.author-image-placeholder {
flex-shrink: 0;
width: 56px;
height: 56px;
overflow: hidden;
border-radius: 50%;
}
3 changes: 3 additions & 0 deletions assets/css/blog/comment.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.comment-container {
margin-top: 80px;
}
71 changes: 71 additions & 0 deletions assets/css/blog/featured.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
.post-feed .featured {
position: relative;
min-height: 380px;
}

.post-feed .featured .post-link::before {
position: absolute;
inset: 0;
z-index: 10;
content: "";
background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.post-feed .featured.no-image .post-link::before {
background: var(--tag-color, var(--ghost-accent-color));
}

.post-feed .featured .post-media {
background-color: transparent;
}

.post-feed .featured > .post-image {
z-index: -1;
}

.post-feed .featured .post-media .post-image {
display: none;
}

.post-feed .featured .u-placeholder,
.post-feed .featured .post-wrapper,
.post-feed .featured .post-footer {
position: relative;
z-index: 20;
background-color: transparent;
}

.post-feed .featured .post-wrapper {
display: flex;
align-items: flex-end;
}

.post-feed .featured .post-header {
margin-bottom: 0;
}

.post-feed .featured .post-tag {
color: var(--white-color);
}

.post-feed .featured .post-title {
font-size: 2rem;
}

.post-feed .featured .post-title,
.post-feed .featured .post-excerpt,
.post-feed .featured .post-more {
color: var(--white-color);
}

.post-feed .featured .post-excerpt {
display: none;
}

.post-feed .featured .post-footer {
border-color: rgba(255, 255, 255, 0.2);
}

.post-feed .featured .post-author-image {
border-color: transparent;
}
61 changes: 61 additions & 0 deletions assets/css/blog/navigation.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
.navigation {
display: flex;
margin-top: 64px;
}

.navigation-item {
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
width: 50%;
}

.navigation-item:hover {
opacity: 1;
}

.navigation-previous {
margin-right: 16px;
}

.navigation-next {
align-items: flex-end;
margin-left: auto;
text-align: right;
}

.navigation-label {
position: relative;
z-index: 2;
font-size: 11px;
font-weight: 700;
color: var(--secondary-text-color);
text-transform: uppercase;
}

.navigation-title {
position: relative;
z-index: 2;
margin: 8px 0 0;
font-size: 2rem;
line-height: 1.4;
}

.navigation-item:hover .navigation-title {
opacity: 0.8;
}

@media (max-width: 767px) {
.navigation {
display: block;
}

.navigation-item {
width: 100%;
}

.navigation-next {
margin-top: 8px;
}
}
133 changes: 133 additions & 0 deletions assets/css/blog/post.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
.post-feed {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 32px;
}

.post-link {
display: flex;
flex-direction: column;
height: 100%;
}

.post-link:hover {
opacity: 1;
}

.post-image {
width: 100%;
}

.post-wrapper {
flex-grow: 1;
padding: 20px;
background-color: var(--white-color);
}

.post-tag {
display: inline-block;
margin-bottom: 8px;
font-size: 1.1rem;
font-weight: 700;
line-height: 1;
color: var(--tag-color, var(--ghost-accent-color));
text-transform: uppercase;
letter-spacing: 0.005em;
}

.post-title {
margin-bottom: 0;
font-size: 1.6rem;
line-height: 1.35;
}

.has-serif-title .post-title {
font-family: var(--font-serif);
}

.post-excerpt {
margin-top: 12px;
font-size: 1.4rem;
line-height: 1.6;
}

.has-serif-body .post-excerpt {
font-family: var(--font-serif);
}

.post-footer {
display: flex;
align-items: center;
justify-content: space-between;
height: 42px;
padding: 0 20px;
background-color: var(--white-color);
border-top: 1px solid var(--light-gray-color);
}

.post-more {
font-size: 1.1rem;
font-weight: 700;
line-height: 1;
text-transform: uppercase;
letter-spacing: 0.005em;
}

.post-author {
display: flex;
margin-right: 2px;
}

.post-author-link {
position: relative;
display: block;
width: 28px;
height: 28px;
margin: 0 -4px;
}

.post-author-link:first-child {
z-index: 10;
}

.post-author-link:nth-child(2) {
z-index: 9;
}

.post-author-link:nth-child(3) {
z-index: 8;
}

.post-author-link:nth-child(4) {
z-index: 7;
}

.post-author-link:nth-child(5) {
z-index: 6;
}

.post-author-image {
width: 100%;
height: 100%;
border: 2px solid var(--white-color);
border-radius: 50%;
object-fit: cover;
}

@media (max-width: 767px) {
.post-feed {
grid-template-columns: 1fr;
}
}

@media (min-width: 768px) and (max-width: 991px) {
.post-feed {
grid-template-columns: repeat(2, 1fr);
}
}

@media (min-width: 992px) and (max-width: 1199px) {
.post-feed {
grid-template-columns: repeat(3, 1fr);
}
}
14 changes: 14 additions & 0 deletions assets/css/blog/related.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.related-wrapper {
padding-top: 48px;
padding-bottom: 64px;
margin-top: 96px;
background-color: var(--light-gray-color);
}

.related-title {
margin: 20px 0 40px;
font-size: 14px;
color: var(--secondary-text-color);
text-transform: uppercase;
letter-spacing: 1px;
}
Loading

0 comments on commit 6350a2d

Please sign in to comment.