Skip to content

Commit ae88622

Browse files
committed
Sidemenu fixes + First JS components :D
1 parent a0bf963 commit ae88622

File tree

5 files changed

+1036
-982
lines changed

5 files changed

+1036
-982
lines changed

css/material.css

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -795,13 +795,20 @@ code {
795795

796796
/* Dialogs */
797797
.dialog-overlay {
798+
display: block;
798799
position: fixed;
799800
top: 0;
800801
bottom: 0;
801802
left: 0;
802803
right: 0;
803804
background-color: rgba(0, 0, 0, 0.5); /* FIXME : Magic color */
804805
z-index: 1;
806+
transition: background 0.2s;
807+
}
808+
.dialog-overlay[hidden] {
809+
z-index: -1;
810+
opacity: 0;
811+
visibility: hidden;
805812
}
806813
.dialog {
807814
padding: 1.5em 1.5em 0.5em 1.5em;
@@ -830,7 +837,7 @@ code {
830837
z-index: 999;
831838
background: #fff;
832839
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26),
833-
0 2px 10px 0 rgba(0, 0, 0, 0.16);
840+
0 2px 10px 0 rgba(0, 0, 0, 0.16);
834841
transition: 0.75s left;
835842
}
836843
.dark-theme .sidemenu {
@@ -848,47 +855,48 @@ code {
848855
line-height: 3em;
849856
height: auto;
850857
}
851-
.sidemenu .hero {
858+
.sidemenu .sidemenu-hero {
852859
width: 100%;
853860
position: relative;
854861
padding: 1em 0;
855862
}
856-
.sidemenu .hero .background {
863+
.sidemenu .sidemenu-hero .sidemenu-hero-image {
857864
position: absolute;
858865
top: 0;
859866
left: 0;
860867
width: 100%;
861-
z-index: -2;
868+
z-index: -1;
862869
}
863-
.sidemenu .hero .thumbnail {
870+
.sidemenu .sidemenu-hero .avatar {
864871
width: 6em;
865872
height: 6em;
866873
border-radius: 50%;
867874
margin: 2em 1em 0.5em;
868875
z-index: 1;
869876
}
870-
.sidemenu .hero .title {
877+
.sidemenu .sidemenu-hero .title {
871878
display: block;
872879
font-size: 0.875em;
873880
font-weight: 500;
874881
color: #fff;
875882
z-index: 1;
876883
padding: 0.375em 1em;
877884
}
878-
.sidemenu .hero .text {
885+
.sidemenu .sidemenu-hero .text {
879886
width: 100%;
880887
color: #FFF;
881888
z-index: 1;
882889
display: block;
883890
padding: 0 1em;
884891
}
885-
.hero .fade {
892+
.sidemenu-hero.fade::before {
893+
content: "";
886894
height: 100%;
887895
width: 100%;
888896
position: absolute;
889897
top: 0;
890898
background: linear-gradient(transparent 70%, rgba(0, 0, 0, 0.25) 90%, rgba(0, 0, 0, 0.4));
891-
z-index: -1;
899+
z-index: 0;
892900
}
893901
.sidemenu .menu i {
894902
padding: 0 2em 0 1em;

img/sidemenu-hero.jpg

11.6 KB
Loading

0 commit comments

Comments
 (0)