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

now builds all components as custom web components #916

Merged
merged 1 commit into from
Dec 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
146 changes: 78 additions & 68 deletions src/assets/scss/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,81 @@
}
}

// Extends ///////////////
%shadow {
text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}


%no-ul-list {
list-style-type: none;
padding: 0;
margin: 0;

>li {
display: inline-block;
list-style-type: none;
margin: 0;
}
}

%container {
margin: 0 $gutter;
position: relative;

@include breakpoint(page-container) {
max-width: 81.875em;
margin: 0 auto;
}
}

// Font Smoothing ///////////////
%font-smoothing-on {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

%font-smoothing-off {
-webkit-font-smoothing: auto;
-moz-osx-font-smoothing: auto;
}

// utility classes

%uids-component--center {
@include center(both);
display: block;
text-align: center;
}

%uids-component--flex-center {
@include center(both);
flex-flow: column nowrap;
text-align: center;

@include breakpoint(sm) {
padding: 1.5rem 0;
}
}

%uids-component--left {
text-align: left;
@include center(both);
}

%uids-component--flex-left {
flex-flow: column nowrap;
text-align: left;
width: 100%;
padding: 1.5rem 0;
}


/*****************
buttons should be moved into their own file and only imported
in button.vue, psuedobutton.vue, and card.vue
******************/

// Buttons

@mixin bttn {
Expand Down Expand Up @@ -419,71 +494,6 @@
}
}

// Extends ///////////////
%shadow {
text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}


%no-ul-list {
list-style-type: none;
padding: 0;
margin: 0;

>li {
display: inline-block;
list-style-type: none;
margin: 0;
}
}

%container {
margin: 0 $gutter;
position: relative;

@include breakpoint(page-container) {
max-width: 81.875em;
margin: 0 auto;
}
}

// Font Smoothing ///////////////
%font-smoothing-on {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

%font-smoothing-off {
-webkit-font-smoothing: auto;
-moz-osx-font-smoothing: auto;
}

// utility classes

%uids-component--center {
@include center(both);
display: block;
text-align: center;
}

%uids-component--flex-center {
@include center(both);
flex-flow: column nowrap;
text-align: center;

@include breakpoint(sm) {
padding: 1.5rem 0;
}
}

%uids-component--left {
text-align: left;
@include center(both);
}

%uids-component--flex-left {
flex-flow: column nowrap;
text-align: left;
width: 100%;
padding: 1.5rem 0;
}
/****************
end of buttons
****************/
5 changes: 4 additions & 1 deletion src/components/alert/Alert.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script setup lang="ts">
import './alert.scss';
import {computed} from 'vue';
import {className} from '../utlity';

Expand Down Expand Up @@ -99,3 +98,7 @@ const classes = computed(() => {
</button>
</div>
</template>

<style scoped lang='scss'>
@use 'alert';
</style>
4 changes: 2 additions & 2 deletions src/components/banner/Banner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,6 @@ const getHeadlineSettings = computed(() => {
</div>
</template>

<style lang="scss">
@import 'banner';
<style scoped lang="scss">
@use 'banner';
</style>
4 changes: 4 additions & 0 deletions src/components/brand-bar/BrandBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,7 @@ export default {
</div>
</header>
</template>

<style scoped lang='scss'>
@use 'brand-bar';
</style>
4 changes: 4 additions & 0 deletions src/components/button/Button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,7 @@ const classes = computed(() => {
<slot name="icon"></slot>
</a>
</template>

<style scoped lang='scss'>
@use 'button';
</style>
5 changes: 5 additions & 0 deletions src/components/button/PseudoButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,8 @@ const classes = computed(() => ({
<i v-if="arrow" class="fas fa-arrow-right"></i>
</div>
</template>


<style scoped lang='scss'>
@use 'button';
</style>
3 changes: 3 additions & 0 deletions src/components/callout/Callout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ const classes = computed(() => {
<slot></slot>
</div>
</template>
<style scoped lang='scss'>
@use 'callout';
</style>
4 changes: 4 additions & 0 deletions src/components/card/Card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -246,3 +246,7 @@ onMounted(() => {
</div>
</div>
</template>

<style scoped lang='scss'>
@use 'card';
</style>
3 changes: 3 additions & 0 deletions src/components/cta/Cta.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,6 @@ const buttonClasses = computed(() => {
</footer>
</div>
</template>
<style scoped lang='scss'>
@use 'cta';
</style>
20 changes: 12 additions & 8 deletions src/components/grid/Grid.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
<template>
<div :class="classes">
<div class="list-container__inner">
<slot></slot>
</div>
</div>
</template>

<script setup lang="ts">
import './grid.scss'
import { computed } from 'vue';
Expand All @@ -28,3 +20,15 @@ const classes = computed(() => {
return classes;
});
</script>

<template>
<div :class="classes">
<div class="list-container__inner">
<slot></slot>
</div>
</div>
</template>

<style scoped lang='scss'>
@use 'grid';
</style>
10 changes: 7 additions & 3 deletions src/components/grid/GridItem.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
<script setup lang="ts">
import './grid.scss'
</script>

<template>
<div class="grid__column">
<slot></slot>
</div>
</template>

<script setup lang="ts">
import './grid.scss'
</script>
<style scoped lang='scss'>
@use 'grid';
</style>
5 changes: 5 additions & 0 deletions src/components/headline/Headline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,8 @@ const getClasses = computed(() => ({
<slot></slot>
</component>
</template>

<style scoped lang='scss'>
@use 'headline';
@use 'headline-mixins';
</style>
3 changes: 3 additions & 0 deletions src/components/inline/Figure.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ const classes = computed(() => {
<figcaption>Erika Ernst</figcaption>
</figure>
</template>
<style scoped lang='scss'>
@use 'inline';
</style>
3 changes: 3 additions & 0 deletions src/components/logo/Logo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ const props = defineProps({
</a>
</div>
</template>
<style scoped lang='scss'>
@use 'logo';
</style>
4 changes: 4 additions & 0 deletions src/components/media/Media.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,7 @@ const classes = computed(() => {
</video>
</div>
</template>

<style scoped lang='scss'>
@use 'media';
</style>
4 changes: 4 additions & 0 deletions src/components/stub/Stub.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,7 @@ const V3_COMPONENT_PATH = 'components/detail/';
<template #icon ><i class='fas fa-arrow-right'></i></template>
</uids-button>
</template>

<style scoped lang='scss'>
@use 'stub';
</style>
Loading
Loading