PluginProbe
AI Builder – Generate pages, blocks, images & translate with AI / 2.7.1
AI Builder – Generate pages, blocks, images & translate with AI v2.7.1
2.7.9 2.7.8 2.0.8 2.0.9 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.3.0 2.3.10 2.3.11 All 121 releases
ai-builder / assets / css / code.css

code.css in AI Builder – Generate pages, blocks, images & translate with AI 2.7.1, at assets/css/code.css

169 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .code-container {
2 padding: 40px 24px;
3 margin: 0 auto;
4 max-width: 800px;
5 border-radius: 8px;
6 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
7 }
8
9 .code-title {
10 font-size: 1.75rem;
11 font-weight: 600;
12 margin-bottom: 0.75rem;
13 color: #1a1a1a;
14 }
15
16 .code-description {
17 font-size: 1rem;
18 color: #666;
19 margin-bottom: 1.5rem;
20 }
21
22 .code-block {
23 width: 100%;
24 max-width: 700px;
25 margin: 0 auto 1.5rem;
26 padding: 1.5rem;
27 background-color: #1e1e1e;
28 border-radius: 8px;
29 overflow-x: auto;
30 font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
31 font-size: 0.95rem;
32 line-height: 1.6;
33 color: #d4d4d4;
34 position: relative;
35 box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
36 }
37
38 /* Syntax Highlighting */
39 .code-block .keyword {
40 color: #569cd6;
41 }
42
43 .code-block .function {
44 color: #dcdcaa;
45 }
46
47 .code-block .string {
48 color: #ce9178;
49 }
50
51 .code-block .comment {
52 color: #6a9955;
53 }
54
55 .code-block .variable {
56 color: #9cdcfe;
57 }
58
59 .code-block .operator {
60 color: #d4d4d4;
61 }
62
63 /* Copy Button */
64 .code-block::before {
65 content: "Copy";
66 position: absolute;
67 top: 0.5rem;
68 right: 0.5rem;
69 padding: 0.25rem 0.5rem;
70 background-color: #2d2d2d;
71 color: #d4d4d4;
72 border-radius: 4px;
73 font-size: 0.8rem;
74 cursor: pointer;
75 opacity: 0;
76 transition: opacity 0.3s ease;
77 }
78
79 .code-block:hover::before {
80 opacity: 1;
81 }
82
83 .code-block.copied::before {
84 content: "Copied!";
85 background-color: #4caf50;
86 color: white;
87 }
88
89 /* Line Numbers */
90 .code-block {
91 counter-reset: line;
92 }
93
94 .code-block .line {
95 position: relative;
96 padding-left: 3.5rem;
97 }
98
99 .code-block .line::before {
100 counter-increment: line;
101 content: counter(line);
102 position: absolute;
103 left: 0;
104 width: 2.5rem;
105 text-align: right;
106 color: #6a9955;
107 padding-right: 1rem;
108 border-right: 1px solid #3d3d3d;
109 user-select: none;
110 }
111
112 .code-info {
113 font-size: 0.9rem;
114 color: #666;
115 margin-top: 0.75rem;
116 }
117
118 /* Responsive Styles */
119 @media (max-width: 768px) {
120 .code-container {
121 padding: 30px 16px;
122 }
123
124 .code-title {
125 font-size: 1.5rem;
126 }
127
128 .code-description {
129 font-size: 0.95rem;
130 }
131
132 .code-block {
133 padding: 1rem;
134 font-size: 0.9rem;
135 }
136
137 .code-block .line {
138 padding-left: 3rem;
139 }
140
141 .code-block .line::before {
142 width: 2rem;
143 }
144 }
145
146 /* Scrollbar Styling */
147 .code-block::-webkit-scrollbar {
148 height: 8px;
149 }
150
151 .code-block::-webkit-scrollbar-track {
152 background: #2d2d2d;
153 border-radius: 4px;
154 }
155
156 .code-block::-webkit-scrollbar-thumb {
157 background: #4d4d4d;
158 border-radius: 4px;
159 }
160
161 .code-block::-webkit-scrollbar-thumb:hover {
162 background: #5d5d5d;
163 }
164
165 /* Selection Styling */
166 .code-block::selection {
167 background-color: #264f78;
168 color: #d4d4d4;
169 }