Skip to content

Commit

Permalink
review refactor: rename img + refactor styles
Browse files Browse the repository at this point in the history
  • Loading branch information
pomahtri committed Dec 4, 2024
1 parent d8d90f2 commit 9326934
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,19 @@
background-color: rgba(255, 255, 255, 1);
}

::ng-deep .avatar[title="John Heart"] img {
::ng-deep .avatar img {
position: relative;
width: 126px;
height: 130px;
object-fit: contain;
}

::ng-deep .avatar[title="John Heart"] img {
top: 5px;
left: 3px;
}

::ng-deep .avatar[title="Greta Sims"] img {
position: relative;
width: 126px;
height: 130px;
object-fit: contain;
top: 5px;
left: -7px;
}
Expand Down Expand Up @@ -155,13 +154,13 @@
}

::ng-deep .training-background-0 {
background-image: url("../../../../images/gym/icon-abs.png");
background-image: url("../../../../images/Scheduler/Overview/icon-abs.png");
}

::ng-deep .training-background-1 {
background-image: url("../../../../images/gym/icon-step.png");
background-image: url("../../../../images/Scheduler/Overview/icon-step.png");
}

::ng-deep .training-background-2 {
background-image: url("../../../../images/gym/icon-fitball.png");
background-image: url("../../../../images/Scheduler/Overview/icon-fitball.png");
}
15 changes: 7 additions & 8 deletions apps/demos/Demos/Scheduler/Overview/React/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,19 @@
background-color: rgba(255, 255, 255, 1);
}

.avatar[title="John Heart"] img {
.avatar img {
position: relative;
width: 126px;
height: 130px;
object-fit: contain;
}

.avatar[title="John Heart"] img {
top: 5px;
left: 3px;
}

.avatar[title="Greta Sims"] img {
position: relative;
width: 126px;
height: 130px;
object-fit: contain;
top: 5px;
left: -7px;
}
Expand Down Expand Up @@ -155,13 +154,13 @@
}

.training-background-0 {
background-image: url("../../../../images/gym/icon-abs.png");
background-image: url("../../../../images/Scheduler/Overview/icon-abs.png");
}

.training-background-1 {
background-image: url("../../../../images/gym/icon-step.png");
background-image: url("../../../../images/Scheduler/Overview/icon-step.png");
}

.training-background-2 {
background-image: url("../../../../images/gym/icon-fitball.png");
background-image: url("../../../../images/Scheduler/Overview/icon-fitball.png");
}
15 changes: 7 additions & 8 deletions apps/demos/Demos/Scheduler/Overview/ReactJs/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,19 @@
background-color: rgba(255, 255, 255, 1);
}

.avatar[title="John Heart"] img {
.avatar img {
position: relative;
width: 126px;
height: 130px;
object-fit: contain;
}

.avatar[title="John Heart"] img {
top: 5px;
left: 3px;
}

.avatar[title="Greta Sims"] img {
position: relative;
width: 126px;
height: 130px;
object-fit: contain;
top: 5px;
left: -7px;
}
Expand Down Expand Up @@ -155,13 +154,13 @@
}

.training-background-0 {
background-image: url("../../../../images/gym/icon-abs.png");
background-image: url("../../../../images/Scheduler/Overview/icon-abs.png");
}

.training-background-1 {
background-image: url("../../../../images/gym/icon-step.png");
background-image: url("../../../../images/Scheduler/Overview/icon-step.png");
}

.training-background-2 {
background-image: url("../../../../images/gym/icon-fitball.png");
background-image: url("../../../../images/Scheduler/Overview/icon-fitball.png");
}
6 changes: 3 additions & 3 deletions apps/demos/Demos/Scheduler/Overview/Vue/DataCell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ function getCurrentTraining(date, employeeID) {
}
.training-background-0 {
background-image: url("../../../../images/gym/icon-abs.png");
background-image: url("../../../../images/Scheduler/Overview/icon-abs.png");
}
.training-background-1 {
background-image: url("../../../../images/gym/icon-step.png");
background-image: url("../../../../images/Scheduler/Overview/icon-step.png");
}
.training-background-2 {
background-image: url("../../../../images/gym/icon-fitball.png");
background-image: url("../../../../images/Scheduler/Overview/icon-fitball.png");
}
</style>
9 changes: 4 additions & 5 deletions apps/demos/Demos/Scheduler/Overview/Vue/ResourceCell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,19 @@ withDefaults(defineProps<{
background-color: rgba(255, 255, 255, 1);
}
.avatar[title="John Heart"] img {
.avatar img {
position: relative;
width: 126px;
height: 130px;
object-fit: contain;
}
.avatar[title="John Heart"] img {
top: 5px;
left: 3px;
}
.avatar[title="Greta Sims"] img {
position: relative;
width: 126px;
height: 130px;
object-fit: contain;
top: 5px;
left: -7px;
}
Expand Down
15 changes: 7 additions & 8 deletions apps/demos/Demos/Scheduler/Overview/jQuery/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,19 @@
background-color: rgba(255, 255, 255, 1);
}

.avatar[title="John Heart"] img {
.avatar img {
position: relative;
width: 126px;
height: 130px;
object-fit: contain;
}

.avatar[title="John Heart"] img {
top: 5px;
left: 3px;
}

.avatar[title="Greta Sims"] img {
position: relative;
width: 126px;
height: 130px;
object-fit: contain;
top: 5px;
left: -7px;
}
Expand Down Expand Up @@ -155,13 +154,13 @@
}

.training-background-0 {
background-image: url("../../../../images/gym/icon-abs.png");
background-image: url("../../../../images/Scheduler/Overview/icon-abs.png");
}

.training-background-1 {
background-image: url("../../../../images/gym/icon-step.png");
background-image: url("../../../../images/Scheduler/Overview/icon-step.png");
}

.training-background-2 {
background-image: url("../../../../images/gym/icon-fitball.png");
background-image: url("../../../../images/Scheduler/Overview/icon-fitball.png");
}
File renamed without changes
File renamed without changes
File renamed without changes
Binary file removed apps/demos/images/gym/coach-man.png
Binary file not shown.
Binary file removed apps/demos/images/gym/coach-woman.png
Binary file not shown.

0 comments on commit 9326934

Please sign in to comment.