nkuprins commented on code in PR #979:
URL: https://github.com/apache/fesod/pull/979#discussion_r3708082926


##########
website/src/css/xl-sheet.css:
##########
@@ -0,0 +1,412 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ * Excel-like grids used in the write/fill docs in place of screenshots.
+ *
+ * Geometry is expressed in Excel's own units and scaled by --xl-scale. Each
+ * spreadsheet value gets its own class, named after that value:
+ *
+ *   <td class="xl-cw-25">           @ColumnWidth(25)
+ *   <td class="xl-rh-30">           @ContentRowHeight(30)
+ *   <td class="xl-fs-20">           setFontHeightInPoints(20)
+ *   <td class="xl-fill-red">
+ *   <td class="xl-fc-red">
+ *
+ * The values have to be enumerated here rather than passed inline, because an
+ * MDX `style` attribute is parsed by hast-util-to-estree via style-to-js, and
+ * the version this site resolves throws on any `style` attribute at all.
+ */
+
+.xl-sheet-container,
+.xl-sheet,
+.xl-sheet-tabs {
+    --xl-scale: 1;
+    --xl-col-unit: calc(7.2px * var(--xl-scale)); /* one Excel column-width 
unit */
+    --xl-row-unit: calc(1.8px * var(--xl-scale)); /* one point of Excel row 
height */
+    --xl-pt: calc(0.8pt * var(--xl-scale));
+
+    --xl-paper: #f5f5f5;
+    --xl-ink: #000;
+    --xl-grid: #e0e0e0;
+    --xl-head-bg: #bfbfbf;
+    --xl-chrome-bg: #f5f5f5;
+    --xl-chrome-grid: #e0e0e0;
+    --xl-tab-bg: #f5f5f5;
+    --xl-tab-fg: #555;
+
+    --xl-white: #ffffff;
+    --xl-red: #ff0000;
+    --xl-magenta: #ff00ff;
+    --xl-green: #14824b;
+    --xl-sky: #1890ff;
+    --xl-bright-green: #168f52;
+
+    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, 
Cantarell, "Noto Sans", Helvetica, sans-serif, Arial;
+    line-height: 1.2;
+}
+
+/* dark theme */
+
+[data-theme='dark'] {
+    .xl-sheet-container {
+        border: none;
+        background: rgba(255, 255, 255, 0.05);
+    }
+
+    .xl-sheet .xl-chrome {
+        background: rgba(255, 255, 255, 0.05);
+        color: var(--xl-white);
+        border-color: rgba(255, 255, 255, 0.05);
+    }

Review Comment:
   @delei For context: _Native CSS nesting has been available since 
April-August 2023_



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to