Skip to content

Commit

Permalink
#21 Center widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-hedley committed Jul 13, 2023
1 parent 881266d commit 7f74d6f
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 35 deletions.
11 changes: 7 additions & 4 deletions src/Blashing.Core/Components/Clock/ClockWidget.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
background-color: #dc5945;
height: 100%;
width: 100%;

text-align: center;
/* width: inherit;*/
/* height: inherit;*/
/* display: table-cell;*/
/* width: inherit;*/
/* height: inherit;*/
/* display: table-cell;*/
vertical-align: middle;
display: flex;
flex-direction: column;
justify-content: center;
/*align-items: center;*/
}

h1, h2, h3, h4, h5, p {
Expand Down
11 changes: 7 additions & 4 deletions src/Blashing.Core/Components/Comments/CommentsWidget.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
background-color: #eb9c3c;
height: 100%;
width: 100%;

text-align: center;
/* width: inherit;*/
/* height: inherit;*/
/* display: table-cell;*/
/* width: inherit;*/
/* height: inherit;*/
/* display: table-cell;*/
vertical-align: middle;
display: flex;
flex-direction: column;
justify-content: center;
/*align-items: center;*/
}

.title {
Expand Down
13 changes: 8 additions & 5 deletions src/Blashing.Core/Components/Graph/GraphWidget.razor.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
.widget-graph {
background-color: #dc5945;
background-color: #ff9618; /*#dc5945;*/
position: relative;
height: 100%;
width: 100%;

text-align: center;
/* width: inherit;*/
/* height: inherit;*/
/* display: table-cell;*/
/* width: inherit;*/
/* height: inherit;*/
/* display: table-cell;*/
vertical-align: middle;
/*display: flex;*/
/*flex-direction: column;*/
/*justify-content: center;*/
/*align-items: center;*/
}

svg {
Expand Down
11 changes: 7 additions & 4 deletions src/Blashing.Core/Components/Image/ImageWidget.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
background-color: #4b4b4b;
height: 100%;
width: 100%;

text-align: center;
/* width: inherit;*/
/* height: inherit;*/
/* display: table-cell;*/
/* width: inherit;*/
/* height: inherit;*/
/* display: table-cell;*/
vertical-align: middle;
display: flex;
flex-direction: column;
justify-content: center;
/*align-items: center;*/
}

img {
Expand Down
13 changes: 9 additions & 4 deletions src/Blashing.Core/Components/List/ListWidget.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
vertical-align: top;
height: 100%;
width: 100%;

text-align: center;
/* width: inherit;*/
/* height: inherit;*/
/* display: table-cell;*/
/* width: inherit;*/
/* height: inherit;*/
/* display: table-cell;*/
vertical-align: middle;
display: flex;
flex-direction: column;
justify-content: center;
/*align-items: center;*/

padding: 20px;
}

.title {
Expand Down
11 changes: 7 additions & 4 deletions src/Blashing.Core/Components/Meter/MeterWidget.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
background-color: #9c4274;
height: 100%;
width: 100%;

text-align: center;
/* width: inherit;*/
/* height: inherit;*/
/* display: table-cell;*/
/* width: inherit;*/
/* height: inherit;*/
/* display: table-cell;*/
vertical-align: middle;
display: flex;
flex-direction: column;
justify-content: center;
/*align-items: center;*/
}

input.meter {
Expand Down
12 changes: 7 additions & 5 deletions src/Blashing.Core/Components/Number/NumberWidget.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
background-color: #47bbb3;
height: 100%;
width: 100%;

text-align: center;
/* width: inherit;*/
/* height: inherit;*/
/* display: table-cell;*/
vertical-align: middle;
/*width: inherit;*/
/*height: inherit;*/
/*display: table-cell;*/
/*vertical-align: middle;*/
display: flex;
flex-direction: column;
justify-content: center;
}

.title {
Expand Down
16 changes: 11 additions & 5 deletions src/Blashing.Core/Components/Text/TextWidget.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@
background-color: #ec663c;
height: 100%;
width: 100%;

text-align: center;
/* width: inherit;*/
/* height: inherit;*/
/* display: table-cell;*/
vertical-align: middle;
/*width: inherit;*/
/*height: inherit;*/
/*display: table-cell;*/ /* Parent: "display: table;" */
/*vertical-align: middle;*/
/*line-height: ;*/
/*display: flex;*/
/*align-items: center;*/
display: flex;
flex-direction: column;
justify-content: center;
/*align-items: center;*/
}

.title {
Expand Down

0 comments on commit 7f74d6f

Please sign in to comment.