Skip to content

Commit 1ea4e21

Browse files
authored
Merge pull request #1 from InnerSourceCommons/adjusting-line-height
Adjusting line height
2 parents ade0e60 + 89e0191 commit 1ea4e21

File tree

2 files changed

+21
-22
lines changed

2 files changed

+21
-22
lines changed

css/common.css

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,22 @@ main {
103103
-ms-flex: none;
104104
flex: none;
105105
width: 100%;
106-
padding: 0.5em 1.25em 0.5em 0.75em;
106+
padding: 0.5em 3.5em 0.5em 0.75em;
107107
background: #fff;
108108
}
109109

110+
.github-link {
111+
position: absolute;
112+
right: 1em;
113+
top: 0.75em;
114+
z-index: 1001;
115+
}
116+
117+
.github-link .icon {
118+
width: 32px;
119+
height: 32px;
120+
}
121+
110122
.codrops-header__main {
111123
display: -webkit-flex;
112124
display: -ms-flexbox;
@@ -126,8 +138,8 @@ main {
126138
font-size: 1.5em;
127139
font-weight: 700;
128140
margin: 0;
129-
line-height: 0.8;
130-
padding: 0 0 0.1em 0;
141+
line-height: 1;
142+
padding: 0.2em 0 0.2em 0;
131143
}
132144

133145
.codrops-header__tagline {
@@ -143,26 +155,12 @@ main {
143155
display: -webkit-flex;
144156
display: -ms-flexbox;
145157
display: flex;
146-
-webkit-justify-content: center;
147-
-ms-flex-pack: center;
148-
justify-content: center;
149-
text-align: center;
158+
-webkit-align-items: center;
159+
-ms-flex-align: center;
160+
align-items: center;
150161
white-space: nowrap;
151162
}
152163

153-
.codrops-links::after {
154-
content: '';
155-
position: absolute;
156-
top: 15%;
157-
left: 50%;
158-
width: 2px;
159-
height: 70%;
160-
opacity: 0.7;
161-
background: rgba(0, 0, 0, 0.25);
162-
-webkit-transform: rotate3d(0, 0, 1, 22.5deg);
163-
transform: rotate3d(0, 0, 1, 22.5deg);
164-
}
165-
166164
.codrops-icon {
167165
display: inline-block;
168166
margin: 0.5em;
@@ -175,6 +173,7 @@ main {
175173
margin: 0.25em 0;
176174
padding: 0 1em;
177175
font-weight: bold;
176+
line-height: 1.6;
178177
}
179178

180179
.codrops-demos a {
@@ -460,7 +459,7 @@ main {
460459

461460
.content__title {
462461
font-size: 7vw;
463-
line-height: 0.85;
462+
line-height: 1;
464463
margin: 0;
465464
}
466465

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@
4444
</div>
4545
<h1 class="codrops-header__title">Advent Calendar - Each day a new Patterns to learn from and contribute to</h1>
4646
</div>
47+
<a href="https://github.com/InnerSourceCommons/InnerSource-Patterns-Advent-Calendar" title="View this project on GitHub" class="github-link"><svg class="icon icon--github"><use xlink:href="#icon-github"></use></svg></a>
4748
<!-- <p class="codrops-header__tagline">Inspired by <a href="http://www.adultswim.com/music/singles-2016/" class="link">Adult Swim</a>. Firefox support is <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=904304" class="link">buggy</a>.</p>
4849
<nav class="codrops-demos">
4950
<a class="link" href="index.html">Demo 1</a>
5051
<a class="link current-demo" href="index2.html">Demo 2</a>
5152
<a class="link" href="index3.html">Demo 3</a>
5253
</nav> -->
53-
<a href="https://github.com/InnerSourceCommons/InnerSource-Patterns-Advent-Calendar" title="View this project on GitHub"><svg class="icon icon--github"><use xlink:href="#icon-github"></use></svg></a>
5454
</header>
5555
<div class="calendar-wrap">
5656
<div class="calendar">

0 commit comments

Comments
 (0)