forked from discourse/discourse-air
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work with new theme version, couple more fixes
1 parent
37c9079
commit 95b06f3
Showing
1 changed file
with
34 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,42 @@ | ||
.mobile-view { | ||
.subcategory-list { | ||
// Remove background | ||
.categories-list .list-controls { | ||
background: none; | ||
padding: 0; | ||
border-radius: 0; | ||
} | ||
|
||
// Add a background to this | ||
.subcategory-list .parent-category { | ||
display: inline-block; | ||
padding: 6px 12px; | ||
background-color: var(--secondary); | ||
border-radius: 0.5em; | ||
} | ||
|
||
.category-list-item.category { | ||
// Style fixes | ||
border-top: 0 !important; | ||
border-bottom: 0 !important; | ||
outline: 1px solid var(--secondary); | ||
|
||
.parent-category { | ||
display: inline-block; | ||
padding: 6px 12px; | ||
background-color: var(--secondary); | ||
border-radius: 0.5em; | ||
// Missing from category page | ||
// Discourse mobile/topic-list.scss scopes these under .categories-list .category-list | ||
tbody { | ||
border-top: none; | ||
} | ||
|
||
.category-list-item { | ||
background-color: var(--secondary); | ||
border-top: 0 !important; | ||
border-bottom: 0 !important; | ||
outline: 1px solid var(--secondary); | ||
border-radius: 12px; | ||
th { | ||
padding: 10px 0 0; | ||
} | ||
|
||
td { | ||
padding: 12px 5px; | ||
color: var(--primary-med-or-secondary-high); | ||
} | ||
|
||
td:first-of-type { | ||
padding-left: 10px; | ||
} | ||
} | ||
} |