Merge branch 'prod'

pull/4672/head
Cagatay Civici 2023-10-21 13:25:57 +03:00
commit 81a8de5ae6
5 changed files with 31 additions and 19 deletions

View File

@ -1,13 +1,25 @@
.doc-tabmenu { .doc-tabmenu {
list-style: none; list-style: none;
margin: 0 17rem 0 0; margin: 0;
padding: 0; padding: 0;
display: flex; display: flex;
margin-bottom: 2rem; margin-bottom: 2rem;
overflow: auto;
position: relative;
&:after {
display: block;
position: absolute;
bottom: 0;
width: 100%;
border-bottom: 1px solid var(--surface-border); border-bottom: 1px solid var(--surface-border);
overflow: visible; content: '';
}
li { li {
position: relative;
z-index: 1;
button { button {
background-color: transparent; background-color: transparent;
border: 0 none; border: 0 none;
@ -19,7 +31,6 @@
letter-spacing: 1px; letter-spacing: 1px;
cursor: pointer; cursor: pointer;
margin: 0; margin: 0;
margin: 0 0 -1px 0;
transition: all 0.2s; transition: all 0.2s;
border-bottom: 1px solid transparent; border-bottom: 1px solid transparent;
border-top-right-radius: var(--border-round); border-top-right-radius: var(--border-round);
@ -39,8 +50,8 @@
&.doc-tabmenu-active { &.doc-tabmenu-active {
button { button {
color: var(--primary-color);
border-bottom-color: var(--primary-color); border-bottom-color: var(--primary-color);
color: var(--primary-color);
} }
} }
} }
@ -82,7 +93,9 @@
opacity: 0.7; opacity: 0.7;
margin-left: 1rem; margin-left: 1rem;
display: none; display: none;
transition: opacity .3s, color .3s; transition: all .2s;
border-radius: var(--border-radius);
@include focus-visible();
} }
&:hover { &:hover {
@ -114,6 +127,9 @@
a { a {
color: var(--primary-color); color: var(--primary-color);
font-weight: 600; font-weight: 600;
transition: all .2s;
border-radius: var(--border-radius);
@include focus-visible();
&:hover { &:hover {
text-decoration: underline; text-decoration: underline;

View File

@ -93,10 +93,6 @@
display: none; display: none;
} }
.doc-tabmenu {
margin-right: 0;
}
.video-container { .video-container {
position: relative; position: relative;
width: 100%; width: 100%;

View File

@ -3,7 +3,7 @@
<p>When <i>readOnly</i> present, value cannot be edited.</p> <p>When <i>readOnly</i> present, value cannot be edited.</p>
</DocSectionText> </DocSectionText>
<div class="card flex justify-content-center"> <div class="card flex justify-content-center">
<Rating v-model="value" readonly /> <Rating v-model="value" readonly :cancel="false" />
</div> </div>
<DocSectionCode :code="code" /> <DocSectionCode :code="code" />
</template> </template>
@ -12,15 +12,15 @@
export default { export default {
data() { data() {
return { return {
value: 5, value: 3,
code: { code: {
basic: ` basic: `
<Rating v-model="value" readonly /> <Rating v-model="value" readonly :cancel="false" />
`, `,
options: ` options: `
<template> <template>
<div class="card flex justify-content-center"> <div class="card flex justify-content-center">
<Rating v-model="value" readonly /> <Rating v-model="value" readonly :cancel="false" />
</div> </div>
</template> </template>
@ -28,7 +28,7 @@ export default {
export default { export default {
data() { data() {
return { return {
value: null value: 3
} }
} }
}; };
@ -37,14 +37,14 @@ export default {
composition: ` composition: `
<template> <template>
<div class="card flex justify-content-center"> <div class="card flex justify-content-center">
<Rating v-model="value" readonly /> <Rating v-model="value" readonly :cancel="false" />
</div> </div>
</template> </template>
<script setup> <script setup>
import { ref } from 'vue'; import { ref } from 'vue';
const value = ref(null); const value = ref(3);
<\/script> <\/script>
` `
} }

View File

@ -69,7 +69,7 @@ export default {
}, },
{ {
id: 'csp', id: 'csp',
label: 'Content Security Policy (CSP)', label: 'CSP',
children: [ children: [
{ {
id: 'nonce', id: 'nonce',

View File

@ -29,7 +29,7 @@ export default {
}, },
{ {
id: 'checkbox', id: 'checkbox',
label: 'Checkbox & RadioButton', label: 'Check & Radio',
component: CheckboxDoc component: CheckboxDoc
} }
] ]