openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
2 lines (1 loc) • 10.5 kB
CSS
section[aria-labelledby=template-catalog-detail-title] .settings-row__desc{-webkit-line-clamp:1}.templates-add-consent{gap:12px;display:grid}.templates-add-consent__actions{justify-content:flex-end;gap:8px;display:flex}.templates-content-skeleton{gap:10px;margin-bottom:20px;display:grid}.templates-content-skeleton__title{width:min(220px,60%);height:22px}.templates-content-skeleton__row{height:58px}.templates-content-skeleton .skeleton{background:var(--bg-elevated)}@media (width<=560px){.templates-content-skeleton__row{height:52px}}.templates-workspace-file{position:relative;@media (hover:hover){&:has(.templates-workspace-file__open:hover){background:var(--surface-hover)}}&.templates-workspace-file--all{min-height:72px;padding-block:var(--space-4);border-top:1px solid var(--border);& .settings-row__title{line-height:20px}}& .settings-row__chevron{width:18px;height:18px;color:var(--muted);opacity:.5;flex:0 0 18px;place-items:center;display:grid;& svg{width:13px;height:13px}}& .templates-workspace-file__title{align-items:center;gap:4px;display:flex}& :where(button){background:0 0;border:0;padding:0}}.templates-workspace-file__open{text-align:left;min-width:0;&:after{border-radius:var(--radius-md);content:"";position:absolute;inset:0}&:focus-visible:after{outline:2px solid var(--accent);outline-offset:-2px}}.templates-workspace-file__info{z-index:1;border-radius:var(--radius-sm);width:28px;height:28px;color:var(--muted);flex:0 0 28px;place-items:center;display:grid;position:relative;& svg{width:14px;height:14px}&:focus-visible{color:var(--accent)}@media (hover:hover){&:hover{color:var(--accent)}}}.template-package-preview{width:100%;color:var(--text);grid-template-rows:148px minmax(0,1fr) auto;display:grid;overflow:hidden;&>:where(header){align-items:flex-start;gap:16px;padding:24px;display:flex;overflow:hidden;&>div>p:last-child{margin:0;font-size:13px;line-height:1.5}&>div>p:not(:last-child){color:var(--muted);margin:4px 0 8px;font-size:12px}&>div{flex:1;min-width:0}& h2{margin:0;font-size:20px;line-height:1.3;&:focus{outline:none}}}&>div{overscroll-behavior:contain;min-height:0;padding:0 24px 16px;overflow:auto}}.template-package-art{background:var(--bg-hover);height:56px;color:var(--accent);border-radius:12px;flex:0 0 56px;place-items:center;display:grid;& svg{width:32px;height:32px}}.template-package-row{text-align:start;background:0 0;border:0;align-items:center;gap:12px;width:100%;min-height:68px;padding:12px 8px;display:flex;@media (hover:hover){&:hover{background:var(--bg-hover)}}&>span:not([class]){flex:1;min-width:0}& strong,& small{display:block}& strong{overflow-wrap:anywhere;font-size:13px;font-weight:600}& small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin-top:4px;font-size:12px;overflow:hidden}&>svg:last-child{color:var(--muted);flex:0 0 20px;width:20px;height:20px}}.template-package-count{border:1px solid var(--border);height:24px;color:var(--muted);border-radius:50%;flex:0 0 24px;place-items:center;font-size:12px;display:grid}.template-creator__row{border-bottom:1px solid var(--border)}.template-creator__status-anchor{float:inline-end;margin-inline-start:8px}.template-creator__status{background:var(--card-highlight);color:var(--muted);border-radius:99px;align-items:center;gap:6px;padding:5px 10px;font-size:12px;line-height:18px;display:flex;&:before{content:"";background:var(--muted);border-radius:50%;width:6px;height:6px}&[data-state=pending]:before{background:var(--warn)}&[data-state=published]:before{background:var(--ok)}}.template-creator__row-icon{border:1px solid var(--border);height:34px;color:var(--accent);border-radius:10px;flex:0 0 34px;place-items:center;display:grid;& svg{width:22px;height:22px}}.template-creator__scope{color:var(--muted);margin-top:12px;font-size:12px;& dd{color:var(--text);margin:4px 0 12px}}.template-creator__category,.template-creator__preview{flex-direction:column;gap:20px;display:flex}.template-creator__category-icon{background:var(--card-highlight);width:56px;height:56px;color:var(--accent);border-radius:16px;align-self:center;place-items:center;display:grid;& svg{width:28px;height:28px}}.template-creator__hint{color:var(--muted);text-align:center;margin:0;font-size:14px;line-height:21px}.template-creator__category{& .template-creator__contents{grid-template-columns:minmax(0,1fr);gap:12px;display:grid}& .template-creator__row{background:var(--card-highlight);border:0;border-radius:12px;min-height:60px;padding:14px 16px;@media (hover:hover){&:hover{background:var(--surface-hover)}}& strong{font-size:15px;font-weight:500;line-height:21px}}}.template-creator__message{white-space:pre-wrap}.template-creator__detail-group{gap:8px;display:grid;& h3{font:13px/19px var(--font-body);color:var(--muted);margin:0}}.template-creator__detail-panel{& article :is(h1,h2){font-size:18px;line-height:26px}background:var(--card-highlight);overflow-wrap:anywhere;border-radius:12px;min-width:0;margin:0;padding:14px 16px;font-size:15px;line-height:23px;& p:first-child,& article>:first-child{margin-top:0}& p:last-child,& article>:last-child{margin-bottom:0}}.template-creator__properties{&>div{grid-template-columns:minmax(0,108px) minmax(0,1fr);gap:16px;padding:10px 0;display:grid}& dt{color:var(--muted);font-size:13px}& dd{margin:0;font-size:14px}}.chat-template-review{grid-column:1;width:min(620px,100%);margin:16px auto}.template-preview__contents{border-bottom:1px solid var(--border)}.template-preview .templates-workspace-file .settings-row__desc{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.template-preview{height:min(680px, var(--openclaw-modal-height-limit));&>header{& h2{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}&.template-preview__header--detail{align-items:center;&>div{text-align:center}}}& img{object-fit:contain;border-radius:inherit;width:100%;height:100%}&>footer{border-top:1px solid var(--border);height:72px;padding:16px 28px}& .template-package-row{border-top:1px solid var(--border);&>svg:first-child:not(:last-child){color:var(--accent);flex-shrink:0;width:24px;height:24px}}& .template-preview__loading{place-items:center;min-height:260px;display:grid}& .template-preview__detail{overflow-wrap:anywhere;padding-bottom:24px;& h3{color:var(--muted);margin:0 0 12px;font-size:13px;font-weight:500}&>p{margin:0 0 28px;font-size:14px;line-height:1.6}& .code-chunk{white-space:pre-wrap}}@media (width<=640px){&>header{gap:12px;padding:20px 16px}&>div{padding:0 16px}&>footer{padding:16px}}}.template-creator{background:var(--bg);border:1px solid var(--border);border-radius:14px;width:620px;max-width:100%;height:565px;&>header{& h2{overflow-wrap:anywhere}}&>footer{min-height:64px;padding:12px 20px;&>.template-creator__actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex;&>[role=status]{color:var(--muted);font-size:12px}}}&:where(.template-creator--detail){grid-template-rows:60px minmax(0,1fr) auto;& .template-creator__body{padding:24px}background:var(--bg-elevated);border-radius:20px;&>:where(header){border-bottom:1px solid var(--border);align-items:center;padding:14px 64px;position:relative;& h2{font:500 16px/24px var(--font-body);text-align:center;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}&>button{inset-inline-start:20px;background:var(--card-highlight);border-radius:8px;height:32px;position:absolute;top:14px}}}}.agents-home__template-card{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--bg-elevated);flex-direction:column;gap:10px;min-width:0;padding:12px;display:flex;position:relative;container-type:inline-size}.agents-home__template-card-link{z-index:1;border-radius:inherit;background:0 0;border:0;padding:0;position:absolute;inset:0}.agents-home__template-card-link:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}.agents-home__template-card-link:disabled{cursor:default}.agents-home__template-head{z-index:2;pointer-events:none;grid-template-columns:36px minmax(0,1fr) auto;grid-template-areas:"art identity add";align-items:start;gap:8px;display:grid;position:relative}@container (width<=279px){.agents-home__template-head{grid-template-areas:"art.add""identity identity identity";align-items:center}}.agents-home__template-head .btn{z-index:3;pointer-events:auto;position:relative}.agents-home__template-art{border-radius:var(--radius-md);background:var(--bg-accent);width:36px;height:36px;color:var(--accent);grid-area:art;place-items:center;display:grid}.agents-home__template-art img{object-fit:contain;width:100%;height:100%}.agents-home__template-art svg{width:20px;height:20px}.agents-home__template-identity{grid-area:identity;min-width:0;min-height:57px}.agents-home__template-identity h3{overflow-wrap:break-word;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:15px;line-height:1.3;display:-webkit-box;overflow:hidden}.agents-home__template-identity span{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.5;display:block;overflow:hidden}.agents-home__template-add{grid-area:add}.agents-home__template-summary{z-index:2;min-height:2.8em;color:var(--muted);-webkit-line-clamp:2;pointer-events:none;-webkit-box-orient:vertical;margin:0;font-size:13px;line-height:1.4;display:-webkit-box;position:relative;overflow:hidden}.agents-home__explore .plugin-catalog-section__header{min-height:28px}.agents-home__template-error{z-index:2;overflow-wrap:anywhere;color:var(--danger);pointer-events:none;margin:0;font-size:13px;line-height:1.4;position:relative}.agents-home__template-empty{color:var(--muted);margin:0 0 16px}.templates-trust-warning{overflow-wrap:anywhere;min-width:0;max-width:100%}.templates-trust-warning__title{display:block}.templates-trust-warning a{color:inherit;text-decoration:underline}.templates-trust-warning__plain{white-space:pre-wrap}.template-reference-card{border:1px solid var(--border);background:var(--bg-elevated);width:min(360px,100vw - 32px);color:var(--text);box-shadow:var(--shadow-lg);border-radius:18px;padding:18px;& header{align-items:center;gap:12px;display:flex}& strong,& small{display:block}& strong{font-size:15px}& small{color:var(--muted);margin-top:3px}& p{margin:16px 0;font-size:14px;line-height:1.6}}.template-reference-card__art{width:36px;height:36px;color:var(--accent);flex:0 0 36px;place-items:center;display:grid;& img{object-fit:contain;border-radius:8px;width:100%;height:100%}}.template-reference-card__view{justify-content:center;width:100%}