返回 CodeWhale
native-terminal-gallery.css
根目录 / web / components / native-terminal-gallery.css
1 .native-terminal-gallery {
2 display: grid;
3 gap: var(--space-3);
4 min-width: 0;
5 color: var(--text);
6 }
7
8 .native-terminal-controls {
9 display: flex;
10 flex-wrap: wrap;
11 gap: var(--space-1);
12 border-bottom: 1px solid var(--line);
13 padding-bottom: var(--space-2);
14 }
15
16 .native-terminal-button {
17 min-height: 2.75rem;
18 padding: var(--space-2) var(--space-3);
19 border: 1px solid transparent;
20 border-radius: var(--radius-control);
21 background: transparent;
22 color: var(--muted);
23 font: inherit;
24 font-size: var(--text-ui);
25 line-height: 1.3;
26 cursor: pointer;
27 transition: color var(--dur-state) var(--ease-out), background-color var(--dur-state) var(--ease-out);
28 }
29
30 .native-terminal-button:hover {
31 background: var(--hover);
32 color: var(--text);
33 }
34
35 .native-terminal-button[aria-pressed="true"] {
36 background: var(--panel);
37 color: var(--accent);
38 font-weight: 600;
39 }
40
41 .native-terminal-gallery :focus-visible {
42 outline: 2px solid var(--ring);
43 outline-offset: 3px;
44 }
45
46 .native-terminal-description {
47 max-width: 70ch;
48 margin: 0;
49 color: var(--muted);
50 font-size: var(--text-ui);
51 line-height: 1.55;
52 }
53
54 .native-terminal-view {
55 min-width: 0;
56 overflow: hidden;
57 border-radius: var(--radius-surface);
58 }
59
60 .native-terminal-view .term-capture-scroll {
61 max-width: 100%;
62 scrollbar-width: thin;
63 scrollbar-color: var(--line-strong) transparent;
64 }
65
66 .native-terminal-view .term-capture-scroll:focus-visible {
67 outline-offset: -3px;
68 }
69
70 .native-terminal-footer {
71 display: flex;
72 flex-wrap: wrap;
73 justify-content: space-between;
74 align-items: baseline;
75 gap: var(--space-2) var(--space-4);
76 font-size: var(--text-caption);
77 line-height: 1.5;
78 }
79
80 .native-terminal-scroll-hint {
81 color: var(--muted);
82 }
83
84 .native-terminal-components-link {
85 display: inline-flex;
86 align-items: center;
87 gap: var(--space-2);
88 color: var(--accent);
89 text-underline-offset: .2em;
90 }
91
92 .native-terminal-components-link:hover {
93 text-decoration: underline;
94 }
95
96 @media (max-width: 760px) {
97 .native-terminal-controls {
98 column-gap: var(--space-1);
99 row-gap: var(--space-2);
100 }
101
102 .native-terminal-footer {
103 align-items: flex-start;
104 flex-direction: column;
105 }
106 }
107
107 lines CSS