Skip to content

Commit f4b1448

Browse files
committed
feat: utilize more screen real estate on wide screens
1 parent 513159d commit f4b1448

File tree

3 files changed

+46
-10
lines changed

3 files changed

+46
-10
lines changed

index.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,10 @@
3434
TypeORM - Amazing ORM for TypeScript and JavaScript (ES7, ES6, ES5). Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, WebSQL databases. Works in NodeJS, Browser, Ionic, Cordova and Electron platforms.
3535
</title>
3636

37-
</head>
3837
</head>
3938
<body>
4039

41-
<div class="container" id="app">
40+
<div id="app">
4241
<main-page></main-page>
4342
</div>
4443

script/component/MainPage.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const MainPage = {
22
template: `<div>
3-
<nav class="navbar navbar-expand navbar-light bg-light">
3+
<nav class="navbar navbar-expand navbar-light">
44
<!--<img src="image/logo-large.png" width="10%" height="10%">-->
55
<a class="navbar-brand" href="/"><span style="color: #E83524">Type</span><span style="color: #000">ORM</span></a>
66
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
@@ -62,8 +62,8 @@ const MainPage = {
6262
</form>-->
6363
</div>
6464
</nav>
65-
<div class="row">
66-
<div class="col-12 col-sm-5 col-md-4 left-panel">
65+
<div class="panels">
66+
<div class="left-panel">
6767
<ul>
6868
<li v-for="link in links">
6969
<div v-if="link.links">
@@ -85,7 +85,7 @@ const MainPage = {
8585
</ul>
8686
<div class="carbon-container" ref="carbon"></div>
8787
</div>
88-
<div class="col-12 col-sm-7 col-md-8">
88+
<div class="right-panel">
8989
<router-view></router-view>
9090
</div>
9191
</div>

style/app.css

+41-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
html {
2+
scroll-padding-top: 80px;
3+
}
14
body {
25
padding-bottom: 20px;
36
}
@@ -33,6 +36,19 @@ h2, h3 {
3336
}
3437
.navbar {
3538
margin-bottom: 30px;
39+
position: sticky;
40+
top: 0px;
41+
z-index: 1;
42+
background-color: rgba(255, 255, 255, 1);
43+
border-bottom: 1px solid #EEE;
44+
height: 60px;
45+
}
46+
@supports (-webkit-backdrop-filter: blur(6px)) or (backdrop-filter: blur(6px)) {
47+
.navbar {
48+
background-color: rgba(255, 255, 255, 0.6);
49+
-webkit-backdrop-filter: blur(6px);
50+
backdrop-filter: blur(6px);
51+
}
3652
}
3753
.document h1+ul, .document h1+ul ul {
3854
list-style: none;
@@ -55,9 +71,30 @@ h1 code, h2 code, h3 code {
5571
color: #333;
5672
}
5773

58-
.bg-light {
59-
background-color: transparent !important;
60-
border-bottom: 1px solid #EEE;
74+
.panels {
75+
display: flex;
76+
flex-direction: row;;
77+
flex-wrap: wrap;
78+
}
79+
80+
.left-panel {
81+
max-width: 340px;
82+
min-width: 240px;
83+
padding-right: 16px;
84+
flex: 1;
85+
}
86+
87+
@media only screen and (min-width: 579px) {
88+
.left-panel {
89+
max-width: 579px;
90+
}
91+
}
92+
93+
.right-panel {
94+
flex: 2;
95+
width: 0px;
96+
min-width: 340px;
97+
padding: 0px 16px;
6198
}
6299

63100
.left-panel ul {
@@ -134,7 +171,7 @@ ol {
134171
border-top: 1px solid #eee;
135172
padding-top: 20px;
136173
margin-left: 80px;
137-
margin-right: 80px;
174+
margin-right: 60px;
138175
min-width: 120px;
139176
margin-bottom: 20px;
140177
}

0 commit comments

Comments
 (0)