Skip to content

Commit 31c7401

Browse files
committed
Add Prettier and format code
1 parent f8e29d9 commit 31c7401

File tree

17 files changed

+269
-267
lines changed

17 files changed

+269
-267
lines changed

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"tabWidth": 4,
3+
"printWidth": 80
4+
}
Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,100 +1,100 @@
11
.page {
2-
position: relative;
3-
display: flex;
4-
flex-direction: column;
2+
position: relative;
3+
display: flex;
4+
flex-direction: column;
55
}
66

77
main {
8-
flex: 1;
8+
flex: 1;
99
}
1010

1111
.sidebar {
12-
background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
12+
background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
1313
}
1414

1515
.top-row {
16-
display: flex;
17-
align-items: center;
18-
justify-content: flex-end;
19-
height: 3.5rem;
20-
background-color: #f7f7f7;
21-
border-bottom: 1px solid #d6d5d5;
16+
display: flex;
17+
align-items: center;
18+
justify-content: flex-end;
19+
height: 3.5rem;
20+
background-color: #f7f7f7;
21+
border-bottom: 1px solid #d6d5d5;
2222
}
2323

2424
.top-row ::deep a,
2525
.top-row ::deep .btn-link {
26-
margin-left: 1.5rem;
27-
white-space: nowrap;
28-
text-decoration: none;
26+
margin-left: 1.5rem;
27+
white-space: nowrap;
28+
text-decoration: none;
2929
}
3030

3131
.top-row ::deep a:hover,
3232
.top-row ::deep .btn-link:hover {
33-
text-decoration: underline;
33+
text-decoration: underline;
3434
}
3535

3636
.top-row ::deep a:first-child {
37-
overflow: hidden;
38-
text-overflow: ellipsis;
37+
overflow: hidden;
38+
text-overflow: ellipsis;
3939
}
4040

4141
@media (max-width: 640.98px) {
42-
.top-row {
43-
justify-content: space-between;
44-
}
42+
.top-row {
43+
justify-content: space-between;
44+
}
4545

46-
.top-row ::deep a,
47-
.top-row ::deep .btn-link {
48-
margin-left: 0;
49-
}
46+
.top-row ::deep a,
47+
.top-row ::deep .btn-link {
48+
margin-left: 0;
49+
}
5050
}
5151

5252
@media (min-width: 641px) {
53-
.page {
54-
flex-direction: row;
55-
}
53+
.page {
54+
flex-direction: row;
55+
}
5656

57-
.sidebar {
58-
position: sticky;
59-
top: 0;
60-
width: 250px;
61-
height: 100vh;
62-
}
57+
.sidebar {
58+
position: sticky;
59+
top: 0;
60+
width: 250px;
61+
height: 100vh;
62+
}
6363

64-
.top-row {
65-
position: sticky;
66-
top: 0;
67-
z-index: 1;
68-
}
64+
.top-row {
65+
position: sticky;
66+
top: 0;
67+
z-index: 1;
68+
}
6969

70-
.top-row.auth ::deep a:first-child {
71-
flex: 1;
72-
width: 0;
73-
text-align: right;
74-
}
70+
.top-row.auth ::deep a:first-child {
71+
flex: 1;
72+
width: 0;
73+
text-align: right;
74+
}
7575

76-
.top-row,
77-
article {
78-
padding-right: 1.5rem !important;
79-
padding-left: 2rem !important;
80-
}
76+
.top-row,
77+
article {
78+
padding-right: 1.5rem !important;
79+
padding-left: 2rem !important;
80+
}
8181
}
8282

8383
#blazor-error-ui {
84-
position: fixed;
85-
bottom: 0;
86-
left: 0;
87-
z-index: 1000;
88-
display: none;
89-
width: 100%;
90-
padding: 0.6rem 1.25rem 0.7rem 1.25rem;
91-
background: lightyellow;
92-
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
84+
position: fixed;
85+
bottom: 0;
86+
left: 0;
87+
z-index: 1000;
88+
display: none;
89+
width: 100%;
90+
padding: 0.6rem 1.25rem 0.7rem 1.25rem;
91+
background: lightyellow;
92+
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
9393
}
9494

9595
#blazor-error-ui .dismiss {
96-
position: absolute;
97-
top: 0.5rem;
98-
right: 0.75rem;
99-
cursor: pointer;
96+
position: absolute;
97+
top: 0.5rem;
98+
right: 0.75rem;
99+
cursor: pointer;
100100
}
Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,106 +1,106 @@
11
.navbar-toggler {
2-
position: absolute;
3-
top: 0.5rem;
4-
right: 1rem;
5-
width: 3.5rem;
6-
height: 2.5rem;
7-
color: white;
8-
background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")
9-
no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
10-
border: 1px solid rgba(255, 255, 255, 0.1);
11-
cursor: pointer;
12-
appearance: none;
2+
position: absolute;
3+
top: 0.5rem;
4+
right: 1rem;
5+
width: 3.5rem;
6+
height: 2.5rem;
7+
color: white;
8+
background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")
9+
no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
10+
border: 1px solid rgba(255, 255, 255, 0.1);
11+
cursor: pointer;
12+
appearance: none;
1313
}
1414

1515
.navbar-toggler:checked {
16-
background-color: rgba(255, 255, 255, 0.5);
16+
background-color: rgba(255, 255, 255, 0.5);
1717
}
1818

1919
.top-row {
20-
height: 3.5rem;
21-
background-color: rgba(0, 0, 0, 0.4);
20+
height: 3.5rem;
21+
background-color: rgba(0, 0, 0, 0.4);
2222
}
2323

2424
.navbar-brand {
25-
font-size: 1.1rem;
25+
font-size: 1.1rem;
2626
}
2727

2828
.bi {
29-
position: relative;
30-
top: -1px;
31-
display: inline-block;
32-
width: 1.25rem;
33-
height: 1.25rem;
34-
margin-right: 0.75rem;
35-
background-size: cover;
29+
position: relative;
30+
top: -1px;
31+
display: inline-block;
32+
width: 1.25rem;
33+
height: 1.25rem;
34+
margin-right: 0.75rem;
35+
background-size: cover;
3636
}
3737

3838
.bi-house-door-fill-nav-menu {
39-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
39+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
4040
}
4141

4242
.bi-plus-square-fill-nav-menu {
43-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
43+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
4444
}
4545

4646
.bi-list-nested-nav-menu {
47-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
47+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
4848
}
4949

5050
.nav-item {
51-
padding-bottom: 0.5rem;
52-
font-size: 0.9rem;
51+
padding-bottom: 0.5rem;
52+
font-size: 0.9rem;
5353
}
5454

5555
.nav-item:first-of-type {
56-
padding-top: 1rem;
56+
padding-top: 1rem;
5757
}
5858

5959
.nav-item:last-of-type {
60-
padding-bottom: 1rem;
60+
padding-bottom: 1rem;
6161
}
6262

6363
.nav-item ::deep .nav-link {
64-
display: flex;
65-
align-items: center;
66-
width: 100%;
67-
height: 3rem;
68-
color: #d7d7d7;
69-
line-height: 3rem;
70-
background: none;
71-
border: none;
72-
border-radius: 4px;
64+
display: flex;
65+
align-items: center;
66+
width: 100%;
67+
height: 3rem;
68+
color: #d7d7d7;
69+
line-height: 3rem;
70+
background: none;
71+
border: none;
72+
border-radius: 4px;
7373
}
7474

7575
.nav-item ::deep a.active {
76-
color: white;
77-
background-color: rgba(255, 255, 255, 0.37);
76+
color: white;
77+
background-color: rgba(255, 255, 255, 0.37);
7878
}
7979

8080
.nav-item ::deep .nav-link:hover {
81-
color: white;
82-
background-color: rgba(255, 255, 255, 0.1);
81+
color: white;
82+
background-color: rgba(255, 255, 255, 0.1);
8383
}
8484

8585
.nav-scrollable {
86-
display: none;
86+
display: none;
8787
}
8888

8989
.navbar-toggler:checked ~ .nav-scrollable {
90-
display: block;
90+
display: block;
9191
}
9292

9393
@media (min-width: 641px) {
94-
.navbar-toggler {
95-
display: none;
96-
}
97-
98-
.nav-scrollable {
99-
/* Never collapse the sidebar for wide screens */
100-
display: block;
101-
102-
/* Allow sidebar to scroll for tall menus */
103-
height: calc(100vh - 3.5rem);
104-
overflow-y: auto;
105-
}
94+
.navbar-toggler {
95+
display: none;
96+
}
97+
98+
.nav-scrollable {
99+
/* Never collapse the sidebar for wide screens */
100+
display: block;
101+
102+
/* Allow sidebar to scroll for tall menus */
103+
height: calc(100vh - 3.5rem);
104+
overflow-y: auto;
105+
}
106106
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"Logging": {
3-
"LogLevel": {
4-
"Default": "Information",
5-
"Microsoft.AspNetCore": "Warning"
2+
"Logging": {
3+
"LogLevel": {
4+
"Default": "Information",
5+
"Microsoft.AspNetCore": "Warning"
6+
}
67
}
7-
}
88
}

text-counter-blazor/appsettings.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"Logging": {
3-
"LogLevel": {
4-
"Default": "Information",
5-
"Microsoft.AspNetCore": "Warning"
6-
}
7-
},
8-
"AllowedHosts": "*"
2+
"Logging": {
3+
"LogLevel": {
4+
"Default": "Information",
5+
"Microsoft.AspNetCore": "Warning"
6+
}
7+
},
8+
"AllowedHosts": "*"
99
}

0 commit comments

Comments
 (0)