Skip to content

Commit

Permalink
feat: update common styles
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-yarmosh committed Sep 7, 2024
1 parent 6d84b3e commit 8e0d9bb
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion assets/css/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ input[disabled], textarea[disabled], select[disabled='disabled'] {
}

@layer classes {
.title {
.page-title {
@apply text-2xl font-bold
}
}
6 changes: 3 additions & 3 deletions pages/credits.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="flex min-h-full flex-col p-6" :class="{'min-w-[640px]': creditsChanges.length}">
<div class="mb-6 flex">
<h1 class="title">Credits</h1>
<div class="min-h-full p-6" :class="{'min-w-[640px]': creditsChanges.length}">
<div class="mb-4 flex">
<h1 class="page-title">Credits</h1>
<NuxtLink to="https://github.com/sponsors/jsdelivr" tabindex="-1" class="ml-auto" target="_blank" rel="noopener">
<Button label="Become a sponsor" icon="pi pi-github"/>
</NuxtLink>
Expand Down
2 changes: 1 addition & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="grid grid-cols-2 gap-4 p-6">
<h1 class="title col-span-2 mb-2">Overview</h1>
<h1 class="page-title col-span-2 mb-2">Overview</h1>

<div class="rounded-xl border bg-surface-0 max-xl:col-span-2 dark:bg-dark-800">
<p class="flex border-b px-6 py-3 font-bold text-bluegray-700 dark:text-dark-0">Summary</p>
Expand Down
6 changes: 3 additions & 3 deletions pages/probes.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<!-- TODO: P1: @MartinKolarik - review including all texts after the design update. -->
<div class="flex min-h-full flex-col p-6" :class="{'min-w-[1024px]': probes?.length}">
<div class="mb-6 flex">
<h1 class="title">Probes</h1>
<div class="min-h-full p-6" :class="{'min-w-[1024px]': probes?.length}">
<div class="mb-4 flex">
<h1 class="page-title">Probes</h1>
<Button class="ml-auto" @click="adoptProbeDialog = true">
<nuxt-icon class="pi" name="capture"/>
<span class="font-bold">Adopt a probe</span>
Expand Down
6 changes: 2 additions & 4 deletions pages/settings.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<template>
<div class="flex min-h-full flex-col p-6">
<div class="min-h-full p-6">
<div>
<!-- TODO: P3: this and most likely other elements should use custom classes, e.g. page-title -->
<!-- https://tailwindcss.com/docs/adding-custom-styles#adding-component-classes -->
<h1 class="title">Settings</h1>
<h1 class="page-title">Settings</h1>
</div>
<div class="mt-6 flex rounded-xl border bg-surface-0 p-6 max-sm:flex-col dark:bg-dark-800">
<div class="max-sm:mb-4 sm:w-2/5">
Expand Down
4 changes: 2 additions & 2 deletions pages/tokens.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="flex min-h-full flex-col p-6" :class="{'min-w-[640px]': tokens.length}">
<div class="min-h-full p-6" :class="{'min-w-[640px]': tokens.length}">
<div class="mb-4 flex">
<h1 class="title">Tokens</h1>
<h1 class="page-title">Tokens</h1>
<Button class="ml-auto" label="Generate new token" @click="openTokenDetails('generate')"/>
</div>
<p class="xl:w-1/2">
Expand Down

0 comments on commit 8e0d9bb

Please sign in to comment.