updated simulation player

This commit is contained in:
Nalvazhuthi
2025-04-29 17:54:36 +05:30
100 changed files with 5726 additions and 1665 deletions

View File

@@ -1,7 +1,6 @@
.roiSummary-container {
.roiSummary-wrapper {
background-color: #F2F2F7;
background-color: var(--background-color);
.product-info {
display: flex;
@@ -22,7 +21,7 @@
}
&:last-child {
color: #2B3344;
color: var(--text-color);
}
}
}
@@ -30,9 +29,30 @@
.roi-details {
display: flex;
align-items: center;
gap: 12px;
.progress-wrapper {
width: 250px;
display: flex;
flex-direction: column;
gap: 6px;
.content {
display: flex;
flex-direction: column;
gap: 3px;
align-items: center;
.key {
font-size: var(--font-size-xlarge);
color: var(--accent-color);
}
}
}
.roi-progress {
width: 60%;
width: 100%;
}
.metrics {
@@ -43,8 +63,8 @@
.metric-item {
width: 100%;
border-radius: 6px;
border: 1px solid var(--axis-colors-green, #43C06D);
background: var(--axis-colors-green-lite, #BEEECF);
border: 1px solid #00FF56;
background: #436D51;
display: flex;
flex-direction: column;
padding: 4px 6px;
@@ -58,7 +78,6 @@
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.metric-value {
@@ -74,13 +93,11 @@
.metric-item {
background-color: var(--background-color);
border: 1px solid var(--Grays-Gray-6, #F2F2F7);
}
}
}
}
.cost-breakdown {
background-color: var(--background-color);
border: 1px solid var(--text-disabled);
@@ -90,9 +107,16 @@
.breakdown-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin-bottom: 16px;
.section-wrapper {
display: flex;
gap: 4px;
align-items: center;
}
.section-number {
font-size: 20px;
color: #00aaff;
@@ -100,18 +124,23 @@
.section-title {
font-size: var(--font-size-regular);
color: #333;
color: var(--text-color);
}
.expand-icon {
font-size: 16px;
color: #666;
color: var(--text-color);
cursor: pointer;
transform: rotate(90deg);
transition: transform 0.2s linear;
}
.expand-icon.open {
transform: rotate(0deg);
}
}
.breakdown-table {
width: 100%;
border-collapse: collapse;
@@ -125,28 +154,18 @@
border-bottom: 1px solid var(--text-disabled);
}
/* Apply left border to first child */
th:first-child {
border-left: 1px solid var(--text-disabled);
}
/* Apply right border to last child */
th:last-child {
border-right: 1px solid var(--text-disabled);
}
th:first-child,
td:first-child {
border-left: 1px solid var(--text-disabled);
}
/* Apply right border to last child */
th:last-child,
td:last-child {
border-right: 1px solid var(--text-disabled);
}
th {
background-color: var(--background-color);
color: #333;
}
@@ -156,12 +175,8 @@
color: #333;
}
}
}
.tips-section {
background-color: var(--background-color);
border-radius: 8px;
@@ -182,17 +197,15 @@
.tip-description {
span {
font-size: var(--font-size-xlarge);
color: #34C759;
/* Default color for the first span */
&:first-child {
color: #34C759;
/* Color for the first span */
}
&:nth-child(2) {
color: #488EF6;
/* Color for the second span */
}
}
}
@@ -200,13 +213,10 @@
.get-tips-button {
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 14px;
margin-top: 8px;
/* Make the button content-width dependent */
display: inline-block;
display: flex;
justify-content: flex-end;
@@ -216,54 +226,93 @@
background-color: var(--accent-color);
color: var(--background-color);
padding: 4px 6px;
/* Add padding to ensure it has space around the text */
border-radius: 5px;
display: inline-block;
/* Ensure button width adjusts to its content */
font-size: 14px;
text-align: center;
/* Ensure text is centered */
}
}
}
.semi-circle-wrapper {
width: 100%;
height: 125px;
overflow-y: hidden;
position: relative;
}
.semi-circle {
width: 100%;
height: 250px;
border-radius: 50%;
position: relative;
transition: background 0.5s ease;
}
.progress-cover {
position: absolute;
width: 75%;
height: 75%;
top: 12.5%;
left: 12.5%;
background-color: var(--background-color);
border-radius: 50%;
}
.label-wrapper {
.label {
font-size: var(--font-size-xxxlarge);
}
position: absolute;
bottom: 0%;
left: 50%;
transform: translate(-50%, 0%);
font-weight: bold;
font-size: 1.2rem;
color: #333;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
}
// Breakdown Table Open/Close Logic
.semi-circle-wrapper {
width: 250px;
height: 125px;
overflow: hidden;
position: relative;
}
.semi-circle {
width: 250px;
height: 250px;
border-radius: 50%;
position: relative;
transition: background 0.5s ease;
transform: rotate(180deg); /* rotate so 0% is at left */
}
.progress-cover {
position: absolute;
width: 75%;
height: 75%;
top: 12.5%;
left: 12.5%;
background-color: white;
border-radius: 50%;
}
.label {
position: absolute;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
font-weight: bold;
font-size: 1.2rem;
}
.breakdown-table-wrapper {
&.closed {
max-height: 0;
padding: 0;
}
&.open {
max-height: 500px;
}
.breakdown-table {
width: 100%;
border-collapse: collapse;
th,
td {
padding: 10px;
border: 1px solid #ddd;
text-align: left;
}
.total-row {
background-color: #f4f4f4;
font-weight: bold;
}
.net-profit-row {
background-color: #dff0d8;
font-weight: bold;
}
}
}