Skip to content

Commit 89e0191

Browse files
committed
Update GitHub link positioning and adjust main padding for better layout
1 parent 00b62b9 commit 89e0191

File tree

2 files changed

+17
-19
lines changed

2 files changed

+17
-19
lines changed

css/common.css

Lines changed: 16 additions & 18 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;
@@ -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;

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)