Skip to content

Commit

Permalink
Add new styling text method
Browse files Browse the repository at this point in the history
  • Loading branch information
SaraBoutej committed Jul 4, 2024
1 parent d2a599c commit 95ed23f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
-->
<template>
<div>
<p class="text-start text-color subtitle-1">{{ whoCanView }}</p>
<p class="text-start">{{ whoCanView }}</p>
<v-select
v-model="type"
:items="typeLabel"
item-text="text"
item-value="value"
dense
class="caption pt-0"
class="pt-0"
outlined />
<exo-identity-suggester
v-if="showAccessPermissionsGroupSuggester"
Expand All @@ -41,7 +41,7 @@
include-groups
include-spaces
required />
<span v-if="!accessPermissions.length && showAccessPermissionsGroupSuggester" class="caption mx-2 mt-n3 position-absolute error-color">
<span v-if="!accessPermissions.length && showAccessPermissionsGroupSuggester" class="text-subtitle mx-2 mt-n3 position-absolute error-color">
{{ $t('siteNavigation.required.error.message') }}
</span>
<template v-if="showAccessPermissionsList">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
-->
<template>
<div>
<p class="text-start text-color subtitle-1">{{ whoCanEdit }}</p>
<p class="text-start">{{ whoCanEdit }}</p>
<exo-identity-suggester
ref="navigationNodeEditPermissions"
:labels="suggesterLabels"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,16 @@
required
@blur="convertSiteName">
<template #title>
<v-label>
<span class="text-color">
{{ $t('siteManagement.label.siteLabel.title') }} *
</span>
</v-label>
<span>
{{ $t('siteManagement.label.siteLabel.title') }} *
</span>
</template>
</translation-text-field>
</v-card-text>
<v-card-text class="d-flex pb-2">
<v-label>
<span class="text-color">
{{ $t('siteManagement.label.siteName.title') }} *
</span>
</v-label>
<span>
{{ $t('siteManagement.label.siteName.title') }} *
</span>
</v-card-text>
<v-card-text class="d-flex py-0">
<v-text-field
Expand All @@ -89,11 +85,9 @@
back-icon
rich-editor>
<template #title>
<v-label>
<span class="text-color">
{{ $t('siteManagement.label.siteDescription.title') }}
</span>
</v-label>
<span>
{{ $t('siteManagement.label.siteDescription.title') }}
</span>
</template>
<rich-editor
id="siteDescription"
Expand All @@ -105,12 +99,8 @@
</translation-text-field>
</v-card-text>
<v-card-text class="mt-3 py-4 px-3">
<v-label>
<span class="text-color mb-2 px-1 text-capitalize"> {{ $t('siteManagement.label.banner') }}</span>
</v-label>
<v-label>
<span class="text-color caption px-1 text-capitalize"> {{ $t('siteManagement.label.caption') }}</span>
</v-label>
<p class="mb-2 px-1 text-capitalize"> {{ $t('siteManagement.label.banner') }}</p>
<p class="text-subtitle px-1 text-capitalize"> {{ $t('siteManagement.label.caption') }}</p>
<site-management-banner-selector
ref="siteBannerSelector"
:src="siteBannerUrl"
Expand All @@ -121,17 +111,15 @@
@reset="resetBannerUploadId" />
</v-card-text>
<v-card-text class="mt-4">
<v-label>
<span class="text-color mb-2"> {{ $t('siteManagement.label.displayOrder') }}</span>
</v-label>
<span class="mb-2"> {{ $t('siteManagement.label.displayOrder') }}</span>
<v-row class="mx-0 mt-2">
<v-col class="d-flex flex-row px-0 py-0 col-10">
<v-switch
v-model="displayed"
:disabled="displayedDisabled"
class="mt-2" />
<label v-if="displayed" class="subtitle-1 mx-1"> {{ $t('siteManagement.label.displayed') }} </label>
<label v-else class="subtitle-1 mx-1"> {{ $t('siteManagement.label.notDisplayed') }} </label>
<p v-if="displayed" class="mx-1"> {{ $t('siteManagement.label.displayed') }} </p>
<p v-else class="mx-1"> {{ $t('siteManagement.label.notDisplayed') }} </p>
</v-col>
<v-col class="col-2 px-0 py-0 mt-n1 orderDisplay">
<v-text-field
Expand Down

0 comments on commit 95ed23f

Please sign in to comment.