Skip to content

Commit

Permalink
Merge pull request #57 from restorecommerce/bugfix/refactor-design-an…
Browse files Browse the repository at this point in the history
…d-styles

Bugfix/refactor design and styles
  • Loading branch information
yosvelquintero authored Jun 28, 2024
2 parents 43f3af7 + 5fcf561 commit 3f033e3
Show file tree
Hide file tree
Showing 16 changed files with 53 additions and 44 deletions.
8 changes: 2 additions & 6 deletions apps/restorecommerce/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,8 @@
"polyfills": ["zone.js"],
"tsConfig": "apps/restorecommerce/tsconfig.app.json",
"assets": [
"apps/restorecommerce/src/manifest.webmanifest",
{
"input": "apps/restorecommerce/src/assets",
"glob": "**/*",
"output": "./assets"
}
"apps/restorecommerce/src/assets",
"apps/restorecommerce/src/manifest.webmanifest"
],
"styles": [
"packages/modules/ui/src/lib/modules-ui.styles.scss",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ import { IEnvironment } from '@console-core/types';

export const environment: Readonly<IEnvironment> = {
production: false,
oidcKey:
'cEpxYVdXQWNqdGRZVzZqQno5ZmhVUmJqYXBmaldvanI6dW05VU5vWVc2cXc5bVpDRGdNZVB5N2dDbkRHVEdSVkI=',
oidcKey: 'VEVTVF9DTElFTlRfSUQ6VEVTVF9DTElFTlRfU0VDUkVU=',
storagePrefix: 'console.dev.',
urls: {
api: 'https://api.restorecommerce.io',
graphql: 'https://api.restorecommerce.io/graphql',
api: 'http://192.168.1.38:5000',
graphql: 'http://192.168.1.38:5000/graphql',
},
};
5 changes: 2 additions & 3 deletions apps/restorecommerce/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
name="viewport"
content="width=device-width, initial-scale=1"
/>

<link
rel="icon"
type="image/x-icon"
href="assets/images/Logo_K_square.svg"
type="image/svg+xml"
href="assets/images/restore_commerce_logo_square.svg"
/>
<link
rel="manifest"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
<vcl-icon icon="mdi:delete" />
</button>
</rc-toolbar>
<rc-scrollable-container height="170px">
<rc-scrollable-container height="145px">
<div class="row">
<div class="flex p-2">
<ng-content select="[rc-crud-router-outlet]" />
Expand Down Expand Up @@ -164,7 +164,7 @@
<ng-template #searchAndDataListTemplate>
<ng-content select="[rc-crud-search]" />

<rc-scrollable-container height="230px">
<rc-scrollable-container height="193px">
<ng-content select="[rc-crud-data-list]" />
</rc-scrollable-container>
</ng-template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
<div class="flex">
<div class="row">
<div class="flex">
<p class="m-0">{{ customer?.firstName }} {{ customer?.lastName }}</p>
<p class="m-0 mt-1">{{ shop?.name }}</p>
<p class="m-0 pl-2">
{{ customer?.firstName }} {{ customer?.lastName }}
</p>
<p class="m-0 pl-2 mt-1">{{ shop?.name }}</p>
</div>
<div class="align-right secondary-text-color">
<p
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<div class="flex">
<div class="row">
<div class="flex">
<p class="m-0">{{ product.product.name }}</p>
<p class="m-0 mt-1 secondary-text-color">
<p class="m-0 pl-2">{{ product.product.name }}</p>
<p class="m-0 pl-2 mt-1 secondary-text-color">
{{ product.product.description }}
</p>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<ng-container *ngIf="vm$ | async as vm">
<div class="self-center justify-center">
<div class="row rc-activation">
<div class="gutter-margin-t-b">
<div>
<div class="align-centered">
<h2>Account Activation</h2>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="self-center justify-center">
<div class="row rc-password-confirm">
<div class="">
<div>
<h2>Confirm Password</h2>
<p>
Please provide the necessary information to complete your password
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="self-center justify-center">
<div class="row rc-password-recovery-form">
<div class="">
<div>
<h2>Password Recovery</h2>
<p>
Please enter the the email or username associated with your account.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
<div class="flex col justify-center">
<!--
<div class="flex col justify-center">
<div class="self-center justify-center rc-sign-in-form">
<div class="row rc-sign-in-form-inner">
<div class="w-45p-t-b">
<div
class="row rc-sign-in-form-inner"
style="width: 815px"
>
<div class="w-45p">
<h2>Sign In</h2>
<rc-authn-sign-in />
</div>
<!--
<div
class="w-10p divider divider-vertical row center justify-center rc-sign-in-form-divider-v"
>
Expand All @@ -24,7 +27,7 @@ <h2>Sign In</h2>
</div>
</div>
<div class="w-45p col justify-center-t-b">
<div class="w-45p col justify-center">
<a
[routerLink]="ROUTER.pages.main.children.auth.children.signUp.link"
class="col justify-center"
Expand All @@ -36,7 +39,17 @@ <h2>Sign In</h2>
Create an account
</button>
</a>
</div> -->
</div>
</div>
</div>
</div>
-->

<div class="self-center justify-center">
<div class="row rc-sign-in-form">
<div>
<h2>Sign In</h2>
<rc-authn-sign-in />
</div>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="self-center justify-center">
<div class="row rc-sign-out">
<div class="gutter-margin-t-b align-centered">
<div class="align-centered">
<h2>Signing out</h2>
<p>Please wait...</p>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="self-center justify-center">
<div class="row rc-sign-up-form">
<div class="">
<div>
<h2>Sign Up</h2>
<p>
Please provide the necessary information to complete your registration
Expand Down
14 changes: 11 additions & 3 deletions packages/modules/ui/src/lib/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,15 @@ rc-header.application-header {
height: 100%;
}

button.user {
height: 43px;
rc-header-toolbar {
button.user {
height: 43px;
}

vcl-icon {
font-size: 1rem;
padding-bottom: 2px;
}
}
}

Expand All @@ -54,6 +61,7 @@ rc-header.application-header {
}

.container {
height: 100vh;
background-color: $console-white;
border-color: $console-white;
}
Expand All @@ -78,7 +86,7 @@ vcl-hint-error {
color: $wrapper-popover-user-link-color;

vcl-icon {
font-size: 1.25rem;
font-size: 1rem;
}

div {
Expand Down
2 changes: 1 addition & 1 deletion packages/modules/ui/src/lib/styles/data-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@use './theme/_console-variables.scss' as *;

.infinite-scroll-viewport {
height: calc(100vh - 230px);
height: calc(100vh - 193px);
overflow-y: scroll;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/modules/ui/src/lib/styles/index.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
@use './console.scss';
@use './app.scss';
@use './authn.scss';
@use './badge.scss';
@use './drawer.scss';
@use './forms.scss';
@use './orders.scss';
@use './page.scss';
@use './products.scss';
@use './toolbar.scss';
@use './public.scss';
@use './sidebar.scss';
@use './data-list.scss';
@use './utility.scss';
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@use '@vcl/vcl/theme' as *;
@use './theme/_console-variables.scss' as *;

.rc-auth {
Expand All @@ -9,7 +8,6 @@
margin: 0;

.rc-auth-wrapper {
background-color: #fff;
padding: 30px;

header {
Expand All @@ -33,7 +31,7 @@
width: 450px;
box-sizing: border-box;
border-radius: 0.3rem;
background: $white;
background: $console-white;
padding: 1rem;
}
}
Expand All @@ -53,10 +51,6 @@
& .button.half-transparent {
font-weight: normal;
}

& > div {
width: 815px;
}
}

@media (max-width: 750px) {
Expand All @@ -83,8 +77,6 @@
width: 370px;
box-sizing: border-box;
border-radius: 0.3rem;
// background: $white;
// padding: 1rem;
}
}

Expand Down

0 comments on commit 3f033e3

Please sign in to comment.