Compare commits
19 Commits
main
...
35472f114c
Author | SHA1 | Date | |
---|---|---|---|
35472f114c | |||
b0be1aeee8 | |||
b27e1ccf3b | |||
c863a3c9a1 | |||
f18c70d867 | |||
b2cc4a2ae9 | |||
50b9a0ca14 | |||
1c17f3b507 | |||
f75fbd72e5 | |||
c8fd61c67b | |||
0b9ae900e3 | |||
d39e74ca58 | |||
e347ce42e4 | |||
47b081d2a9 | |||
f715c54b8b | |||
910f435080 | |||
ce2e975d10 | |||
a8bb351e2f | |||
98be4851e7 |
29
about.json
29
about.json
@@ -1,36 +1,31 @@
|
||||
{
|
||||
"name": "Air Theme",
|
||||
"name": "OrcasHub Theme",
|
||||
"about_url": null,
|
||||
"license_url": null,
|
||||
"components": [
|
||||
"https://github.com/jordanvidrine/discourse-category-group-boxes.git",
|
||||
"https://github.com/discourse/discourse-clickable-topic.git",
|
||||
"https://github.com/discourse/discourse-search-banner.git"
|
||||
"https://github.com/discourse/discourse-custom-header-links.git",
|
||||
"https://github.com/discourse/discourse-user-card-directory.git",
|
||||
"https://github.com/discourse/DiscoTOC.git",
|
||||
"https://github.com/paviliondev/discourse-tc-topic-list-previews.git",
|
||||
"https://github.com/discourse/Discourse-easy-footer.git"
|
||||
],
|
||||
"assets": {
|
||||
"OrcasHub-Top-Logo": "assets/OrcasHub-Top-Logo.png"
|
||||
},
|
||||
"modifiers": {
|
||||
"serialize_topic_excerpts": true
|
||||
},
|
||||
"color_schemes": {
|
||||
"air-light": {
|
||||
"OrcasHub": {
|
||||
"primary": "1c1c1c",
|
||||
"secondary": "f9fcff",
|
||||
"tertiary": "3877e5",
|
||||
"quaternary": "7e8b93",
|
||||
"header_background": "f9fcff",
|
||||
"header_primary": "122b43",
|
||||
"highlight": "e6cb37",
|
||||
"danger": "d05454",
|
||||
"success": "71bd9f",
|
||||
"love": "c16ad7"
|
||||
},
|
||||
"air-dark": {
|
||||
"primary": "e0e0e0",
|
||||
"secondary": "2d2d2d",
|
||||
"tertiary": "9a5cfd",
|
||||
"quaternary": "71bd9f",
|
||||
"header_background": "202020",
|
||||
"header_background": "374151",
|
||||
"header_primary": "e0e0e0",
|
||||
"highlight": "9a5cfd",
|
||||
"highlight": "e6cb37",
|
||||
"danger": "d05454",
|
||||
"success": "71bd9f",
|
||||
"love": "c16ad7"
|
||||
|
BIN
assets/OrcasHub-Top-Logo.png
Normal file
BIN
assets/OrcasHub-Top-Logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
9
common/after_header.html
Executable file
9
common/after_header.html
Executable file
@@ -0,0 +1,9 @@
|
||||
<div id="login-message">
|
||||
<h2>
|
||||
There are a lot more discussions going on if you log in!
|
||||
</h2>
|
||||
|
||||
<button class="widget-button btn btn-primary btn-small sign-up-button btn-text">
|
||||
<span class="d-button-label">Log in or Sign Up</span>
|
||||
</button>
|
||||
</div>
|
@@ -1,3 +1,42 @@
|
||||
// Login CTA
|
||||
#login-message {
|
||||
display: none;
|
||||
}
|
||||
|
||||
html.anon {
|
||||
body:not(.category-resources) {
|
||||
// Display this message on all pages except in Community Resources
|
||||
#login-message {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Login form
|
||||
.login-right-side {
|
||||
display: none;
|
||||
}
|
||||
|
||||
// Header image above nav bar
|
||||
.outer {
|
||||
padding-top: 1.5rem;
|
||||
padding-bottom: 1.5rem;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
background-color: var(--header_background);
|
||||
}
|
||||
|
||||
.top-header-image {
|
||||
background-image: url($OrcasHub-Top-Logo);
|
||||
}
|
||||
|
||||
// Hide the default logo in the header bar
|
||||
.home-logo-wrapper-outlet {
|
||||
display: none;
|
||||
}
|
||||
|
||||
// custom search banner customizations
|
||||
.custom-search-banner-wrap {
|
||||
margin: 0 auto !important;
|
||||
@@ -137,6 +176,14 @@
|
||||
margin-right: 0px;
|
||||
}
|
||||
|
||||
.custom-category-boxes {
|
||||
.category-logo {
|
||||
height: 100px !important;
|
||||
width: 100px !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#site-text-logo {
|
||||
color: var(--primary);
|
||||
}
|
||||
@@ -216,7 +263,7 @@ div.ac-wrap {
|
||||
|
||||
.btn:not(.themes-tab):not(.components-tab),
|
||||
.select-kit.dropdown-select-box .dropdown-select-box-header {
|
||||
border-radius: 8px;
|
||||
border-radius: .375rem;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
@@ -255,26 +302,13 @@ html {
|
||||
),
|
||||
linear-gradient(0deg, var(--secondary) 100%, var(--secondary) 100%);
|
||||
}
|
||||
.background-container {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100vh;
|
||||
width: 100vw;
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
var(--tertiary-hover) 0%,
|
||||
var(--tertiary) 100%
|
||||
);
|
||||
clip-path: ellipse(148% 70% at 91% -14%);
|
||||
}
|
||||
}
|
||||
|
||||
html body #main-outlet {
|
||||
margin-top: 30px;
|
||||
margin-bottom: 50px;
|
||||
background: var(--secondary);
|
||||
border-radius: 1em;
|
||||
border-radius: .5rem;
|
||||
padding: 3em 3em 5%;
|
||||
max-width: 1150px;
|
||||
.archetype-regular & {
|
||||
@@ -299,6 +333,27 @@ html body #main-outlet {
|
||||
border-radius: 0.5em;
|
||||
}
|
||||
|
||||
// User Card (profile)
|
||||
|
||||
.user-card .badge-section {
|
||||
display: none;
|
||||
}
|
||||
|
||||
// Category List
|
||||
|
||||
.custom-category-boxes-container {
|
||||
.custom-category-boxes {
|
||||
.category-box {
|
||||
border-radius: .5rem !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Hide the "about this category" heading
|
||||
.category-heading {
|
||||
display: none;
|
||||
}
|
||||
|
||||
// Topic List
|
||||
|
||||
@keyframes background-fade-highlight {
|
||||
@@ -349,7 +404,7 @@ html body #main-outlet {
|
||||
margin-bottom: 0.5em;
|
||||
background-color: var(--secondary);
|
||||
border: 1px solid rgba(var(--primary-rgb), 0.2);
|
||||
border-radius: 1em;
|
||||
border-radius: .5rem;
|
||||
position: relative;
|
||||
transition: box-shadow 100ms ease-in-out;
|
||||
box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.05);
|
||||
@@ -454,7 +509,7 @@ html body #main-outlet {
|
||||
.avatar {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 8px;
|
||||
border-radius: .375rem;
|
||||
}
|
||||
a.latest {
|
||||
.avatar {
|
||||
@@ -496,6 +551,48 @@ html body #main-outlet {
|
||||
margin-top: 2em;
|
||||
}
|
||||
|
||||
.d-icon-lock {
|
||||
display: none;
|
||||
}
|
||||
|
||||
// Community Resources Category
|
||||
.category-resources {
|
||||
// Topic List
|
||||
|
||||
.topic-list-header {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.topic-list-body {
|
||||
.topic-list-data {
|
||||
// Center content in the topic list
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.num.views,
|
||||
.num.posts,
|
||||
.num.activity,
|
||||
.posters,
|
||||
.topic-statuses {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
// Topic Posts
|
||||
|
||||
.topic-map,
|
||||
.topic-avatar,
|
||||
.names.trigger-user-card { // Hide the lock icon in the topic header of the post
|
||||
display: none;
|
||||
}
|
||||
|
||||
.topic-meta-data {
|
||||
display: flex;
|
||||
justify-content: right;
|
||||
}
|
||||
}
|
||||
|
||||
// published page additions
|
||||
.published-page-content-wrapper {
|
||||
max-width: 1000px;
|
||||
@@ -513,9 +610,6 @@ html body #main-outlet {
|
||||
}
|
||||
|
||||
.published-page {
|
||||
.background-container {
|
||||
display: none;
|
||||
}
|
||||
&::before {
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
@@ -558,3 +652,28 @@ html body #main-outlet {
|
||||
.topic-list .main-link.focused {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
// Footer
|
||||
.custom-footer {
|
||||
background-color: #1f2937;
|
||||
|
||||
.list {
|
||||
span {
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
.second-box .links li {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.footer-section-link-wrapper a {
|
||||
color: var(--header_primary);
|
||||
font-size: 1rem;
|
||||
line-height: 1.5rem;
|
||||
|
||||
&:hover {
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1 +1,5 @@
|
||||
<div class="background-container"></div>
|
||||
<div class="outer">
|
||||
<a href="https://orcas.community/">
|
||||
<div class="top-header-image"></div>
|
||||
</a>
|
||||
</div>
|
@@ -1,3 +1,40 @@
|
||||
@import "showcased-categories";
|
||||
@import "chat-desktop";
|
||||
@import "sidebar-desktop";
|
||||
|
||||
.top-header-image {
|
||||
height: 128px;
|
||||
width: 246px;
|
||||
}
|
||||
|
||||
// Header links
|
||||
.custom-header-links {
|
||||
.headerLink a {
|
||||
padding: .5rem .75rem;
|
||||
margin: 0 .1rem;
|
||||
color: var(--header_primary);
|
||||
font-weight: 500;
|
||||
font-size: .9rem;
|
||||
line-height: 1.25rem;
|
||||
|
||||
&:hover {
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
|
||||
li:last-child {
|
||||
a {
|
||||
color: white;
|
||||
background-color: #111827;
|
||||
border-radius: .375rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Footer
|
||||
.custom-footer {
|
||||
.list {
|
||||
margin: 2rem 5em 4rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -7,7 +7,7 @@ export default {
|
||||
initialize() {
|
||||
withPluginApi("0.8.14", (api) => {
|
||||
api.modifyClass("component:edit-category-general", {
|
||||
pluginId: "discourse-air",
|
||||
pluginId: "orcashub-discourse-theme",
|
||||
|
||||
didInsertElement() {
|
||||
this._super(...arguments);
|
||||
|
@@ -2,7 +2,7 @@ import { apiInitializer } from "discourse/lib/api";
|
||||
|
||||
export default apiInitializer("0.8", (api) => {
|
||||
api.modifyClass("component:topic-list-item", {
|
||||
pluginId: "discourse-air",
|
||||
pluginId: "orcashub-discourse-theme",
|
||||
expandPinned: true,
|
||||
});
|
||||
});
|
||||
|
@@ -1,5 +1,11 @@
|
||||
@import "chat-mobile";
|
||||
|
||||
.top-header-image {
|
||||
height: 80px;
|
||||
width: 154px;
|
||||
background-size: 154px 80px;
|
||||
}
|
||||
|
||||
.custom-search-banner-wrap {
|
||||
h1 {
|
||||
font-size: 2.5em !important;
|
||||
@@ -200,3 +206,32 @@ ol.category-breadcrumb {
|
||||
padding-right: 0.25em;
|
||||
}
|
||||
}
|
||||
|
||||
// Footer
|
||||
.custom-footer {
|
||||
.list {
|
||||
margin: 2rem 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Community Resources Category
|
||||
.category-resources {
|
||||
|
||||
// Topic List
|
||||
|
||||
.topic-list-data {
|
||||
.right {
|
||||
margin-left: 0 !important;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
// Topic Post
|
||||
|
||||
.topic-avatar,
|
||||
.topic-meta-data {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "discourse-air",
|
||||
"name": "orcashub-discourse-theme",
|
||||
"version": "1.0.0",
|
||||
"repository": "https://github.com/discourse/discourse-air",
|
||||
"repository": "https://git.grosinger.net/tgrosinger/orcashub-discourse-theme",
|
||||
"author": "Jordan Vidrine",
|
||||
"license": "GPL-2.0-or-later",
|
||||
"devDependencies": {
|
||||
|
@@ -11,7 +11,7 @@
|
||||
.sidebar-wrapper {
|
||||
margin: 30px 0 50px;
|
||||
background-color: var(--secondary);
|
||||
border-radius: 1em;
|
||||
border-radius: .5rem;
|
||||
top: calc(var(--header-offset) + 30px);
|
||||
height: calc(100vh - (var(--header-offset) + 80px));
|
||||
@include box-shadow;
|
||||
|
Reference in New Issue
Block a user