OpenPELS / static /pe.css
minjiechen's picture
Publish OpenPELS workspace
9a4ea8c verified
Raw History Blame Contribute Delete
15.1 kB
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
font-family: "DM Sans", Arial, sans-serif;
color: #202c39;
background: #f5f6f8;
font-synthesis: none;
--accent: #e15c34;
--line: #e3e7eb;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
}
button,
a {
touch-action: manipulation;
}
button {
font: inherit;
font-size: 12px;
border: 1px solid #dce0e5;
border-radius: 7px;
background: #fff;
color: #3e4d5c;
padding: 9px 12px;
cursor: pointer;
}
button:hover {
border-color: #e15c34;
color: #c24825;
}
button:disabled {
opacity: 0.5;
cursor: default;
}
.primary {
background: var(--accent);
border-color: var(--accent);
color: white;
}
.primary:hover {
background: #c84d28;
color: white;
}
a {
color: inherit;
text-decoration: none;
}
.topbar {
height: 76px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 24px;
background: #fff;
border-bottom: 1px solid var(--line);
gap: 20px;
}
.brand {
display: flex;
align-items: center;
gap: 10px;
font-family: Manrope, Arial, sans-serif;
font-weight: 800;
font-size: 22px;
letter-spacing: -0.7px;
}
.brand-icon {
display: grid;
place-items: center;
background: #e15c34;
color: #fff;
font-size: 30px;
width: 36px;
height: 40px;
border-radius: 10px;
}
.brand small {
display: block;
font:
600 8px "DM Sans",
Arial;
letter-spacing: 1.7px;
color: #8c96a2;
margin-top: 3px;
}
.topbar nav {
display: flex;
align-items: center;
gap: 5px;
background: #f0f2f5;
padding: 4px;
border-radius: 9px;
}
.topbar nav button {
border: 0;
background: transparent;
min-width: 124px;
font-weight: 600;
}
.topbar nav button.active {
background: #fff;
color: #172533;
box-shadow: 0 1px 4px #192b4214;
}
.topbar nav span {
padding-left: 10px;
color: #a4aab1;
}
.file-actions {
display: flex;
gap: 8px;
}
#message {
display: none;
background: #fff0e9;
color: #9d3b1d;
padding: 8px 24px;
font-size: 12px;
}
#message.visible {
display: block;
}
.design-layout {
display: grid;
grid-template-columns: 228px minmax(400px, 1fr) 260px;
min-height: calc(100vh - 114px);
height: calc(100vh - 114px);
}
.library {
padding: 25px 18px;
background: #fafbfc;
border-right: 1px solid var(--line);
overflow: auto;
}
.eyebrow {
font-size: 9px;
font-weight: 700;
letter-spacing: 1.8px;
color: #9b674f;
}
h1 {
font:
800 25px/1.2 Manrope,
Arial;
letter-spacing: -1px;
margin: 11px 0 10px;
}
p.intro {
font-size: 12px;
line-height: 1.65;
color: #7b8490;
margin: 0 0 27px;
}
.section-label {
font-size: 10px;
color: #8994a0;
font-weight: 700;
letter-spacing: 0.8px;
text-transform: uppercase;
margin: 18px 0 11px;
}
.ratio-pills {
display: flex;
gap: 4px;
margin-bottom: 18px;
}
.ratio-pills button {
font-size: 11px;
padding: 7px 8px;
flex: 1;
}
.ratio-pills .active {
background: #fff0e9;
color: #c34d2b;
border-color: #ecc6b7;
}
.starter {
width: 100%;
text-align: left;
padding: 13px 12px;
margin: 0 0 10px;
background: #fff;
box-shadow: 0 2px 5px #253c4c04;
line-height: 1.5;
}
.starter.active {
border-color: #e7ab95;
box-shadow: inset 3px 0 #e15c34;
}
.starter strong {
display: block;
font-size: 12px;
color: #2d3947;
}
.starter small {
display: block;
font-size: 10px;
color: #929ba5;
margin-top: 3px;
}
.starter .chip {
display: inline-block;
font-size: 9px;
font-weight: 600;
background: #f2f4f7;
color: #7e8995;
padding: 1px 5px;
border-radius: 3px;
margin-top: 9px;
}
.library-note,
.help p {
font-size: 11px;
color: #8a929d;
line-height: 1.7;
margin-top: 26px;
}
.library-note b {
color: #65717f;
}
.help,
details {
font-size: 11px;
color: #687785;
line-height: 1.6;
margin-top: 20px;
}
summary {
cursor: pointer;
}
.workspace {
display: flex;
flex-direction: column;
min-width: 0;
background: #fff;
padding: 0;
overflow: hidden;
}
.workspace-bar {
height: 49px;
flex-shrink: 0;
padding: 0 17px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid var(--line);
}
.workspace-bar strong {
font-size: 12px;
}
.workspace-bar #save-status {
font-size: 10px;
color: #9aa3ae;
margin-left: 12px;
}
.live-dot {
display: inline-block;
background: #7d9b85;
border: 2px solid #dfece2;
width: 9px;
height: 9px;
border-radius: 50%;
margin-right: 7px;
}
.workspace-label {
font-size: 8px;
letter-spacing: 1px;
color: #a5aeb8;
}
iframe {
border: 0;
display: block;
width: 100%;
background: #fff;
}
#editor {
flex: 1;
min-height: 400px;
}
.workspace-foot {
font-size: 9px;
line-height: 1.5;
color: #929ca7;
border-top: 1px solid var(--line);
padding: 10px 15px;
display: flex;
justify-content: space-between;
gap: 10px;
}
.inspector {
border-left: 1px solid var(--line);
background: #fff;
padding: 26px 20px;
overflow: auto;
}
.inspector h2 {
font:
700 17px/1.4 Manrope,
Arial;
margin: 12px 0;
}
.inspector #context-description {
font-size: 11px;
color: #7e8b98;
line-height: 1.7;
}
.metrics {
display: flex;
gap: 12px;
border-top: 1px solid #edf0f3;
border-bottom: 1px solid #edf0f3;
margin: 21px 0;
padding: 15px 0;
}
.metrics div {
flex: 1;
}
.metrics strong {
font:
700 22px Manrope,
Arial;
display: block;
}
.metrics span {
font-size: 9px;
color: #939da8;
}
.model-status {
font-size: 11px;
line-height: 1.6;
background: #f2f5f7;
border: 1px solid #e6ebef;
border-radius: 6px;
padding: 10px;
color: #5b6c7b;
}
.model-status.edited {
background: #fff2e9;
color: #a6653b;
border-color: #f2d9c1;
}
.fineprint {
font-size: 10px;
line-height: 1.7;
color: #9099a3;
}
.wide {
width: 100%;
font-size: 11px;
margin-top: 9px;
}
.assumptions-title {
margin-top: 30px;
}
.mechanisms {
list-style: none;
margin: 0;
padding: 0;
}
.mechanisms li {
display: flex;
align-items: center;
font-size: 10px;
padding: 8px 0;
color: #667686;
}
.mechanisms b {
margin-left: auto;
font-weight: 600;
color: #738393;
}
.mechanisms i {
width: 7px;
height: 7px;
margin-right: 9px;
border-radius: 2px;
}
.fet {
background: #657eae;
}
.cap {
background: #b49c57;
}
.ind {
background: #568c8b;
}
.ssl {
background: #c47b67;
}
.sw {
background: #9b8fb5;
}
footer {
display: flex;
align-items: center;
justify-content: space-between;
height: 38px;
background: #f8f9fa;
border-top: 1px solid var(--line);
padding: 0 20px;
font-size: 9px;
color: #9aa3ad;
gap: 12px;
}
footer a {
text-decoration: underline;
text-underline-offset: 3px;
}
footer a + a {
margin-left: 12px;
}
.compare-caption {
height: 48px;
display: flex;
align-items: center;
gap: 20px;
padding: 0 24px;
background: #fff;
border-bottom: 1px solid var(--line);
font-size: 12px;
}
.compare-caption span {
font-size: 11px;
color: #8f99a6;
flex: 1;
}
#comparison {
height: calc(100vh - 162px);
min-height: 640px;
}
[hidden] {
display: none !important;
}
.empty-family {
font-size: 12px;
line-height: 1.7;
color: #8a929d;
padding: 15px 0;
}
@media (max-width: 1200px) {
.design-layout {
grid-template-columns: 190px minmax(390px, 1fr);
}
.inspector {
display: none;
}
.workspace-label {
display: none;
}
.library {
padding: 20px 13px;
}
.workspace-foot {
font-size: 8px;
}
}
@media (max-width: 740px) {
.topbar {
height: auto;
min-height: 100px;
flex-wrap: wrap;
padding: 12px;
gap: 10px;
}
.brand {
font-size: 18px;
}
.topbar nav {
order: 3;
width: 100%;
}
.topbar nav button {
flex: 1;
}
.file-actions button {
padding: 7px;
font-size: 10px;
}
.design-layout {
display: flex;
flex-direction: column;
height: auto;
}
.library {
border: 0;
padding: 15px;
}
.library h1,
.intro,
.library-note,
.help,
.library .eyebrow,
.library .section-label {
display: none;
}
#starter-list {
display: flex;
gap: 8px;
overflow: auto;
}
.starter {
min-width: 165px;
margin-bottom: 0;
}
.ratio-pills {
max-width: 310px;
margin-bottom: 10px;
}
.workspace {
height: 700px;
}
.workspace-bar #save-status {
display: none;
}
footer {
height: auto;
min-height: 45px;
flex-wrap: wrap;
padding: 9px 12px;
}
.compare-caption {
height: auto;
min-height: 60px;
flex-wrap: wrap;
padding: 10px;
}
.compare-caption span {
display: none;
}
#comparison {
height: 1000px;
}
}
.simulator-caption {
display: flex;
align-items: center;
gap: 20px;
min-height: 44px;
padding: 10px 24px;
border-bottom: 1px solid var(--line);
background: #fff;
font-size: 11px;
}
.simulator-caption > span {
color: #8b96a3;
}
.simulator-caption > #simulator-status {
margin-left: auto;
color: #bc6242;
}
#simulator {
height: calc(100vh - 158px);
min-height: 720px;
}
.topbar nav button {
min-width: 104px;
}
@media (max-width: 1100px) {
.topbar {
height: auto;
min-height: 76px;
flex-wrap: wrap;
padding-top: 12px;
padding-bottom: 12px;
}
.topbar nav {
order: 3;
width: 100%;
}
.topbar nav button {
flex: 1;
min-width: 0;
}
.design-layout {
height: calc(100vh - 166px);
}
#simulator {
height: calc(100vh - 210px);
}
}
@media (max-width: 740px) {
.design-layout {
height: auto;
}
.simulator-caption {
flex-wrap: wrap;
gap: 7px;
padding: 12px;
}
.simulator-caption > span {
font-size: 10px;
}
#simulator {
height: 1100px;
min-height: 700px;
}
.topbar nav button {
font-size: 10px;
padding-left: 7px;
padding-right: 7px;
min-width: 0;
}
}
/* Browse a ratio-qualified library, then follow one reference through the workbench. */
[hidden] {
display: none !important;
}
#gallery-view {
max-width: 1380px;
margin: auto;
padding: 48px 34px 30px;
min-height: calc(100vh - 114px);
}
.gallery-hero {
padding: 20px 0 37px;
border-bottom: 1px solid var(--line);
}
.gallery-hero h1 {
font:
800 43px/1.18 Manrope,
Arial;
letter-spacing: -1.7px;
margin: 17px 0;
}
.gallery-hero h1 span {
color: #8793a0;
}
.gallery-hero > p {
max-width: 640px;
color: #778592;
font-size: 14px;
line-height: 1.8;
}
.workflow-steps {
display: flex;
align-items: center;
gap: 23px;
margin-top: 28px;
font-size: 12px;
color: #6e7b88;
}
.workflow-steps b {
font-size: 10px;
color: var(--accent);
margin-right: 9px;
}
.workflow-steps i {
font-style: normal;
color: #bac1c7;
}
.gallery-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
padding: 28px 0 22px;
}
.gallery-toolbar h2 {
font:
700 19px Manrope,
Arial;
margin: 0 0 8px;
}
.gallery-toolbar p {
font-size: 11px;
color: #8995a0;
margin: 0;
}
.gallery-ratios {
display: flex;
gap: 7px;
flex-wrap: wrap;
}
.gallery-ratios button {
border-radius: 30px;
padding: 10px 16px;
background: transparent;
font-size: 11px;
}
.gallery-ratios button.active {
background: #25313f;
color: white;
border-color: #25313f;
}
.gallery-cards {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 20px;
}
.topology-tile {
display: block;
text-align: left;
padding: 20px;
background: white;
border: 1px solid var(--line);
border-radius: 11px;
overflow: hidden;
transition:
transform 0.15s,
border-color 0.15s;
}
.topology-tile:hover {
transform: translateY(-3px);
border-color: #e8a188;
color: inherit;
box-shadow: 0 9px 22px #26314208;
}
.topology-tile.selected {
border-color: var(--accent);
}
.tile-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.tile-heading strong {
font:
700 15px Manrope,
Arial;
color: #263442;
}
.tile-heading > span {
font-size: 10px;
color: #8a96a1;
white-space: nowrap;
}
.topology-tile img {
width: 100%;
height: 205px;
object-fit: contain;
margin: 17px 0 10px;
}
.tile-meta {
font-size: 10px;
color: #8c98a2;
margin-bottom: 15px;
}
.tile-capability {
font-size: 10px;
background: #f1f4f7;
color: #698071;
padding: 6px 8px;
border-radius: 4px;
}
.tile-action {
float: right;
color: #bf5837;
font-size: 10px;
padding: 6px 0;
}
.gallery-note {
font-size: 11px;
color: #8c97a1;
margin: 24px 0 0;
}
.gallery-empty {
text-align: center;
background: white;
border: 1px dashed #d5dce2;
border-radius: 10px;
padding: 55px 25px;
}
.gallery-empty > span {
font-size: 10px;
text-transform: uppercase;
letter-spacing: 1.7px;
color: #ba7257;
}
.gallery-empty h2 {
font:
700 23px Manrope,
Arial;
}
.gallery-empty p {
font-size: 12px;
color: #8995a1;
line-height: 1.8;
}
#selection-bar {
display: flex;
align-items: center;
gap: 20px;
padding: 17px 25px;
background: #fff;
border-bottom: 1px solid var(--line);
flex-wrap: wrap;
}
#selected-image {
width: 68px;
height: 58px;
object-fit: contain;
}
.selected-identity {
flex: 1;
min-width: 160px;
}
.selected-identity small {
color: #bc6140;
font-size: 10px;
}
.selected-identity h1 {
font:
700 18px Manrope,
Arial;
margin: 4px 0;
}
.selected-identity p {
font-size: 10px;
color: #8c98a1;
margin: 0;
}
.selection-actions {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.selection-actions button {
font-size: 11px;
}
#selected-availability {
width: 100%;
margin: 0;
text-align: right;
font-size: 10px;
color: #8a96a1;
}
#selected-availability:empty {
display: none;
}
@media (max-width: 1050px) {
.gallery-cards {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gallery-toolbar {
align-items: flex-start;
flex-direction: column;
}
#selection-bar {
gap: 12px;
}
.selection-actions {
width: 100%;
}
.selected-identity {
min-width: 100px;
}
}
@media (max-width: 600px) {
#gallery-view {
padding: 26px 15px;
}
.gallery-hero {
padding-top: 6px;
}
.gallery-hero h1 {
font-size: 31px;
letter-spacing: -1px;
}
.gallery-hero > p {
font-size: 12px;
}
.workflow-steps {
gap: 8px;
flex-wrap: wrap;
font-size: 10px;
}
.workflow-steps i {
display: none;
}
.workflow-steps b {
margin-right: 5px;
}
.gallery-cards {
grid-template-columns: 1fr;
gap: 15px;
}
.gallery-ratios {
gap: 6px;
}
.gallery-ratios button {
padding: 9px 12px;
}
.topology-tile img {
height: 190px;
}
.gallery-toolbar {
padding-top: 22px;
}
.selected-identity h1 {
font-size: 16px;
}
#selection-bar {
padding: 14px;
}
.selection-actions button {
flex: 1;
white-space: nowrap;
padding: 9px 7px;
font-size: 10px;
}
#selected-availability {
text-align: left;
}
}