Skip to content

Commit

Permalink
Rozšírenie ľavého stĺpca
Browse files Browse the repository at this point in the history
  • Loading branch information
mireq committed Oct 15, 2017
1 parent 9db68a6 commit 50814fa
Show file tree
Hide file tree
Showing 4 changed files with 135 additions and 11 deletions.
58 changes: 58 additions & 0 deletions static/alpha/scss/_header.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#header {
background-color: #6b8fc7;
background-position: sprite_position(header_shadow);
@include sprite_background;
}

#logo {
a {
display: block;
text-indent: -9999px;
overflow: hidden;
margin-left: auto;
margin-right: auto;
@include sprite(logo);
}
}

#main_menu {
padding: 0;
margin: 0 $base-margin;
list-style: none;
box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.05);
background: rgba(0, 0, 0, 0.05);

li {
background: darken($primary-color, 15%);
float: left;
position: relative;
margin-left: 2px;

&:first-child {
margin-left: 0;
}

&.active, &:hover {
z-index: 1;
background: $primary-color-complement;
color: $link-color;
a {
color: $link-color;
}
}

a {
display: block;
padding: 0.75em 1em;
color: $primary-color-complement;
&:hover {
text-decoration: none;
}
}
.badge {
position: absolute;
top: -8px;
right: 8px;
}
}
}
84 changes: 76 additions & 8 deletions static/alpha/scss/_layout.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
$header-height: 120px;

#main_content {
float: left;
width: 50%;
margin-left: 25%;
overflow: hidden;
margin-top: -(40px + $base-margin);
position: relative;

.module {
margin-left: $base-margin;
Expand All @@ -14,41 +18,89 @@
width: 25%;
float: left;
margin-left: -75%;
margin-top: -($header-height + $base-margin);
position: relative;

&:before {
content: " ";
display: block;
background: lighten($primary-color, 10%);
height: 80px;
position: absolute;
top: $base-margin;
left: 0;
right: 0px;
box-shadow: -3px -3px 4px rgba(0, 0, 0, 0.25);
}

.module {
margin-left: $base-margin;
padding-top: 80px;
}
}

#sidebar_2 {
width: 25%;
float: left;
margin-top: -(20px + $base-margin);
position: relative;

.module {
margin-right: $base-margin;
}
}

#header {
height: $header-height;
position: relative;
}

#logo {
top: 0;
left: $base-margin;
position: absolute;
z-index: 1;
}

#main_menu {
position: absolute;
left: 25%;
bottom: 40px;
}

@media #{$xlarge-down} {
#main_content {
width: 66%;
margin-left: 0;
float: right;
float: left;
}

#sidebar_1 {
width: 34%;
margin-left: 0;
float: right;
margin-top: -(20px + $base-margin);
&:before {
display: none;
}
.module {
padding-top: 0;
}
}

#sidebar_2 {
width: 34%;
float: right;
clear: right;
margin-top: -$base-margin;
}

#sidebar_1 .module, #sidebar_2 .module {
margin-left: 0;
clear: left;
.module {
margin-left: $base-margin;
margin-right: 0;
}
margin-right: $base-margin;
}

#main_menu {
left: auto;
right: 34%;
}
}

Expand All @@ -62,4 +114,20 @@
margin-right: 0;
}
}

#main_content {
margin-top: -40px;
}

#sidebar_1, #sidebar_2 {
margin-top: 0;
}

#sidebar_1 {
margin-bottom: 0;
}

#main_menu {
right: 0;
}
}
1 change: 1 addition & 0 deletions static/alpha/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
@import "alpha/scss/mixins";
@import "alpha/scss/base";
@import "alpha/scss/components";
@import "alpha/scss/header";
@import "alpha/scss/layout";
3 changes: 0 additions & 3 deletions templates/partials/site_menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,4 @@
<a href="{{ url('wiki:home') }}">Wiki</a>
{% if count_new and count_new.wiki_page %}<span class="badge important">{{ count_new.wiki_page }}</span>{% endif %}
</li>
<li{% if 'blackhole' in namespaces %} class="active"{% endif %}>
<a href="{{ url('blackhole:story_list') }}">Blackhole</a>
</li>
{% endwith %}

0 comments on commit 50814fa

Please sign in to comment.