@@ -1242,198 +1242,206 @@ section h2::after {
12421242 background-color : var (--color-secondary-dark );
12431243}
12441244
1245- /* Examples Showcase Styles */
1246- .examples-showcase {
1245+ /* Examples Showcase Styles - Compact Version */
1246+ .examples-grid {
12471247 display : grid;
1248- gap : 3rem ;
1248+ grid-template-columns : repeat (2 , 1fr );
1249+ gap : 2rem ;
12491250 max-width : 1200px ;
12501251 margin : 0 auto;
12511252}
12521253
1253- .example-mode {
1254+ .example-card {
12541255 background : white;
1255- border-radius : 12px ;
1256- padding : 2rem ;
1257- box-shadow : 0 4px 6px rgba (0 , 0 , 0 , 0.1 );
1256+ border-radius : 10px ;
1257+ padding : 1.75rem ;
1258+ box-shadow : 0 2px 4px rgba (0 , 0 , 0 , 0.08 );
1259+ border : 1px solid # e5e7eb ;
12581260}
12591261
1260- .mode-header h3 {
1261- color : # 1e40af ;
1262+ .example-card : hover {
1263+ box-shadow : 0 4px 8px rgba (0 , 0 , 0 , 0.12 );
1264+ border-color : # d1d5db ;
1265+ }
1266+
1267+ .example-header {
1268+ display : flex;
1269+ align-items : center;
1270+ justify-content : space-between;
1271+ margin-bottom : 0.75rem ;
1272+ padding-bottom : 0.75rem ;
1273+ border-bottom : 1px solid # e5e7eb ;
1274+ }
1275+
1276+ .example-header h3 {
1277+ font-size : 1.125rem ;
1278+ font-weight : 700 ;
1279+ color : # 1f2937 ;
12621280 font-family : 'Courier New' , monospace;
1281+ margin : 0 ;
12631282}
12641283
1265- .mode-header p {
1266- line-height : 1.6 ;
1284+ .badge {
1285+ padding : 0.25rem 0.5rem ;
1286+ border-radius : 4px ;
1287+ font-size : 0.625rem ;
1288+ font-weight : 600 ;
1289+ text-transform : uppercase;
1290+ letter-spacing : 0.025em ;
12671291}
12681292
1269- .example-box {
1270- margin-top : 1.5rem ;
1271- background : # f8fafc ;
1272- border-radius : 8px ;
1273- padding : 1.5rem ;
1274- border : 1px solid # e2e8f0 ;
1293+ .badge-blue {
1294+ background : # dbeafe ;
1295+ color : # 1e40af ;
12751296}
12761297
1277- .key-display {
1278- background : # 1e293b ;
1279- color : white;
1280- padding : 0.75rem 1rem ;
1281- border-radius : 6px ;
1282- margin-bottom : 1.5rem ;
1283- display : flex;
1284- align-items : center;
1285- flex-wrap : wrap;
1286- gap : 0.5rem ;
1287- font-family : 'Courier New' , monospace;
1298+ .badge-green {
1299+ background : # d1fae5 ;
1300+ color : # 065f46 ;
12881301}
12891302
1290- .key-label {
1291- color : # 94a3b8 ;
1292- font-size : 0.875rem ;
1293- text-transform : uppercase;
1294- letter-spacing : 0.05em ;
1303+ .badge-purple {
1304+ background : # ede9fe ;
1305+ color : # 6b21a8 ;
12951306}
12961307
1297- .key-value {
1298- color : # fbbf24 ;
1308+ .badge-orange {
1309+ background : # fed7aa ;
1310+ color : # 9a3412 ;
1311+ }
1312+
1313+ .example-description {
12991314 font-size : 0.875rem ;
1300- word-break : break-all;
1315+ color : # 6b7280 ;
1316+ margin-bottom : 1rem ;
1317+ line-height : 1.4 ;
13011318}
13021319
1303- .transformations {
1320+ .example-samples {
13041321 display : flex;
13051322 flex-direction : column;
1306- gap : 0.75 rem ;
1323+ gap : 0.5 rem ;
13071324}
13081325
1309- .transform-row {
1326+ .sample {
13101327 display : flex;
13111328 align-items : center;
1312- gap : 1rem ;
1313- padding : 0.75rem ;
1314- background : white;
1329+ gap : 0.75rem ;
1330+ padding : 0.625rem 0.75rem ;
1331+ padding-right : 3.5rem ;
1332+ background : # f9fafb ;
13151333 border-radius : 6px ;
1316- border : 1px solid # e2e8f0 ;
1334+ font-family : 'Courier New' , monospace;
1335+ font-size : 0.875rem ;
13171336 position : relative;
1318- flex-wrap : wrap ;
1337+ border : 1 px solid transparent ;
13191338}
13201339
1321- .transform-row : hover {
1322- border-color : # 3b82f6 ;
1323- box-shadow : 0 2px 4px rgba (59 , 130 , 246 , 0.1 );
1324- }
1325-
1326- .ip-input , .ip-output {
1327- font-family : 'Courier New' , monospace;
1328- font-size : 0.95rem ;
1329- padding : 0.25rem 0.5rem ;
1330- border-radius : 4px ;
1340+ .sample : hover {
1341+ background : # f3f4f6 ;
13311342}
13321343
1333- .ip-input {
1334- background : # f0f9ff ;
1344+ .sample .input {
13351345 color : # 1e40af ;
1336- border : 1 px solid # bfdbfe ;
1337- min-width : 140 px ;
1346+ font-weight : 600 ;
1347+ min-width : 110 px ;
13381348}
13391349
1340- .ip-input .ipv6 {
1341- min-width : 320px ;
1350+ .sample .arrow {
1351+ color : # 9ca3af ;
1352+ font-size : 1rem ;
13421353}
13431354
1344- .ip-output {
1345- background : # f0fdf4 ;
1346- color : # 14532d ;
1347- border : 1px solid # bbf7d0 ;
1355+ .sample .output {
13481356 flex : 1 ;
1357+ color : # 059669 ;
13491358 word-break : break-all;
1359+ font-size : 0.825rem ;
1360+ margin-right : 0.5rem ;
13501361}
13511362
1352- .ip-output .hex {
1353- background : # fef3c7 ;
1354- color : # 78350f ;
1355- border : 1px solid # fde68a ;
1356- font-size : 0.85rem ;
1357- }
1358-
1359- .ip-output .ipv6 {
1360- min-width : 320px ;
1363+ .sample .output .hex {
1364+ color : # 7c3aed ;
1365+ font-size : 0.775rem ;
13611366}
13621367
1363- .arrow {
1364- color : # 6b7280 ;
1365- font-size : 1.25rem ;
1366- font-weight : bold;
1367- flex-shrink : 0 ;
1368+ .sample .output em {
1369+ font-style : normal;
1370+ font-weight : 700 ;
1371+ color : # 059669 ;
1372+ text-decoration : underline;
1373+ text-decoration-style : dotted;
1374+ text-decoration-color : # 10b981 ;
13681375}
13691376
1370- .transform-row . note {
1377+ .indicator {
13711378 position : absolute;
1372- right : 1 rem ;
1379+ right : 0.375 rem ;
13731380 top : 50% ;
13741381 transform : translateY (-50% );
1375- background : # 3b82f6 ;
1376- color : white;
1377- padding : 0.25rem 0.75rem ;
1378- border-radius : 20px ;
1379- font-size : 0.75rem ;
1382+ padding : 0.125rem 0.375rem ;
1383+ border-radius : 3px ;
1384+ font-size : 0.625rem ;
13801385 font-weight : 600 ;
1381- text-transform : uppercase;
1382- letter-spacing : 0.05em ;
1386+ white-space : nowrap;
13831387}
13841388
1385- .highlight-duplicate {
1386- background : # fef3c7 !important ;
1389+ .highlight-same {
1390+ background : # fef3c7 ;
1391+ border-color : # fbbf24 ;
13871392}
13881393
1389- .highlight-duplicate . note {
1390- background : # f59e0b ;
1394+ .highlight-same . indicator {
1395+ color : # 92400e ;
13911396}
13921397
1393- .highlight-prefix .ip-output {
1394- position : relative;
1398+ .highlight-prefix {
1399+ background : # d1fae5 ;
1400+ border-color : # 10b981 ;
13951401}
13961402
1397- .highlight-prefix .note {
1398- background : # 10b981 ;
1403+ .highlight-prefix .indicator {
1404+ color : # 065f46 ;
13991405}
14001406
14011407.highlight-different {
1402- background : # ede9fe !important ;
1408+ background : # ede9fe ;
1409+ border-color : # 8b5cf6 ;
14031410}
14041411
1405- .highlight-different .note {
1406- background : # 8b5cf6 ;
1412+ .highlight-different .indicator {
1413+ color : # 6b21a8 ;
14071414}
14081415
14091416/* Responsive adjustments */
1410- @media (max-width : 768 px ) {
1411- .example-mode {
1412- padding : 1.5 rem ;
1417+ @media (max-width : 992 px ) {
1418+ .examples-grid {
1419+ grid-template-columns : 1 fr ;
14131420 }
1414-
1415- .example-box {
1416- padding : 1rem ;
1421+ }
1422+
1423+ @media (max-width : 768px ) {
1424+ .example-card {
1425+ padding : 1.25rem ;
14171426 }
14181427
1419- .transform-row {
1428+ .sample {
1429+ font-size : 0.8rem ;
14201430 padding : 0.5rem ;
14211431 }
14221432
1423- .transform-row .note {
1424- position : static;
1425- transform : none;
1426- margin-top : 0.5rem ;
1427- display : inline-block;
1433+ .sample .input {
1434+ min-width : 85px ;
1435+ font-size : 0.75rem ;
14281436 }
14291437
1430- .ip-input , .ip-output {
1431- font-size : 0.85rem ;
1432- min-width : auto;
1433- width : 100% ;
1438+ .sample .output {
1439+ font-size : 0.7rem ;
14341440 }
14351441
1436- .key-value {
1437- font-size : 0.75rem ;
1442+ .indicator {
1443+ position : static;
1444+ transform : none;
1445+ margin-left : auto;
14381446 }
14391447}
0 commit comments