Skip to content

Commit

Permalink
More work on settings, removing css redundancy.
Browse files Browse the repository at this point in the history
  • Loading branch information
dscalzi committed May 30, 2018
1 parent ee55446 commit 30c258d
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 64 deletions.
84 changes: 24 additions & 60 deletions app/assets/css/launcher.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ p {
-webkit-margin-after: 0em;
}

/* Set default font and color. */
body, button {
font-family: 'Avenir Book';
color: white;
}

/*body {
background: url('./../images/backgrounds/0.jpg') no-repeat center center fixed;
Expand Down Expand Up @@ -217,7 +222,6 @@ p {
align-items: center;
height: 100%;
width: 100%;
transition: 0.25s ease;
}

#welcomeContent {
Expand Down Expand Up @@ -289,18 +293,14 @@ p {
}

#welcomeDescription {
font-family: 'Avenir Book';
text-align: justify;
color: white;
font-size: 13px;
font-weight: 100;
text-shadow: rgba(255, 255, 255, 0.75) 0px 0px 20px
}

#welcomeDescCTA {
font-family: 'Avenir Book';
text-align: center;
color: white;
font-size: 14px;
font-weight: 100;
text-shadow: rgba(255, 255, 255, 0.75) 0px 0px 20px
Expand All @@ -309,9 +309,7 @@ p {
/* Login button styles. */
#welcomeButton {
background: none;
color: #fff;
font-weight: bold;
font-family: 'Avenir Book';
letter-spacing: 2px;
border: none;
padding: 15px 5px;
Expand Down Expand Up @@ -370,17 +368,8 @@ p {
* *
******************************************************************************/

/* Login span styles. */
.loginSpan {
font-family: 'Avenir Book';
font-size: 14px;
color: #fff;
font-weight: bold;
}

/* Styles for dimmer login span. */
.loginSpanDim {
font-family: 'Avenir Book';
font-size: 12px;
color: #848484;
font-weight: bold;
Expand Down Expand Up @@ -417,7 +406,6 @@ p {

/* Login form anchor styles. */
#loginForm a {
font-family: 'Avenir Book';
font-size: 12px;
color: #848484;
font-weight: bold;
Expand Down Expand Up @@ -450,6 +438,7 @@ p {
margin-bottom: 25px;
font-size: 12px;
letter-spacing: 1px;
font-weight: bold;
}

/* Container to organize login field elements. */
Expand Down Expand Up @@ -559,9 +548,7 @@ p {
/* Login button styles. */
#loginButton {
background: none;
color: #fff;
font-weight: bold;
font-family: 'Avenir Book';
letter-spacing: 2px;
border: none;
padding: 15px 5px;
Expand Down Expand Up @@ -736,7 +723,6 @@ p {

/* Disclaimer text styles. */
.loginDisclaimerText {
font-family: 'Avenir Book';
font-size: 7px;
color: #848484;
font-weight: bold;
Expand Down Expand Up @@ -833,9 +819,25 @@ p {
#settingsContainer {
position: relative;
height: 100%;
display: flex;
background: rgba(0, 0, 0, 0.50);
}

#settingsContainerLeft {
height: 100%;
width: 25%;
}

#settingsNavContainer {
display: flex;
flex-direction: column;
}

#settingsContainerRight {
height: 100%;
width: 75%;
}

/*******************************************************************************
* *
* Landing View (Structural Styles) *
Expand Down Expand Up @@ -994,8 +996,6 @@ p {
#newsArticleAuthor {
display: inline-block;
font-size: 10px;
color: rgb(255, 255, 255);
font-family: 'Avenir Book';
padding: 0px 5px;
font-weight: bold;
border-radius: 2px;
Expand All @@ -1018,8 +1018,7 @@ p {
margin-top: 5px;
display: inline-block;
font-size: 10px;
color: rgb(255, 255, 255);
font-family: 'Avenir Book';
color: #ffffff;
text-decoration: none;
transition: 0.25s ease;
outline: none;
Expand All @@ -1040,8 +1039,6 @@ p {

/* Article content styles. */
#newsArticleContentScrollable {
color: white;
font-family: 'Avenir Book';
font-size: 12px;
max-width: 80%;
margin: 25px 35px 0px 25px;
Expand Down Expand Up @@ -1092,17 +1089,13 @@ p {

/* Navigation status span. */
#newsNavigationStatus {
color: white;
font-family: 'Avenir Book';
font-size: 12px;
margin: 0px 15px;
}

/* Left and right navigation button styles. */
#newsNavigateLeft,
#newsNavigateRight {
color: white;
font-family: 'Avenir Book';
background: none;
border: none;
outline: none;
Expand Down Expand Up @@ -1153,9 +1146,7 @@ p {

/* News error content (message). */
.newsErrorContent {
color: white;
font-size: 20px;
font-family: 'Avenir Book';
}
#newsErrorLoading {
display: flex;
Expand All @@ -1166,8 +1157,6 @@ p {
}
/* News error retry button styles. */
#newsErrorRetry {
color: #ffffff;
font-family: 'Avenir Book';
font-size: 12px;
font-weight: bold;
cursor: pointer;
Expand Down Expand Up @@ -1333,8 +1322,6 @@ p {
display: flex;
justify-content: center;
align-items: center;
font-family: 'Avenir Book';
color: #fff;
transition: 0.25s ease;
font-weight: bold;
letter-spacing: 2px;
Expand All @@ -1351,12 +1338,10 @@ p {

/* User profile name text. */
#user_text {
font-family: 'Avenir Book';
font-size: 12px;
min-width: 135px;
font-weight: 900;
letter-spacing: 1px;
color: white;
text-shadow: 0px 0px 20px black;
position: absolute;
right: 95px;
Expand Down Expand Up @@ -1470,8 +1455,6 @@ p {

/* Style for a general label on the bottom of the landing view. */
.bot_label {
color: white;
font-family: 'Avenir Book';
font-size: 9px;
letter-spacing: 1px;
font-weight: bold;
Expand Down Expand Up @@ -1500,7 +1483,6 @@ p {
/* Span which displays the player count of the selected server. */
#player_count {
color: #949494;
font-family: 'Avenir Book';
font-size: 8px;
font-weight: 900;
text-shadow: 0px 0px 20px #949494;
Expand All @@ -1519,6 +1501,7 @@ p {
font-size: 30px;
color: #848484;
margin-left: 15px;
font-family: 'sans-serif';
}

/* Tooltip which displays more details about the mojang statuses. */
Expand Down Expand Up @@ -1615,7 +1598,6 @@ p {

/* Button which opens the news view. */
#newsButton {
font-family: 'Avenir Book';
background: none;
border: none;
cursor: pointer;
Expand Down Expand Up @@ -1676,11 +1658,9 @@ p {

/* The launch button. */
#launch_button {
font-family: 'Avenir Book';
background: none;
border: none;
cursor: pointer;
color: #fff;
font-weight: 900;
letter-spacing: 2px;
text-shadow: 0px 0px 0px #bebcbb;
Expand Down Expand Up @@ -1717,8 +1697,6 @@ p {

/* Span which displays percentage complete. */
#launch_progress_label {
color: white;
font-family: 'Avenir Book';
font-weight: 900;
letter-spacing: 1px;
text-shadow: 0px 0px 0px #bebcbb;
Expand Down Expand Up @@ -1844,16 +1822,13 @@ p {
#overlayTitle {
font-family: 'Avenir Medium';
font-size: 20px;
color: #fff;
font-weight: bold;
letter-spacing: 1px;
}

/* Overlay description styles. */
#overlayDesc {
font-family: 'Avenir Book';
font-size: 12px;
color: #fff;
font-weight: bold;
}

Expand Down Expand Up @@ -1888,7 +1863,6 @@ p {

/* Overlay dismiss option styles. */
#overlayDismiss {
font-family: 'Avenir Book';
font-weight: bold;
font-size: 10px;
text-decoration: none;
Expand Down Expand Up @@ -2050,19 +2024,15 @@ p {

/* The name of the server listing. */
.serverListingName {
font-family: 'Avenir Book';
font-size: 14px;
font-weight: bold;
color: #fff;
}

/* Description for the server listing. */
.serverListingDescription {
font-family: 'Avenir Book';
font-size: 10px;
line-height: 10px;
font-weight: bold;
color: #fff;
}

/* Content container for the server listing's information. */
Expand All @@ -2075,8 +2045,6 @@ p {
/* The minecraft version of the server listing. */
.serverListingVersion {
font-size: 10px;
color: #fff;
font-family: 'Avenir Book';
text-align: center;
display: flex;
justify-content: center;
Expand All @@ -2090,7 +2058,6 @@ p {

/* The revision version of the server's manifest. */
.serverListingRevision {
font-family: 'Avenir Book';
color: #969696;
font-size: 10px;
line-height: 12px;
Expand All @@ -2111,13 +2078,11 @@ p {
opacity: 0;
width: 65px;
background-color: rgba(0, 0, 0, 0.40);
color: #fff;
text-align: center;
border-radius: 4px;
position: absolute;
z-index: 1;
left: 130%;
font-family: 'Avenir Book';
font-size: 10px;
transition: visibility 0s linear 0.25s, opacity 0.25s ease;
}
Expand Down Expand Up @@ -2177,7 +2142,6 @@ p {
/* Server selection cancel button styles. */
#serverSelectCancel,
#accountSelectCancel {
font-family: 'Avenir Book';
font-weight: bold;
font-size: 10px;
text-decoration: none;
Expand Down
2 changes: 0 additions & 2 deletions app/assets/js/discordwrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ exports.initRPC = function(genSettings, servSettings, initialDetails = 'Waiting
console.log('Unable to initialize Discord Rich Presence: ' + error.message, error)
}
})

return rpc
}

exports.updateDetails = function(details){
Expand Down
2 changes: 1 addition & 1 deletion app/login.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div id="loginContent">
<form id="loginForm">
<img id="loginImageSeal" src="assets/images/WesterosSealCircle.png"/>
<span class="loginSpan" id="loginSubheader">MINECRAFT LOGIN</span>
<span id="loginSubheader">MINECRAFT LOGIN</span>
<div class="loginFieldContainer">
<svg id="profileSVG" class="loginSVG" viewBox="40 37 65.36 61.43">
<g>
Expand Down
14 changes: 13 additions & 1 deletion app/settings.ejs
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
<div id="settingsContainer" style="display: none;">

<div id="settingsContainerLeft">
<div id="settingsNavContainer">
<div id="settingsNavHeader">
<span id="settingsNavHeaderText">Settings</span>
</div>
<div id="settingsNavItems">
<div class="settingsNavItem">

</div>
</div>
</div>
</div>
<div id="settingsContainerRight"></div>
</div>

0 comments on commit 30c258d

Please sign in to comment.