aboutsummaryrefslogtreecommitdiff
path: root/styles/index.css
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-04-17 17:24:59 +0200
committerlonkaars <l.leblansch@gmail.com>2021-04-17 17:24:59 +0200
commitdd77d6bb276f6a70b36f69d11cde7f5c8995f5e1 (patch)
tree89c5dd428459b38a07ad637efcad48cf7e870a6e /styles/index.css
parentb33439e75d4b22a0c68b5cb56851b518a5ea7db7 (diff)
home page without inline react styles :tada:
Diffstat (limited to 'styles/index.css')
-rw-r--r--styles/index.css72
1 files changed, 72 insertions, 0 deletions
diff --git a/styles/index.css b/styles/index.css
new file mode 100644
index 0000000..8ba12a6
--- /dev/null
+++ b/styles/index.css
@@ -0,0 +1,72 @@
+.topbar * {
+ --squareSize: 90px;
+}
+
+.loginOrRegisterBox {
+ vertical-align: top;
+ height: calc(var(--squareSize) + 2 * var(--spacing-large));
+ width: 100%;
+ max-width: calc(100% - var(--squareSize) - var(--spacing-medium) * 2 - var(--spacing-large) * 2);
+}
+
+.loginOrRegisterBox .inner {
+ position: relative;
+ width: 100%;
+ height: 100%;
+}
+
+.loginOrRegisterBox .inner .registerMessage {
+ user-select: none;
+ display: inline-block;
+ margin: 0 auto;
+ min-width: 240px;
+ max-width: 350px;
+ text-align: center;
+}
+
+.loginOrRegisterBox .inner .button.register {
+ background-color: var(--gray-700);
+ color: var(--foreground);
+}
+
+.gamemode .icon {
+ font-size: 64px;
+ font-size: 64px;
+ height: 64px;
+ display: inline-block;
+ position: absolute;
+ top: var(--spacing-large);
+ left: 50%;
+ transform: translateX(-50%);
+}
+
+.gamemode .text {
+ white-space: nowrap;
+ display: inline-block;
+ position: absolute;
+ bottom: var(--spacing-large);
+ left: 50%;
+ transform: translateX(-50%);
+ user-select: none;
+ font-weight: 500;
+}
+
+.topbar .gamemode {
+ --size: calc(var(--squareSize) + 2 * var(--spacing-large));
+ width: var(--size);
+ height: var(--size);
+}
+
+.topbar .profile .info {
+ left: calc(90px + 12px);
+ width: calc(100% - 90px - 12px);
+ height: 100%;
+}
+
+.topbar .profile .info .username { max-width: 178px; }
+.topbar .profile .info .score { margin-top: var(--spacing-small); }
+
+.topbar .profile .info .games .divider {
+ margin: 0 3px;
+}
+