File tree Expand file tree Collapse file tree 3 files changed +39
-13
lines changed Expand file tree Collapse file tree 3 files changed +39
-13
lines changed Original file line number Diff line number Diff line change 11< header class ="site-header ">
22
3- < div class ="wrap title-wrap ">
4- < a class ="site-title " href ="{{ site.courseurl }} "> {{ site.title }}</ a >
5- </ div >
3+ < a class ="site-title " href ="{{ site.url }} "> {{ site.title }}</ a >
4+ < a class ="site-link " href ="{{ site.courseurl }} "> Course Website ➚</ a >
65
76</ header >
Original file line number Diff line number Diff line change @@ -123,29 +123,56 @@ a:visited { color: #205caa; }
123123
124124/* Site header */
125125
126- .title-wrap {
127- text-align : center;
128- }
129-
130126.site-header {
131127 border-bottom : 1px solid # e8e8e8 ;
132128 min-height : 56px ;
133129 background-color : # 8C1515 ;
130+ padding : 10px 10px ;
131+ display : flex;
132+ flex-flow : row wrap;
133+ align-items : center;
134+ justify-content : center;
134135}
135136
136137.site-title ,
137138.site-title : hover ,
138139.site-title : visited {
139- display : block;
140+ flex : 3 3 800px ;
141+ margin : 0 auto;
142+ text-align : center;
140143 font-size : 26px ;
144+ line-height : 1.2em ;
141145 letter-spacing : -1px ;
142- line-height : 56px ;
143- position : relative;
144- z-index : 1 ;
145146 color : # FFF ;
146147 font-weight : 100 ;
147148}
148149
150+ .site-header ::before ,
151+ .site-link : link ,
152+ .site-link : hover ,
153+ .site-link : visited {
154+ flex : 1 1 0px ;
155+ text-align : center;
156+ white-space : nowrap;
157+ margin : 10px ;
158+ font-size : 18px ;
159+ line-height : 2em ;
160+ padding : 0 10px ;
161+ color : # fff ;
162+ border : 2px solid # fff ;
163+ font-weight : 50 ;
164+ }
165+
166+ .site-header ::before {
167+ /* Pseudo-element for centering */
168+ /* Should maintain ~the same width as .site-link */
169+ content : "flexbox-dummy" ;
170+ visibility : hidden;
171+ height : 0 ;
172+ margin-top : 0 ;
173+ margin-bottom : 0 ;
174+ }
175+
149176.site-nav {
150177 float : right;
151178 line-height : 56px ;
Original file line number Diff line number Diff line change 5353 <div class="materials-item">
5454 <a href="assignments2018/assignment3/">
5555 Assignment #3: Image Captioning with Vanilla RNNs, Image Captioning
56- with LSTMs, Network Visualization, Style Transfer, Generative Adversarial Networks
56+ with LSTMs, Network Visualization, Style Transfer, Generative Adversarial Networks
5757 </a>
5858 </div>
5959 -->
135135 </a>
136136 </div> -->
137137
138- <!-- hardcoding items here to force a specific order -->
138+ <!-- hardcoding items here to force a specific order -->
139139 < div class ="module-header "> Module 1: Neural Networks</ div >
140140
141141 < div class ="materials-item ">
You can’t perform that action at this time.
0 commit comments