Skip to content

Commit 419431f

Browse files
committed
WIP centering rows 1 and 2 for page nav.
Signed-off-by: michael vincerra <michael.vincerra@intel.com>
1 parent f52fe04 commit 419431f

3 files changed

Lines changed: 81 additions & 38 deletions

File tree

src/docs/_static/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function resetSearcher() {
157157

158158
function showTotalRecords() {
159159
const records = document.getElementById("total-records");
160-
records.innerHTML = `Total Records: ${[...state.data].length}`;
160+
records.innerHTML = `${[...state.data].length} Toolkits`;
161161
}
162162

163163
function renderUi(data) {

src/docs/_static/styles.css

Lines changed: 46 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -416,11 +416,13 @@ input[type=button] > #nobutton {
416416

417417
#total-records{
418418
font-family: "IntelOneText"; /*var(--bs-body-font-family);*/
419-
/* font-size: 18px; */
419+
font-size: 18px;
420+
color: rgb(0,84,174);
420421
font-weight: normal;
421422
font-weight: 400;
422-
color: rgb(255,255,255);
423-
margin-top: 35px;
423+
margin-top: 25px;
424+
padding-left: 10px;
425+
/* margin-left: 20px; */
424426
}
425427

426428
.logo {
@@ -429,7 +431,8 @@ input[type=button] > #nobutton {
429431

430432
.grid-row {
431433
display: flex;
432-
grid-template-columns: minmax(20px, 25px) minmax(20px, 25px) minmax(20px, 25px) minmax(20px, 25px) minmax(20px, 25px);
434+
grid-template-columns: 25fr 16fr 18fr 16fr 25fr;
435+
/* grid-template-columns: minmax(20px, 25px) minmax(20px, 25px) minmax(20px, 25px) minmax(20px, 25px) minmax(20px, 25px); */
433436
/* See col-nav-grp padding*/
434437
background-color: rgb(0,84,174);
435438
width: 100%;
@@ -503,13 +506,14 @@ input[type=button] > #nobutton {
503506
position: relative;
504507
background-color: #E9E9E9;
505508
outline: none;
509+
border-radius: 0 7px 0 0; /* */
506510
}
507511

508512

509513
.search-widget .fa-search {
510514
position: relative;
511-
top: 1.5em; /* Set vert pos from top of search icon */
512-
left: 0.5em; /* Set horiz pos from left of search icon*/
515+
top: 1.5em; /* Set icon vert pos from top */
516+
left: 0.75em; /* Set icon horiz pos from left */
513517
z-index: 20;
514518
}
515519

@@ -632,6 +636,7 @@ input::placeholder {
632636
outline: none;
633637
border: none;
634638
padding-left: 1.5em; /* left-indent input text for search */
639+
margin-left: 0.25em;
635640
margin-top: 0.5em;
636641
margin-bottom: 0.5em;
637642
z-index: 10;
@@ -658,9 +663,12 @@ input::placeholder {
658663
z-index: 5;
659664
}
660665

661-
input:hover {
666+
667+
input:focus {
662668
/* offset: offset-x | offset-y | blur-radius; */
663-
box-shadow: 0px 1px 3px rgba(174,174,174,68);
669+
-webkit-transition: box-shadow linear 1s;
670+
transition: box-shadow linear 1s;
671+
box-shadow: 0px 0px 10px rgba(118,206,255,0.8);
664672
}
665673

666674
.all-wrapper{
@@ -678,6 +686,7 @@ input:hover {
678686
grid-gap: .5rem;
679687
/* margin-top: .5rem; */
680688
margin-bottom: 2rem;
689+
padding-bottom: 100px;
681690
}
682691

683692
.card {
@@ -767,12 +776,24 @@ input:hover {
767776
color: rgb(0,84,174);
768777
}
769778

779+
.nav-page-row {
780+
display: flex;
781+
padding-top: 0.5em;
782+
grid-template-columns: 25fr 16fr 18fr 16fr 25fr;
783+
/* flex-direction: row; */
784+
justify-content: space-between;
785+
text-align: center;
786+
align-items: stretch;
787+
width: 100%;
788+
}
789+
770790
.nav-ctrls {
771791
font-family: var(--bs-header-font-family);
772792
font-weight: normal;
773793
font-weight: 400;
774-
padding-top: 0.25em;
794+
padding-top: 0.5em;
775795
padding-bottom: 0.25em;
796+
margin-left: 20px;
776797
display: flex;
777798
justify-content: center;
778799
text-align: center;
@@ -1177,11 +1198,12 @@ a:hover {
11771198
/* background-color: red; */
11781199
}
11791200

1180-
.row {
1201+
.template-wrapper .row {
11811202
display: flex;
11821203
flex-direction: row;
11831204
flex-wrap: wrap;
11841205
width: 100%;
1206+
margin-left: -25px;
11851207
}
11861208

11871209
.column {
@@ -1192,24 +1214,30 @@ a:hover {
11921214
}
11931215

11941216
.left-column {
1195-
background-color: #E9E9E9;
1196-
border-radius: 7px;
11971217
height: 100vh;
1198-
flex: 20%;
1218+
flex: 18%;
11991219
margin-top: 1.5rem;
1220+
padding-left: 1.5em;
1221+
margin-right:-0.5em;
12001222
}
12011223

12021224
.right-column {
12031225
background-color: transparent;
12041226
height: 100vh;
1205-
flex: 80%;
1227+
flex: 82%;
12061228
margin-top: -10px;
1229+
padding-bottom: 50px;
12071230
/* outline: dashed; */
12081231
/* outline-color: deeppink; */
12091232
}
12101233

12111234
/* Add bootstrap 5.1 classes for collapse */
12121235

1236+
/* #stayOpen-collapseOne {
1237+
1238+
} */
1239+
1240+
12131241
.accordion-item { /* DROPDOWN */
12141242
background-color: #E9E9E9;
12151243
}
@@ -1249,7 +1277,10 @@ a:hover {
12491277
outline-color: #E9E9E9;
12501278
}
12511279

1252-
1280+
.blu-outline{
1281+
outline: dotted;
1282+
outline-color: deepskyblue;
1283+
}
12531284

12541285
/* .accordion {
12551286
color: transparent;

src/docs/_templates/index.html

Lines changed: 34 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<div class="grid-row">
1313

14-
<div class="col wht-outline"> <!--#1-->
14+
<div class="col "> <!--#1-->
1515

1616
<div class="col-nav-grp">
1717

@@ -30,26 +30,26 @@
3030
</div>
3131
</div>
3232

33-
<div class="col wht-outline"><!--#2-->
34-
#2
33+
<div class="col "><!--#2-->
34+
<!-- #2 -->
3535
</div>
3636

37-
<div class="col wht-outline"> <!--#3-->
38-
#3
37+
<div class="col "> <!--#3-->
38+
<!-- #3 -->
3939
</div>
4040

41-
<div class="col wht-outline"> <!--#4-->
41+
<div class="col "> <!--#4-->
4242
<div id="results-container">
4343
<div id="qty-show-results" class="transparent"></div>
4444
</div>
45-
#4
45+
<!-- #4 -->
4646
</div>
4747

4848

49-
<div class="col wht-outline"><!--#5-->
49+
<div class="col "><!--#5-->
5050

5151
<div class="col-nav-grp">
52-
<div id="total-records"></div>
52+
<!-- <div>5A</div> -->
5353

5454
<div>
5555
<figure>
@@ -60,23 +60,35 @@
6060
</figure>
6161
</div>
6262
</div>
63+
</div>
6364

64-
</div>
6565
</div>
6666

67-
<div class="nav-titlebar"><!--ROW #1-->
68-
</div>
69-
70-
<div class="nav-ctrls">
71-
<button class='arrow left' onclick="previousPage()"></button>
72-
<button class='pg-first-last' onclick="firstPage()">First</button>
73-
<div>
74-
<snall class="pg-rng" id="paginator-state"></snall>
75-
</div>
76-
<button class='pg-first-last' onclick="lastPage()">Last</button>
77-
<button class='arrow right' onclick="nextPage()"></button>
78-
</div>
67+
<div class="nav-page-row">
68+
69+
<div class="">
70+
<div id="total-records"></div>
71+
</div>
72+
73+
<div class="">
74+
<!-- <div id="total-records"></div> -->
75+
</div>
76+
77+
<div class="nav-ctrls ">
78+
<button class='arrow left' onclick="previousPage()"></button>
79+
<button class='pg-first-last' onclick="firstPage()">First</button>
80+
<div>
81+
<snall class="pg-rng" id="paginator-state"></snall>
82+
</div>
83+
<button class='pg-first-last' onclick="lastPage()">Last</button>
84+
<button class='arrow right' onclick="nextPage()"></button>
85+
</div>
86+
87+
<div class="">4</div>
88+
<div class="">5</div>
7989

90+
</div>
91+
8092
<div class='template-wrapper'>
8193

8294
<div class='row'>

0 commit comments

Comments
 (0)