From 0bba89a7858ce091f485e04284f853e1f7f304af Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Sun, 6 Aug 2023 17:21:45 +0100 Subject: Reformat --- code/ui/mainmenu/LoadingScreen.razor | 19 +- code/ui/mainmenu/LoadingScreen.razor.scss | 161 ++++++------ code/ui/mainmenu/MainMenu.razor | 9 +- code/ui/mainmenu/MainMenu.razor.scss | 403 ++++++++++++++---------------- 4 files changed, 270 insertions(+), 322 deletions(-) (limited to 'code/ui/mainmenu') diff --git a/code/ui/mainmenu/LoadingScreen.razor b/code/ui/mainmenu/LoadingScreen.razor index 9e3e5ae..5954065 100644 --- a/code/ui/mainmenu/LoadingScreen.razor +++ b/code/ui/mainmenu/LoadingScreen.razor @@ -1,11 +1,10 @@ -@using System -@using Sandbox; -@using Sandbox.UI; -@using Sandbox.Menu; @attribute [StyleSheet] -@inherits RootPanel +@inherits Sandbox.UI.RootPanel @namespace DmMenu -@implements Sandbox.Menu.ILoadingScreenPanel +@using Sandbox +@using Sandbox.Menu +@using Sandbox.UI +@implements ILoadingScreenPanel @@ -16,8 +15,10 @@ {
-
@(Progress.Percent.ToString("0") )%
-
@(Progress.Mbps.ToString("0"))Mbps
+
@(Progress.Percent.ToString("0"))%
+
+ @(Progress.Mbps.ToString("0"))Mbps +
} @@ -33,7 +34,7 @@ { public LoadingProgress Progress; - public void OnLoadingProgress( LoadingProgress progress ) + public void OnLoadingProgress(LoadingProgress progress) { Progress = progress; StateHasChanged(); diff --git a/code/ui/mainmenu/LoadingScreen.razor.scss b/code/ui/mainmenu/LoadingScreen.razor.scss index 894d259..026bafa 100644 --- a/code/ui/mainmenu/LoadingScreen.razor.scss +++ b/code/ui/mainmenu/LoadingScreen.razor.scss @@ -1,101 +1,88 @@ -.loadingpanel -{ - background-image: url( "menu/boxes.webm" ); - background-position: center; - background-size: cover; - background-tint: #555; - width: 100%; - height: 100%; - color: white; - padding: 100px; - justify-content: center; - align-items: center; - flex-direction: column; - font-family: Poppins; - pointer-events: all; - color: #ccc; +.loadingpanel { + background-image: url("menu/boxes.webm"); + background-position: center; + background-size: cover; + background-tint: #555; + width: 100%; + height: 100%; + color: white; + padding: 100px; + justify-content: center; + align-items: center; + flex-direction: column; + font-family: Poppins; + pointer-events: all; + color: #ccc; - > .title - { - font-size: 80px; - font-weight: bolder; - } + > .title { + font-size: 80px; + font-weight: bolder; + } - > .subtitle - { - font-size: 30px; - color: #aaa; - font-weight: 200; - } + > .subtitle { + font-size: 30px; + color: #aaa; + font-weight: 200; + } - > .controls - { - position: absolute; - bottom: 100px; - right: 200px; + > .controls { + position: absolute; + bottom: 100px; + right: 200px; - .button - { - font-size: 20px; - padding: 10px 50px; - background-color: #666; - color: #111; - font-weight: bold; - cursor: pointer; + .button { + font-size: 20px; + padding: 10px 50px; + background-color: #666; + color: #111; + font-weight: bold; + cursor: pointer; - &:hover - { - background-color: #888; - } - } - } + &:hover { + background-color: #888; + } + } + } - > .progress - { - margin: 50px 0px; - background-color: #0003; - width: 500px; - border-radius: 5px; - overflow: hidden; + > .progress { + margin: 50px 0px; + background-color: #0003; + width: 500px; + border-radius: 5px; + overflow: hidden; - .bar - { - background-color: #fff1; - position: absolute; - height: 100%; - } + .bar { + background-color: #fff1; + position: absolute; + height: 100%; + } - .text-left - { - flex-grow: 1; - flex-shrink: 0; - } + .text-left { + flex-grow: 1; + flex-shrink: 0; + } - .text-right - { - flex-shrink: 0; - } + .text-right { + flex-shrink: 0; + } - .text-left, .text-right - { - padding: 5px 20px; - white-space: nowrap; - font-weight: bold; - opacity: 0.2; - font-size: 20px; - align-items: flex-end; + .text-left, .text-right { + padding: 5px 20px; + white-space: nowrap; + font-weight: bold; + opacity: 0.2; + font-size: 20px; + align-items: flex-end; - .unit - { - font-size: 15px; - opacity: 0.5; - } - } - } + .unit { + font-size: 15px; + opacity: 0.5; + } + } + } } -choosemappage.navigator-body -{ - margin: 0; - padding: 0; +choosemappage.navigator-body { + margin: 0; + padding: 0; } \ No newline at end of file diff --git a/code/ui/mainmenu/MainMenu.razor b/code/ui/mainmenu/MainMenu.razor index ccdf17a..a19cf56 100644 --- a/code/ui/mainmenu/MainMenu.razor +++ b/code/ui/mainmenu/MainMenu.razor @@ -1,8 +1,5 @@ -@using System -@using Sandbox; -@using Sandbox.MenuSystem; -@using Sandbox.UI; -@attribute [StyleSheet] +@attribute [StyleSheet] +@using Sandbox.UI @inherits Sandbox.UI.GameMenu.DefaultGameMenu