Skip to content

Commit

Permalink
feat: apply layout fixes from last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Jul 14, 2020
1 parent 8911152 commit 0d63fb2
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 20 deletions.
12 changes: 8 additions & 4 deletions assets/css/general/general.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,26 +46,30 @@ a:focus,
}

.material-container {
@apply bg-elevation border-util rounded-lg overflow-hidden m-5 shadow;
@apply overflow-hidden rounded-lg shadow bg-elevation border-util;
/* Override transition with these */
transition: var(--transition--transform), var(--transition--border-color);
}

.container--separator > * {
@apply my-4;
}

/* ---------------- Component specific ---------------- */

.icon {
stroke-width: 1.6;
/* Align middle is necessary for some reason for mobile devices */
@apply text-default align-middle overflow-visible;
@apply overflow-visible align-middle text-default;
}

.tag-container {
@apply flex flex-wrap items-start content-start p-1 bg-depth overflow-hidden;
@apply flex flex-wrap items-start content-start p-1 overflow-hidden bg-depth;
}

.tag {
transition: var(--transition--border-color), var(--transition--color);
@apply select-none border border-primary-hover rounded overflow-hidden px-1 m-1;
@apply px-1 m-1 overflow-hidden border rounded select-none border-primary-hover;
}

.tag:hover,
Expand Down
2 changes: 1 addition & 1 deletion pages/faq.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<main>
<main class="container--separator">
<ContentContainer
:separator="true"
title="General"
Expand Down
9 changes: 6 additions & 3 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@
<Notifications />
</div>

<Errors />
<!-- Content -->
<div class="container--separator">
<Errors />

<Post v-for="post in posts.data" :key="post.id" :post="post" />
<Post v-for="post in posts.data" :key="post.id" :post="post" />

<Controls />
<Controls />
</div>
</main>
</template>

Expand Down
2 changes: 1 addition & 1 deletion pages/legal.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<main>
<main class="container--separator">
<!-- Separator -->
<ContentContainer :separator="true" title="Disclaimer" />

Expand Down
18 changes: 8 additions & 10 deletions pages/premium.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
@@ -0,0 +1,172 @@
<template>
<main>
<ControlPannel
v-if="hasValidLicenseKey"
class="h-full min-h-screen mx-auto"
/>

<!-- Log In -->
<div v-else class="grid min-h-screen" style="place-items: center;">
<div class="w-full max-w-screen-sm">
<main class="flex h-screen">
<template v-if="hasValidLicenseKey">
</template>

<template v-else>
<div class="w-full m-auto">
<!-- Log In -->
<errors />

<login />
Expand All @@ -18,7 +16,7 @@

<subscription />
</div>
</div>
</template>
</main>
</template>

Expand Down
2 changes: 1 addition & 1 deletion pages/usage.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<main>
<main class="container--separator">
<!-- General Usage -->

<ContentContainer
Expand Down

0 comments on commit 0d63fb2

Please sign in to comment.