Re-use section title adjustment css for top header

Signed-off-by: hossainemruz <hossainemruz@gmail.com>
This commit is contained in:
hossainemruz 2023-09-21 23:55:37 +06:00
parent a4224d74ea
commit efaeed42f6
6 changed files with 15 additions and 27 deletions

View file

@ -1,9 +1,5 @@
.accomplishments-section {
h1 > span {
margin-top: -55px; /* Size of fixed header */
padding-bottom: 55px;
display: block;
}
@include section-title-adjustment();
.card {
background: #fff;

View file

@ -1,14 +1,10 @@
.achievements-section {
@include section-title-adjustment();
.container {
padding-top: 0.5rem;
}
h1 > span {
margin-top: -55px; /* Size of fixed header */
padding-bottom: 55px;
display: block;
}
#gallery {
.achievement-entry {
margin-top: 5px;

View file

@ -1,9 +1,5 @@
.education-section {
h1 > span {
margin-top: -55px; /* Size of fixed header */
padding-bottom: 55px;
display: block;
}
@include section-title-adjustment();
.card {
&:hover,

View file

@ -1,11 +1,7 @@
.experiences-section {
padding-bottom: 1rem;
@include section-title-adjustment();
h1 > span {
margin-top: -55px; /* Size of fixed header */
padding-bottom: 55px;
display: block;
}
padding-bottom: 1rem;
ul {
padding-left: 1rem;

View file

@ -1,9 +1,5 @@
.publications-section {
h1 > span {
margin-top: -55px; /* Size of fixed header */
padding-bottom: 55px;
display: block;
}
@include section-title-adjustment();
.card {
background: #fff;

View file

@ -7,3 +7,11 @@ $breakpoints: (
extra-large: 1536px,
ultra-large: 2560px,
);
@mixin section-title-adjustment(){
h1 > span {
margin-top: -55px; /* Size of fixed header */
padding-bottom: 55px;
display: block;
}
}