Skip to content

Commit

Permalink
Style aside border and section divider
Browse files Browse the repository at this point in the history
  • Loading branch information
danon committed Dec 5, 2024
1 parent 5e2618f commit 3972daa
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 11 deletions.
13 changes: 13 additions & 0 deletions resources/feature/lookAndFeel/lookAndFeel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
$body-background: (light: #f0f2f5, dark: #121314);
$post-background-body: (light: white, dark: #181a1b);
$post-background-header: (light: none, dark: none);
$section-heading-divider-color: (light: #e9ecef, dark: #2a2e30);

$post-radius: 8px;
$forum-aside-radius: 8px;
Expand All @@ -12,12 +13,14 @@ $forum-aside-radius: 8px;
@include theme.var(--body-background, $body-background);
@include theme.var(--post-background-body, $post-background-body);
@include theme.var(--post-background-header, $post-background-header);
@include theme.var(--section-heading-divider-color, $section-heading-divider-color);
}

.look-and-feel-legacy {
@include theme.var(--body-background, (light: #fafafa, dark: #252525));
@include theme.var(--post-background-body, (light: white, dark: rgb(26, 26, 26)));
@include theme.var(--post-background-header, (light: rgba(51, 51, 51, 0.03), dark: rgba(255, 255, 255, 0.03)));
@include theme.var(--section-heading-divider-color, (light: #dee2e6, dark: #2f2f2f));
}

@include theme.both {
Expand All @@ -38,7 +41,17 @@ $forum-aside-radius: 8px;
background: var(--body-background);
padding: 24px;
border-radius: $forum-aside-radius;
border: 1px solid var(--section-heading-divider-color);

@include size.size(xl) {
padding: 0;
border: none;
}
}

@include theme.both {
.neon-section-heading {
border-bottom-width: 2px;
border-bottom-color: var(--section-heading-divider-color) !important; // !important for h4.section
}
}
6 changes: 0 additions & 6 deletions resources/sass/core/_dark_topic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -362,12 +362,6 @@ body.theme-dark {
}

aside {
&#sidebar {
border-color: #789b17;
border-width: 1px;
box-shadow: none;
}

.btn.btn-secondary.btn-sm {
border: 1px solid #404040;

Expand Down
1 change: 0 additions & 1 deletion resources/sass/pages/_forum.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
z-index: 101;
font-size: .9em;
right: 25%;
border: 2px solid $card-border-color;
padding: 6px 10px;
width: 45%; // na urzadzeniach mobilnych rozszerzamy to okno aby cokolwiek bylo tam widac
top: 48px !important; // funkcja sticky-aside zmieni {top}, myśląc że element jest sticky
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/viewers.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="box">
<h4 class="heading {{ isHomepageModern ? 'mb-3 py-0' }}">
<h4 class="heading {{ isHomepageModern ? 'mb-3 py-0' }} neon-section-heading">
{% if iconVisible %}
{% if local %}
{{ icon('viewersOnlineLocal') }}
Expand Down
2 changes: 1 addition & 1 deletion resources/views/forum/home.twig
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
{% block side_menu %}
{% include 'forum.partials.post_count' %}
<div class="box mb-5">
<h4 class="heading">
<h4 class="heading neon-section-heading">
{{ icon('forumActions') }}
Akcje
</h4>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/forum/topic.twig
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@
{% block side_menu %}
<div id="js-sidebar" class="box mb-5" v-cloak>
<div class="box">
<h4 class="heading">
<h4 class="heading neon-section-heading">
{{ icon('forumActions') }}
Akcje
</h4>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/microblog/aside.twig
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

{% if tags.tech is not empty %}
<div class="box mt-2">
<h4 class="heading">
<h4 class="heading neon-section-heading">
{{ icon('tagsPopularLanguage') }}
Technologie
</h4>
Expand Down

0 comments on commit 3972daa

Please sign in to comment.