Skip to content

Commit

Permalink
Complete UI Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu committed Feb 9, 2023
1 parent f4b5692 commit 6482585
Show file tree
Hide file tree
Showing 26 changed files with 242 additions and 1,357 deletions.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
64 changes: 0 additions & 64 deletions src/dotnet/APIView/APIViewWeb/Client/css/kotlin.scss

This file was deleted.

6 changes: 2 additions & 4 deletions src/dotnet/APIView/APIViewWeb/Client/css/pages/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@
}

#reviews-table-search-container {
min-width: 100px;
max-width: 90vw;
width: 40vw;
width: 90%;
}

#reviews-table-search-box {
Expand All @@ -50,7 +48,7 @@
}

#index-offcanvas-menu-content {
padding: 130px 20px 10px 20px;
padding: 130px 60px 10px 20px;
min-height: calc(100vh - 40px);
max-height: calc(100vh - 40px);
overflow-y: auto;
Expand Down
14 changes: 10 additions & 4 deletions src/dotnet/APIView/APIViewWeb/Client/css/pages/review.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@
margin-top: 150px;
}

.gutter.gutter-horizontal {
cursor: col-resize;
}

.review-approved {
border: solid 2px var(--success-color);
box-shadow: var(--box-shadow-success);
Expand All @@ -67,4 +63,14 @@

.show-diffonly-switch, .show-documentation-switch {
color: var(--base-text-color) !important;
}

.gutter {
&:hover {
background-color: var(--base-fg-color);
}

&.gutter-horizontal {
cursor: col-resize;
}
}
17 changes: 17 additions & 0 deletions src/dotnet/APIView/APIViewWeb/Client/css/pages/samples.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,21 @@
overflow: auto;
}

.usage-sample + .border + .rounded {
margin-top: 15px !important;
}

.usage-sample .code-line {
padding: 0px;
margin: 0px;
font-size: 85%;
line-height: 10px;
}

.usage-sample .line-number {
font-size: 125%;
}

.usage-sample .internal {
display: inline-block;
}
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,12 @@ select {

.btn-close {
background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='grey'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
}

.text-muted {
color: var(--text-muted-color) !important;
}

pre {
color: var(--base-text-color);
}
24 changes: 21 additions & 3 deletions src/dotnet/APIView/APIViewWeb/Client/css/shared/codeline.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
}

.code-inner {
height: 100%;
word-wrap: normal;
white-space: pre;
width: 80%
Expand Down Expand Up @@ -94,6 +95,14 @@
font-style: italic;
}

.hidden-row {
display: none;
}

.hidden-row-via-filter {
display: none;
}

.file-code-icon {
filter: var(--icon-color-filter);
}
Expand Down Expand Up @@ -131,6 +140,15 @@
text-decoration: none;
}

.btn-link.line-comment-button {
border: 0;
opacity: 0;
padding: 0;
text-decoration: none;
user-select: none;
white-space: nowrap;
}

.line-toggle-documentation-button {
display: block;
width: 100%;
Expand Down Expand Up @@ -231,15 +249,15 @@ code {
}

.code-added {
background-color: rgba(46,160,67,0.3) !important;
background-color: rgba(46,160,67,0.3);
}

.code-removed {
background-color: rgba(248,81,73,0.3) !important;
background-color: rgba(248,81,73,0.3);
}

.code-delta {
background-color: rgba(248,201,67,0.3) !important;
background-color: rgba(248,201,67,0.3);
}

.enum {
Expand Down
80 changes: 76 additions & 4 deletions src/dotnet/APIView/APIViewWeb/Client/css/shared/comments.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
.btn-upvote span {
filter: grayscale(100%) opacity(30%);

&.active {
filter: unset;
}
}

.comment-thread-anchor {
visibility: hidden;
}
Expand Down Expand Up @@ -28,6 +36,7 @@
.comment-contents {
margin-bottom: 3px;
overflow-wrap: anywhere;
overflow-x: auto;
}

.comment-contents .fw-bold {
Expand Down Expand Up @@ -87,6 +96,10 @@
}

.review-comment {
pre {
background-color: var(--base-bg-color);
}

padding: 4px 16px;
position: relative;
}
Expand All @@ -108,10 +121,6 @@
color: #6A737D;
}

.review-comment pre {
background-color: var(--base-bg-color);
}

.review-thread-reply {
background-color: var(--base-bg-color);
border-radius: 0 0 3px 3px;
Expand Down Expand Up @@ -145,4 +154,67 @@

form.comment {
padding: 12px;
}

/* Tag suggestion box
----------------------------------------------------------------------*/
.tag-user-suggestion {
min-width: 180px;
padding: 0;
margin: 0;
cursor: pointer;
background: var(--bg-light);
border: 1px solid var(--border-color);
border-radius: 6px;
box-shadow: var(--focus-shadow);
z-index: 100;
list-style-type: none;
box-sizing: border-box;
}

.tag-user-suggestion-username {
color: var(--text-color);
text-decoration: none;
padding: 4px 8px;
border-bottom: 1px solid var(--border-color);
box-sizing: border-box;
}

.tag-user-suggestion-username:first-child {
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}

.tag-user-suggestion-username:hover {
background-color: var(--focus-shadow);
}

// shows what option is selected during arrow navigation
.tag-user-suggestion-username-targetted {
background-color: var(--focus-shadow);
}

// mirror box
.new-thread-comment-text-mirror {
position: absolute;
top: 0;
left: -9999px;
overflow: auto;
overflow-wrap: break-word;
white-space: pre-wrap;
box-sizing: border-box;
font-family: "Segoe UI",Tahoma,Geneva,Verdana,sans-serif;
font-size: 14px;
font-weight: 400;
max-height: 77px;
letter-spacing: normal;
line-height: 21px;
padding: 0.75rem 0.375rem;
border-width: 1px;
border-radius: 4px;
border-style: solid;
border-color: white;
text-indent: 0px;
text-transform: none;
word-spacing: 0px;
}
Loading

0 comments on commit 6482585

Please sign in to comment.