Skip to content

Commit fd0b1f5

Browse files
committed
photo header fixed
1 parent 8a68020 commit fd0b1f5

2 files changed

Lines changed: 34 additions & 11 deletions

File tree

_includes/css/grayscale.css

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ a:focus {
110110
background-color: rgba(255,255,255,.3);
111111
}
112112

113-
@media(min-width:767px) {
113+
/*@media(min-width:767px) {
114114
.navbar {
115115
padding: 20px 0;
116116
border-bottom: 0;
@@ -129,7 +129,7 @@ a:focus {
129129
.navbar-custom.top-nav-collapse {
130130
border-bottom: 1px solid rgba(255,255,255,.3);
131131
}
132-
}
132+
}*/
133133

134134
.intro {
135135
display: table;
@@ -148,30 +148,37 @@ a:focus {
148148
}
149149

150150
.intro .intro-body {
151-
display: table-cell;
151+
display: table-row;
152152
vertical-align: middle;
153+
width: cover;
153154
}
154155

155156
.intro .intro-body .brand-heading {
156157
font-size: 40px;
158+
width: cover;
157159
}
158160

159161
.brand-heading {
160162
color: rgb(153, 157, 160);
161-
text-align: center
163+
text-align: center;
162164
}
163165
.intro .intro-body .intro-text {
164166
font-size: 18px;
165167
}
166168

169+
170+
171+
167172
@media(min-width:767px) {
168173
.intro {
169-
height: 100%;
174+
height: 60%;
170175
padding: 0;
176+
background-position: 25% 68%;
177+
171178
}
172179

173180
.intro .intro-body .brand-heading {
174-
font-size: 100px;
181+
font-size: 80px;
175182
}
176183

177184
.intro .intro-body .intro-text {
@@ -378,7 +385,7 @@ body {
378385
.container-lg,
379386
.container-md,
380387
.container-sm {
381-
/*width: 135%;*/
388+
width: cover;
382389
padding-right: var(--bs-gutter-x, 0.75rem);
383390
padding-left: var(--bs-gutter-x, 0.75rem);
384391
margin-right: auto;
@@ -387,7 +394,7 @@ body {
387394

388395
@media (min-width: 300px) {
389396
.container {
390-
width: 140%;
397+
width: 10%;
391398
max-width: 375px;
392399
}
393400
}
@@ -428,15 +435,28 @@ body {
428435
background-size: cover;
429436
}
430437

438+
439+
@media(min-width:767px) {
440+
.bg-image-full {
441+
background-repeat: no-repeat;
442+
background-attachment: scroll;
443+
background-position: left 25% bottom 45%;
444+
background-size: cover;
445+
}
446+
447+
}
448+
431449
.row {
432450
--bs-gutter-x: 1.5rem;
433451
--bs-gutter-y: 0;
434-
display: flex;
452+
/*display: flex;*/
435453
flex-wrap: wrap;
436454
margin-top: calc(var(--bs-gutter-y) * -1);
437455
margin-right: calc(var(--bs-gutter-x) * -1);
438456
margin-left: calc(var(--bs-gutter-x) * -1);
439457
}
458+
459+
440460
#resume {
441461
width: 100%;
442462
}

_includes/header.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<!-- Intro Header -->
22
<header class="intro">
3-
<div class="intro-body">
4-
<div class="bg-image-full">
3+
<div class="bg-image-full"></div>
4+
<div class="intro-body">
5+
<!---<div class="container">--->
6+
57
<div class="row">
68
<div class="col-md-8 col-md-offset-2">
79
<h1 class="brand-heading">{{ site.title }}</h1>
@@ -11,6 +13,7 @@ <h1 class="brand-heading">{{ site.title }}</h1>
1113
</a>
1214
</div>
1315
</div>
16+
<!---</div>--->
1417
</div>
1518
</div>
1619
</header>

0 commit comments

Comments
 (0)