Skip to content

Commit

Permalink
Style forum aside column
Browse files Browse the repository at this point in the history
  • Loading branch information
danon committed Dec 5, 2024
1 parent b1be527 commit 871c862
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
12 changes: 10 additions & 2 deletions resources/feature/lookAndFeel/lookAndFeel.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@use "../theme/theme" as theme;
@use "./size" as size;

$body-background: (light: #f0f2f5, dark: #121314);
$post-background-body: (light: white, dark: #181a1b);
Expand All @@ -20,13 +21,20 @@ $post-background-header: (light: none, dark: none);
body {
background: var(--body-background);
}

.neon-post {
background: var(--post-background-body);

.neon-post-header,
.neon-post-footer {
background: var(--post-background-header);
}
}
}

.neon-forum-aside {
background: var(--body-background);
padding: 24px;

@include size.size(xl) {
padding: 0;
}
}
7 changes: 7 additions & 0 deletions resources/feature/lookAndFeel/size.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@import "bootstrap/scss/functions";
@import "bootstrap/scss/variables";
@import "bootstrap/scss/mixins/breakpoints";

@mixin size($size) {
@include media-breakpoint-up($size) {@content}
}
1 change: 0 additions & 1 deletion resources/sass/core/_dark_topic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,6 @@ body.theme-dark {

aside {
&#sidebar {
background-color: #252525;
border-color: #789b17;
border-width: 1px;
box-shadow: none;
Expand Down
2 changes: 0 additions & 2 deletions resources/sass/pages/_forum.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,8 @@
z-index: 101;
font-size: .9em;
right: 25%;
background: #F3F5F0;
border: 2px solid $card-border-color;
padding: 6px 10px;
box-shadow: 5px 5px 6px #AAA;
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/forum/partials/sidebar.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<aside class="sticky-aside" id="sidebar">
<aside class="sticky-aside neon-forum-aside" id="sidebar">
{% block side_menu %}
{% endblock %}

Expand Down

0 comments on commit 871c862

Please sign in to comment.