tiny.css.MediaEnvironment
Defined in media.
API (8)
Actions
Public operations.
Fields and members
Public fields and members.
Source
Source: lib/css/src/media.zig:27
zig
pub const MediaEnvironment = struct { media_type: MediaType = .screen, width: f32 = 800, height: f32 = 600, font_size: f32 = 16, color_scheme: ColorScheme = .light, reduced_motion: ReducedMotion = .no_preference, pub fn default() MediaEnvironment { return .{}; } pub fn screen(width: f32, height: f32) MediaEnvironment { return .{ .media_type = .screen, .width = width, .height = height }; }};Source: lib/css/src/root.zig:50
zig
pub const MediaEnvironment = sheet.MediaEnvironment;Also reachable as
Audit
| Definitions | 3 |
|---|---|
| Public names | 9 |
| Members | 6 |
| Version | 26.7.0 |
| Revision | daab053ee433 |