-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
From week 11, completed user profiles.
- Loading branch information
Showing
7 changed files
with
169 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,36 @@ | |||
.panel { | |||
margin-bottom: 0; | |||
} | |||
|
|||
h3 { | |||
margin: 0; | |||
} | |||
|
|||
.buttons { | |||
padding-bottom: 5px; | |||
} | |||
|
|||
.buttons-bottom { | |||
padding-top: 5px; | |||
} | |||
|
|||
#timeout-time { | |||
display: inline-block; width: auto; | |||
} | |||
|
|||
#user-chat { | |||
height: 252px; | |||
overflow-x: hidden; | |||
overflow-y: auto; | |||
user-select: text; | |||
} | |||
|
|||
a.userlink, a.userlink:hover, a.userlink:visited { | |||
text-decoration: none; | |||
color: inherit; | |||
cursor: text; | |||
} | |||
|
|||
.btn.btn-compact { | |||
padding: 3px 6px; | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,40 @@ | |||
// # # # # ## # # # | |||
// # # # # # | |||
// # # #### ## # ## #### ## ### ### | |||
// # # # # # # # # # # # | |||
// # # # # # # # # ##### ### | |||
// # # # # # # # # # # # # | |||
// ### ## ### ### ### ## ### ### #### | |||
class Utilities { | |||
// # ## | |||
// # # # | |||
// ## ### ### ### ### ## # ### ### | |||
// # # # # # # # # # # ## # ## ## | |||
// # # # # ## # # ## ## # # ## ## | |||
// ## # # # # # # # ## ## ### ### | |||
// ### | |||
// Based on http://stackoverflow.com/a/19826393/214137 | |||
static changeCss(cssName, cssValue, $) { | |||
var cssMainContainer = $("#css-modifier-container"), | |||
classContainer = cssMainContainer.find(`div[data-class="${cssName}"]`); | |||
|
|||
// Create hidden css main container if it doesn't exist. | |||
if (cssMainContainer.length === 0) { | |||
cssMainContainer = $("<div></div>").attr({id: "css-modifier-container"}); | |||
cssMainContainer.hide(); | |||
cssMainContainer.appendTo($("body")); | |||
} | |||
|
|||
// Create div for the css if it doesn't exist. | |||
if (classContainer.length === 0) { | |||
classContainer = $("<div></div>").attr({"data-class": cssName}); | |||
classContainer.appendTo(cssMainContainer); | |||
} | |||
|
|||
// Replace style in the css div. | |||
classContainer.html(`<style>${cssName}{${cssValue}}</style>`); | |||
} | |||
|
|||
} | |||
|
|||
module.exports = Utilities; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters