Skip to content

Commit

Permalink
moved styles to global css
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyknight-me committed Dec 23, 2020
1 parent 7716684 commit c4f99aa
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 22 deletions.
1 change: 0 additions & 1 deletion PhotoCollageWeb/Components/Photo.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<div class="image-wrapper">
<img class="@this.CssClasses" style="@this.CssStyles" src="@($"data:image/{this.Image.Extension};base64,{this.Image.Data}")" />
</div>

3 changes: 0 additions & 3 deletions PhotoCollageWeb/Components/Photo.razor.css

This file was deleted.

9 changes: 0 additions & 9 deletions PhotoCollageWeb/Components/PhotoFrame.razor.css

This file was deleted.

8 changes: 0 additions & 8 deletions PhotoCollageWeb/Pages/Collage.razor.css

This file was deleted.

7 changes: 6 additions & 1 deletion PhotoCollageWeb/Pages/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@

<h1>Hello, world!</h1>

Welcome to your new app.
<div style="text-align: center;">
<NavLink href="collage">
Start Collage
</NavLink>
</div>

27 changes: 27 additions & 0 deletions PhotoCollageWeb/wwwroot/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,33 @@ html, body {
width: 100%;
}

/* -- Photo Frame Styles ----- */

#collage-wrapper {
background-color: #222;
height: 100vh;
position: absolute;
overflow: hidden;
width: 100vw;
z-index: 0;
}

.photo-frame {
position: absolute;
}

.bordered {
background-color: #eee;
filter: drop-shadow(0 0 0.75rem #333);
padding: 0.8em;
}

.photo-frame img {
border: 1px solid #222;
}

/* -- Blazor Styles ----- */

#blazor-error-ui {
background: lightyellow;
bottom: 0;
Expand Down

0 comments on commit c4f99aa

Please sign in to comment.