Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: replace inline styles with tailwind classes in docs examples #3447

Merged
merged 5 commits into from
Jun 21, 2023
Merged
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
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<template>
<div style="height: 300px; width: 100%;">
<div class="h-[300px] w-full">
<ag-grid-vue
class="ag-theme-vuestic"
style="width: 100%; height: 100%;"
class="ag-theme-vuestic w-full h-full"
:columnDefs="columnDefs"
:rowData="rowData"
:modules="modules"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<template>
<div style="height: 300px; width: 100%;">
<div class="h-[300px] w-full">
<ag-grid-vue
class="ag-theme-vuestic"
style="width: 100%; height: 100%;"
class="ag-theme-vuestic w-full h-full"
:defaultColDef="defaultColDef"
:columnDefs="columnDefs"
:rowData="rowData"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<template>
<div style="height: 300px; width: 100%;">
<div class="h-[300px] w-full">
<ag-grid-vue
class="ag-theme-vuestic"
style="width: 100%; height: 100%;"
class="ag-theme-vuestic w-full h-full"
:defaultColDef="defaultColDef"
:columnDefs="columnDefs"
:rowData="rowData"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<template>
<div style="height: 300px; width: 100%;">
<div class="h-[300px] w-full">
<ag-grid-vue
class="ag-theme-vuestic"
style="width: 100%; height: 100%;"
class="ag-theme-vuestic w-full h-full"
:paginationAutoPageSize="true"
:pagination="true"
:columnDefs="columnDefs"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<template>
<div style="height: 300px; width: 100%;">
<div class="h-[300px] w-full">
<ag-grid-vue
class="ag-theme-vuestic"
style="width: 100%; height: 100%;"
class="ag-theme-vuestic w-full h-full"
:columnDefs="columnDefs"
:rowData="rowData"
:pinnedTopRowData="pinnedTopRowData"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<template>
<va-checkbox v-model="isStriped" label="Striped" />
<va-checkbox v-model="isHoverable" label="Hoverable" />
<div style="height: 300px; width: 100%;">
<div class="h-[300px] w-full">
<ag-grid-vue
class="ag-theme-vuestic"
class="ag-theme-vuestic w-full h-full"
:class="{ 'ag-theme-vuestic--striped': isStriped, 'ag-theme-vuestic--hoverable': isHoverable }"
style="width: 100%; height: 100%;"
:columnDefs="columnDefs"
:rowData="rowData"
:modules="modules"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
>
<component
:is="item.image"
style="width: 100%; min-height: 100px;"
class="w-full min-h-[100px]"
/>
</div>
</va-card-content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class="mb-3"
/>
<va-button
style="width: max-content;"
class="w-max"
@click="reset"
>
Reset config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
</div>

<div
class="col"
style="width: 100%;"
class="col w-full"
>
<div class="va-code-snippet">
<span class="tag">va-icon name="<CodeInput
Expand Down Expand Up @@ -56,13 +55,11 @@
<div class="demo-footer mt-2">
<div class="flex items-center">
<div
style="width: 64px;"
class="va-code-snippet va-code-snippet--icon mr-2"
class="va-code-snippet va-code-snippet--icon mr-2 w-[64px]"
v-html="renderHTML(iconName)"
/>
<div
class="va-code-snippet"
style="width: 100%;"
class="va-code-snippet w-full"
>
{{ renderHTML(iconName) }}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

<va-card class="card card-2">
<va-card-content>
<table style="width: 100%;">
<table class="w-full">
<tr>
<td>Amount</td>
<td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<p>
{{ name }}
</p>
<p style="font-size: 14px;">
<p class="text-sm">
var(--va-{{ kebabCase(name) }})<span class="ml-2">{{ value }}</span>
</p>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<va-button
preset="secondary"
color="#fff"
style="margin-left: -0.5rem;"
class="-ml-[0.5rem]"
>
Follow
</va-button>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<va-card
color="background-element"
style="padding: 0.75rem;"
class="p-3"
>
<!-- align-content-start -->
<div class="row align-content-start">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<va-card
color="background-element"
style="padding: 0.75rem;"
class="p-3"
>
<!-- align--start -->
<div class="row align-start">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<va-card
color="background-element"
style="padding: 0.75rem;"
class="p-3"
>
<!-- justify--start -->
<div class="row justify-start">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<va-card
color="background-element"
style="padding: 0.75rem;"
class="p-3"
>
<div class="row">
<!-- align-self-start -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<va-card
color="background-element"
style="padding: 0.75rem;"
class="p-3"
>
<div class="row">
<div class="flex flex-col md12">
Expand Down
5 changes: 2 additions & 3 deletions packages/docs/page-config/styles/grid/examples/Default.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<template>
<va-card
color="background-element"
style="padding: 0.75rem;"
class="p"
>
<div class="row">
<div
class="flex flex-col"
style="width: 100%;"
class="flex flex-col w-full"
>
<div class="item">
Now I'm flexible
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/page-config/styles/grid/examples/Gutters.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<va-card
color="background-element"
style="padding: 0.75rem;"
class="p-3"
>
<div class="layout gutter--md">
<div class="row">
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/page-config/styles/grid/examples/Offsets.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<va-card
color="background-element"
style="padding: 0.75rem;"
class="p-3"
>
<div class="row">
<div class="flex flex-col xs1 offset-md3 offset-lg2">
Expand Down