Files
formulation/src/styles/components/tooltips.css
T

640 lines
16 KiB
CSS

/* ==========================================================================
Ingredient Detail (View & Edit) — Meez matching styles
========================================================================== */
.application-body .recipe-read-shell.ingredient-read-shell {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
grid-template-areas: "utility utility" "left right";
width: 100%;
max-width: none;
min-height: auto;
margin: 0;
padding: 0;
background: #ffffff;
}
.application-body .ingredient-read-left {
grid-area: left;
display: flex;
flex-direction: column;
align-items: stretch;
width: 100%;
max-width: 100%;
padding: 24px 36px 35px;
background: #fff;
border-right: 1px solid #edf0f5;
box-sizing: border-box;
}
.application-body .ingredient-read-left .entity-detail-header {
padding: 0 0 20px;
min-height: auto;
border-bottom: 0;
background: transparent;
}
.application-body .ingredient-read-left .entity-breadcrumb {
margin: 0 0 12px;
}
.application-body .ingredient-read-left .entity-breadcrumb a {
color: #202962;
font-size: 12px;
font-weight: 400;
text-decoration: none;
}
.application-body .ingredient-read-left .entity-detail-header h1 {
font-family: var(--meez-font-sans);
font-size: 28px;
font-weight: 700;
line-height: 38px;
color: #050841;
margin: 0;
}
.application-body .ingredient-title-editor {
display: block;
width: 100%;
min-height: 40px;
padding: 0 0 4px;
background: transparent;
border: 0;
border-bottom: 1px solid transparent;
outline: 0;
font-family: var(--meez-font-sans);
font-size: 28px;
font-weight: 700;
line-height: 38px;
color: #050841;
resize: none;
box-sizing: border-box;
transition: border-color 0.12s ease;
}
.application-body .ingredient-title-editor:hover {
border-bottom: 1px solid #3d5df6;
}
.application-body .ingredient-title-editor:focus {
border-bottom: 2px solid #3d5df6;
}
.application-body .ingredient-read-left .entity-section h2 {
font-family: var(--meez-font-sans);
font-size: 22px;
font-weight: 700;
line-height: 33px;
color: #050841;
margin: 0 0 6px;
}
.application-body .ingredient-read-left .panel-intro {
font-family: var(--meez-font-sans);
font-size: 13px;
line-height: 1.5;
color: #8283a0;
margin: 0 0 16px;
}
.application-body .ingredient-read-left .field-help {
font-family: var(--meez-font-sans);
font-size: 12px;
line-height: 1.5;
color: #8283a0;
margin: 12px 0 0;
}
.application-body .ingredient-read-left .outlined-add-action {
display: inline-flex;
align-items: center;
height: 36px;
padding: 0 18px;
color: #050841;
background: #fff;
border: 1px solid #050841;
border-radius: 18px;
font-family: var(--meez-font-sans);
font-size: 14px;
font-weight: 500;
cursor: pointer;
margin: 0 0 20px;
transition: border-color 0.12s ease, color 0.12s ease, background-color 0.12s ease;
}
.application-body .ingredient-read-left .outlined-add-action:hover {
color: #3d5df6;
border-color: #3d5df6;
background-color: #f1f5fe;
}
.application-body .ingredient-read-left .prep-action-table {
width: 100%;
border-collapse: collapse;
table-layout: fixed;
margin-bottom: 20px;
}
.application-body .ingredient-read-left .prep-action-table th {
height: 38px;
padding: 8px 10px;
color: #8283a0;
background: #fff;
border: 0;
border-bottom: 1px solid #edf0f5;
font-family: var(--meez-font-sans);
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.04em;
text-align: left;
}
.application-body .ingredient-read-left .prep-action-table td {
height: 48px;
padding: 6px 10px;
color: #050841;
background: #fff;
border: 0;
border-bottom: 1px solid #edf0f5;
font-family: var(--meez-font-sans);
font-size: 14px;
font-weight: 400;
vertical-align: middle;
}
.application-body .ingredient-read-left .prep-action-table tr:hover td {
background-color: #fafbfe;
}
.application-body .ingredient-read-left .prep-action-table td select,
.application-body .ingredient-read-left .prep-action-table td input {
width: 100%;
height: 32px;
padding: 0 4px;
background: transparent;
border: 0;
border-bottom: 1px solid transparent;
outline: 0;
font-family: var(--meez-font-sans);
font-size: 14px;
font-weight: 400;
color: #050841;
transition: border-color 0.12s ease;
}
.application-body .ingredient-read-left .prep-action-table td select:hover,
.application-body .ingredient-read-left .prep-action-table td input:hover {
border-bottom: 1px solid #3d5df6;
}
.application-body .ingredient-read-left .prep-action-table td select:focus,
.application-body .ingredient-read-left .prep-action-table td input:focus {
border-bottom: 2px solid #3d5df6;
}
.application-body .ingredient-read-left .prep-equivalency-link {
display: inline-flex;
align-items: center;
padding: 4px 8px;
color: #3d5df6;
background: transparent;
border: 0;
font-family: var(--meez-font-sans);
font-size: 13px;
font-weight: 500;
cursor: pointer;
border-radius: 4px;
transition: background-color 0.12s ease;
}
.application-body .ingredient-read-left .prep-equivalency-link:hover {
background-color: #eef2fe;
}
.application-body .ingredient-read-left .prep-row-remove {
display: none;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
padding: 0;
color: #95969c;
background: transparent;
border: 0;
border-radius: 50%;
cursor: pointer;
font-size: 18px;
line-height: 1;
}
.application-body .ingredient-read-left .prep-action-table tr:hover .prep-row-remove {
display: inline-flex;
}
.application-body .ingredient-read-left .prep-row-remove:hover {
color: #d32f2f;
background-color: #fee;
}
.application-body .ingredient-read-left .additional-card {
margin-top: 36px;
padding: 0;
background: transparent;
border: 0;
min-height: auto;
}
.application-body .ingredient-read-left .additional-card h2 {
font-family: var(--meez-font-sans);
font-size: 18px;
font-weight: 500;
color: #050841;
margin: 0 0 16px;
}
.application-body .ingredient-read-left .additional-card details {
border-bottom: 1px solid #edf0f5;
padding: 12px 0;
}
.application-body .ingredient-read-left .additional-card summary {
font-family: var(--meez-font-sans);
font-size: 14px;
font-weight: 500;
color: #050841;
cursor: pointer;
}
.application-body .ingredient-read-left .additional-card summary small {
color: #8283a0;
font-weight: 400;
margin-left: 6px;
}
.application-body .ingredient-read-left .ingredient-tag-view {
margin: 12px 0;
}
.application-body .ingredient-read-left .ingredient-tag-view i {
display: inline-block;
font-style: normal;
background: #f1f3f8;
color: #050841;
font-size: 13px;
padding: 4px 12px;
border-radius: 16px;
margin-right: 6px;
margin-bottom: 6px;
}
.application-body .ingredient-read-left .ingredient-description-view {
margin: 12px 0;
font-size: 14px;
line-height: 1.5;
color: #050841;
}
.application-body .ingredient-read-left .ingredient-additional-edit {
background: #fff;
border: 1px solid #dfe3ec;
border-radius: 6px;
padding: 24px;
}
.application-body .ingredient-read-left .ingredient-detail-fields {
display: grid;
gap: 18px;
}
.application-body .ingredient-read-left .ingredient-detail-fields label {
display: grid;
gap: 6px;
font-family: var(--meez-font-sans);
font-size: 13px;
font-weight: 500;
color: #050841;
}
.application-body .ingredient-read-left .ingredient-detail-fields input,
.application-body .ingredient-read-left .ingredient-detail-fields textarea {
width: 100%;
padding: 10px 12px;
background: #fff;
border: 1px solid #dfe3ec;
border-radius: 4px;
font-family: var(--meez-font-sans);
font-size: 14px;
color: #050841;
box-sizing: border-box;
transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.application-body .ingredient-read-left .ingredient-detail-fields input:focus,
.application-body .ingredient-read-left .ingredient-detail-fields textarea:focus {
border-color: #3d5df6;
box-shadow: 0 0 0 2px rgba(61, 93, 246, 0.15);
outline: 0;
}
/* Right pane */
.application-body .ingredient-read-right {
grid-area: right;
display: flex;
flex-direction: column;
align-items: stretch;
width: 100%;
max-width: 100%;
background: #ffffff;
box-sizing: border-box;
}
.application-body .ingredient-read-right .ingredient-view-details {
padding: 24px 36px 35px;
background: transparent;
border-left: 0;
box-sizing: border-box;
}
.application-body .ingredient-read-right .ingredient-view-details h2 {
font-family: var(--meez-font-sans);
font-size: 22px;
font-weight: 700;
line-height: 33px;
color: #050841;
margin: 0 0 6px;
}
.application-body .ingredient-read-right .ingredient-view-details .panel-intro {
font-family: var(--meez-font-sans);
font-size: 13px;
line-height: 1.5;
color: #8283a0;
margin: 0 0 20px;
}
.application-body .ingredient-read-right .add-purchase summary,
.application-body .ingredient-read-right .equivalency-editor summary {
display: inline-flex;
align-items: center;
height: 36px;
padding: 0 18px;
color: #050841;
background: #fff;
border: 1px solid #050841;
border-radius: 18px;
font-family: var(--meez-font-sans);
font-size: 14px;
font-weight: 500;
cursor: pointer;
margin: 0 0 20px;
list-style: none;
transition: border-color 0.12s ease, color 0.12s ease, background-color 0.12s ease;
}
.application-body .ingredient-read-right .add-purchase summary:hover,
.application-body .ingredient-read-right .equivalency-editor summary:hover {
color: #3d5df6;
border-color: #3d5df6;
background-color: #f1f5fe;
}
.application-body .ingredient-read-right .ingredient-purchase-form {
margin-bottom: 24px;
}
.application-body .ingredient-read-right .purchase-item-form {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
background: #fff;
border: 1px solid #dfe3ec;
border-radius: 6px;
padding: 24px;
}
.application-body .ingredient-read-right .purchase-item-form .purchase-name,
.application-body .ingredient-read-right .purchase-item-form .purchase-rate,
.application-body .ingredient-read-right .purchase-item-form .purchase-form-actions,
.application-body .ingredient-read-right .purchase-item-form .price-history {
grid-column: 1 / -1;
}
.application-body .ingredient-read-right .purchase-item-form label {
display: grid;
gap: 6px;
font-family: var(--meez-font-sans);
font-size: 11px;
font-weight: 700;
color: #8283a0;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.application-body .ingredient-read-right .purchase-item-form input,
.application-body .ingredient-read-right .purchase-item-form select {
height: 40px;
padding: 0 12px;
background: #fff;
border: 1px solid #dfe3ec;
border-radius: 4px;
font-family: var(--meez-font-sans);
font-size: 14px;
font-weight: 400;
color: #050841;
box-sizing: border-box;
transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.application-body .ingredient-read-right .purchase-item-form input:focus,
.application-body .ingredient-read-right .purchase-item-form select:focus {
border-color: #3d5df6;
box-shadow: 0 0 0 2px rgba(61, 93, 246, 0.15);
outline: 0;
}
.application-body .ingredient-read-right .purchase-form-actions button {
height: 40px;
padding: 0 24px;
background: #3d5df6;
color: #fff;
border: 0;
border-radius: 4px;
font-family: var(--meez-font-sans);
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: background-color 0.15s ease;
}
.application-body .ingredient-read-right .purchase-form-actions button:hover {
background-color: #2b4be0;
}
.application-body .ingredient-read-right .ingredient-cost-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 14px 16px;
background: #fff;
border: 1px solid #dfe3ec;
border-radius: 6px;
margin-bottom: 12px;
}
.application-body .ingredient-read-right .ingredient-cost-row strong {
display: block;
font-size: 15px;
color: #050841;
}
.application-body .ingredient-read-right .ingredient-cost-row small {
color: #8283a0;
font-size: 13px;
}
.application-body .ingredient-read-right .equivalency-editor {
margin-top: 16px;
}
.application-body .ingredient-read-right .equivalency-editor .inline-form {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
gap: 12px;
background: #fff;
border: 1px solid #dfe3ec;
border-radius: 6px;
padding: 20px;
margin-top: 12px;
}
.application-body .ingredient-read-right .equivalency-editor .inline-form label {
display: grid;
gap: 6px;
font-family: var(--meez-font-sans);
font-size: 11px;
font-weight: 700;
color: #8283a0;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.application-body .ingredient-read-right .equivalency-editor .inline-form input,
.application-body .ingredient-read-right .equivalency-editor .inline-form select {
height: 40px;
padding: 0 12px;
background: #fff;
border: 1px solid #dfe3ec;
border-radius: 4px;
font-family: var(--meez-font-sans);
font-size: 14px;
color: #050841;
box-sizing: border-box;
transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.application-body .ingredient-read-right .equivalency-editor .inline-form input:focus,
.application-body .ingredient-read-right .equivalency-editor .inline-form select:focus {
border-color: #3d5df6;
box-shadow: 0 0 0 2px rgba(61, 93, 246, 0.15);
outline: 0;
}
.application-body .ingredient-read-right .equivalency-editor .inline-form i {
display: inline-flex;
align-items: center;
justify-content: center;
height: 40px;
font-style: normal;
font-size: 18px;
font-weight: 700;
color: #8283a0;
padding: 0 4px;
}
.application-body .ingredient-read-right .equivalency-editor .inline-form button[name="intent"] {
height: 40px;
padding: 0 20px;
background: #3d5df6;
color: #fff;
border: 0;
border-radius: 4px;
font-family: var(--meez-font-sans);
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: background-color 0.15s ease;
}
.application-body .ingredient-read-right .equivalency-editor .inline-form button[name="intent"]:hover {
background-color: #2b4be0;
}
.application-body .ingredient-read-right .equivalency-editor .inline-form .cancel-equivalency {
height: 40px;
padding: 0 16px;
background: transparent;
color: #8283a0;
border: 1px solid #dfe3ec;
border-radius: 4px;
font-family: var(--meez-font-sans);
font-size: 14px;
cursor: pointer;
}
.application-body .ingredient-read-right .usda-id-form {
display: flex;
align-items: flex-end;
gap: 12px;
background: #fff;
border: 1px solid #dfe3ec;
border-radius: 6px;
padding: 20px;
margin-bottom: 20px;
}
.application-body .ingredient-read-right .usda-id-form label {
display: grid;
gap: 6px;
font-family: var(--meez-font-sans);
font-size: 11px;
font-weight: 700;
color: #8283a0;
text-transform: uppercase;
letter-spacing: 0.04em;
flex: 1;
}
.application-body .ingredient-read-right .usda-id-form input {
height: 40px;
padding: 0 12px;
background: #fff;
border: 1px solid #dfe3ec;
border-radius: 4px;
font-family: var(--meez-font-sans);
font-size: 14px;
color: #050841;
box-sizing: border-box;
}
.application-body .ingredient-read-right .usda-id-form button {
height: 40px;
padding: 0 20px;
background: #3d5df6;
color: #fff;
border: 0;
border-radius: 4px;
font-family: var(--meez-font-sans);
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: background-color 0.15s ease;
}
.application-body .ingredient-read-right .usda-id-form button:hover {
background-color: #2b4be0;
}