Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "stylelint-config-standard"
}
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
"start-headless": "node .",
"lint": "standard **/*.js **/*.html | snazzy",
"polymer_lint": "node ./node_modules/polymer-cli/bin/polymer.js lint",
"stylelint": "stylelint 'template/**/*.css' 'template/**/*.html'",
"node_test": "mocha test/common test/nodejs --exit -r test/utils/coverage.js --reporter mocha-multi-reporters --reporter-options configFile=config-nodejs.json",
"nyc_instrument": "rimraf instrumented && nyc instrument src instrumented --produce-source-map",
"electron_test": "electron-mocha test/common test/electron --exit -r test/utils/coverage.js --reporter mocha-multi-reporters --reporter-options configFile=config-electron.json",
"test": "rimraf .nyc_output && npm run nyc_instrument && npm run node_test && npm run electron_test && npm run lint && npm run polymer_lint",
"test": "rimraf .nyc_output && npm run nyc_instrument && npm run node_test && npm run electron_test && npm run lint && npm run polymer_lint && npm run stylelint",
"coveralls": "nyc report --reporter=text-lcov | coveralls",
"reports": "npm test && nyc report --reporter=html && opn ./coverage/index.html && opn ./node-report.html && opn ./electron-report.html",
"postinstall": "bower install && bower prune && node ./post-install-patch.js",
Expand Down Expand Up @@ -58,7 +59,9 @@
"polymer-cli": "^1.6.0",
"rimraf": "^2.6.2",
"snazzy": "^7.1.1",
"standard": "^11.0.1"
"standard": "^11.0.1",
"stylelint": "^9.3.0",
"stylelint-config-standard": "^18.2.0"
},
"dependencies": {
"@babel/preset-env-standalone": "^7.0.0-beta.46",
Expand Down
4 changes: 2 additions & 2 deletions template/achievementbadge.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.user-achievement{
.user-achievement {
display: inline-block;
padding: 0 20px;
height: 40px;
Expand All @@ -16,6 +16,6 @@
height: 40px;
width: 40px;
border-radius: 50%;
background-color: #eebb00;
background-color: #eb0;
z-index: 10;
}
11 changes: 8 additions & 3 deletions template/auth-login.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@
max-width: 500px;
min-height: 64px;
}
.profiletitle {

.profiletitle {
font-size: 12pt;
font-weight: bold;
margin-top: 10px;
margin-bottom: 10px;
padding-bottom: 5px;
border-bottom: 1px solid lightgrey;
}

.loginbutton {
background-repeat: no-repeat;
background-position: 5px 5px;
Expand All @@ -23,15 +25,18 @@
background-color: #444;
max-height: 35px;
}
.loginbutton:before {

.loginbutton::before {
content: "Sign in with";
margin-left: 30px;
margin-right: 5px;
}

.loginbutton div {
text-decoration: none;
color: inherit;
}
.loginbutton div:first-letter {

.loginbutton div::first-letter {
text-transform: uppercase;
}
5 changes: 3 additions & 2 deletions template/auth-mainwindow.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,17 @@ app-header paper-icon-button {

app-header a {
color: white;
text-decoration: none
text-decoration: none;
}

app-header a:hover {
color: lightgrey;
text-decoration: none
text-decoration: none;
}

app-drawer {
z-index: 1000;

--app-drawer-scrim-background: rgba(0, 0, 0, 0.8);
}

Expand Down
14 changes: 11 additions & 3 deletions template/auth-profile.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,32 @@
max-width: 500px;
min-height: 64px;
}

.profilearea iron-image {
width: 64px;
height: 64px;
background-color: lightgray;
border-radius: 50%;
float: right;
}
.profiletitle {

.profiletitle {
font-size: 12pt;
font-weight: bold;
margin-top: 10px;
margin-bottom: 10px;
padding-bottom: 5px;
border-bottom: 1px solid lightgrey;
}

.providercard {
max-width: 128px;
}

paper-card paper-button {
font-size: 8pt;
}

.loginbutton {
background-repeat: no-repeat;
background-position: 5px 5px;
Expand All @@ -36,16 +41,19 @@ paper-card paper-button {
background-color: #444;
max-height: 35px;
}
.loginbutton:before {

.loginbutton::before {
content: "Sign in with";
margin-left: 30px;
margin-right: 5px;
}

.loginbutton a {
text-decoration: none;
color: inherit;
}
.loginbutton a:first-letter {

.loginbutton a::first-letter {
text-transform: uppercase;
}

2 changes: 0 additions & 2 deletions template/auth-profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
<link rel="import" type="css" href="auth-profile.css">
<link rel="import" type="css" href="data/auth-provider.css">
<template>
<style>
</style>
<auth-profile-data auth-profile-data="{{_authProfileData}}"></auth-profile-data>

<div class="profilearea">
Expand Down
10 changes: 5 additions & 5 deletions template/chat.css
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
#chat{
#chat {
height: 100%;
border-left: 1px solid darkgray;
}

#chattext{
#chattext {
padding: 2px;
border-bottom: 1px solid darkgray;
overflow-x: hidden;
overflow-y: auto;
word-wrap: break-word;
}

.chatusername{
.chatusername {
width: 100px;
font-weight: 500;
padding-right: 2px;
}

paper-input{
paper-input {
padding: 2px;
}
}
3 changes: 1 addition & 2 deletions template/chat.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
<dom-module id="papan-chat">
<link rel="import" type="css" href="chat.css">
<template>
<style include="iron-flex iron-flex-alignment">
</style>
<style include="iron-flex iron-flex-alignment"></style>
<style is="custom-style" include="iron-flex iron-flex-alignment"></style>
<div id="chat" class="layout vertical">
<div id="chattext" class="layout flex"></div>
Expand Down
9 changes: 6 additions & 3 deletions template/data/auth-provider.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions template/drawermenu.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
app-drawer {
z-index: 1000;
z-index: 1000;
}

a {
color: black;
text-decoration: none;
}
color: black;
text-decoration: none;
}
2 changes: 1 addition & 1 deletion template/friendlist.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#user-friend-list{
#user-friend-list {
margin-top: 20px;
}
7 changes: 4 additions & 3 deletions template/game.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
display: block;
height: 200px;
width: 100%;

--iron-image-width: 100%;
}

Expand All @@ -20,7 +21,7 @@
padding-top: 10px;
padding-left: 10px;
font-size: 20pt;
background-color: rgba(255, 255, 255, 0.7)
background-color: rgba(255, 255, 255, 0.7);
}

#gameInfos {
Expand All @@ -40,5 +41,5 @@ a {
}

a :hover {
color: #555599;
}
color: #559;
}
8 changes: 4 additions & 4 deletions template/gamebadge.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ paper-card {
display: inline-block;
margin-left: 10px;
margin-right: 10px;
transition: all .2s ease-in-out;
transition: all 0.2s ease-in-out;

--paper-card-header-image-text: {
--paper-card-header-image-text: {
background-color: rgba(255, 255, 255, 0.8);
width: 100%;
}
Expand Down Expand Up @@ -43,5 +43,5 @@ a {
}

a :hover {
color: #555599;
}
color: #559;
}
9 changes: 5 additions & 4 deletions template/joinedlobbies.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
#joinedlobbies{
#joinedlobbies {
width: 50px;
height: 100%;
background-color: lightgray;
}

paper-icon-button, #addlobby{
paper-icon-button,
#addlobby {
background-color: royalblue;
color: white;
border-radius: 50%;
margin: 5px;
}

paper-button{
paper-button {
background-color: gray;
color: white;
border-radius: 50%;
Expand All @@ -24,4 +25,4 @@ paper-button{

a {
text-decoration: none;
}
}
11 changes: 6 additions & 5 deletions template/lobby.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
display: block;
height: 130px;
width: 100%;

--iron-image-width: 100%;
}

Expand All @@ -20,7 +21,7 @@
padding-top: 10px;
padding-left: 10px;
font-size: 20pt;
background-color: rgba(255, 255, 255, 0.7)
background-color: rgba(255, 255, 255, 0.7);
}

#tabs {
Expand All @@ -29,7 +30,7 @@
}

#main-view {
background-color:#cccccc;
background-color: #ccc;
}

papan-chat {
Expand All @@ -45,8 +46,8 @@ papan-chat {
height: 100%;
}

#ownerview #joinerview{
display: none
#ownerview #joinerview {
display: none;
}

.lobbyinformation {
Expand All @@ -59,4 +60,4 @@ papan-chat {
border-top: 1px solid lightgrey;
padding-top: 5px;
margin-top: 5px;
}
}
Loading