Class: Dommy::Internal::CSS::MediaQuery::Environment
- Inherits:
-
Struct
- Object
- Struct
- Dommy::Internal::CSS::MediaQuery::Environment
- Defined in:
- lib/dommy/internal/css/media_query.rb
Instance Attribute Summary collapse
-
#device_pixel_ratio ⇒ Object
Returns the value of attribute device_pixel_ratio.
-
#hover ⇒ Object
Returns the value of attribute hover.
-
#pointer ⇒ Object
Returns the value of attribute pointer.
-
#prefers_color_scheme ⇒ Object
Returns the value of attribute prefers_color_scheme.
-
#prefers_reduced_motion ⇒ Object
Returns the value of attribute prefers_reduced_motion.
-
#viewport_height ⇒ Object
Returns the value of attribute viewport_height.
-
#viewport_width ⇒ Object
Returns the value of attribute viewport_width.
Class Method Summary collapse
Instance Attribute Details
#device_pixel_ratio ⇒ Object
Returns the value of attribute device_pixel_ratio
25 26 27 |
# File 'lib/dommy/internal/css/media_query.rb', line 25 def device_pixel_ratio @device_pixel_ratio end |
#hover ⇒ Object
Returns the value of attribute hover
25 26 27 |
# File 'lib/dommy/internal/css/media_query.rb', line 25 def hover @hover end |
#pointer ⇒ Object
Returns the value of attribute pointer
25 26 27 |
# File 'lib/dommy/internal/css/media_query.rb', line 25 def pointer @pointer end |
#prefers_color_scheme ⇒ Object
Returns the value of attribute prefers_color_scheme
25 26 27 |
# File 'lib/dommy/internal/css/media_query.rb', line 25 def prefers_color_scheme @prefers_color_scheme end |
#prefers_reduced_motion ⇒ Object
Returns the value of attribute prefers_reduced_motion
25 26 27 |
# File 'lib/dommy/internal/css/media_query.rb', line 25 def prefers_reduced_motion @prefers_reduced_motion end |
#viewport_height ⇒ Object
Returns the value of attribute viewport_height
25 26 27 |
# File 'lib/dommy/internal/css/media_query.rb', line 25 def @viewport_height end |
#viewport_width ⇒ Object
Returns the value of attribute viewport_width
25 26 27 |
# File 'lib/dommy/internal/css/media_query.rb', line 25 def @viewport_width end |
Class Method Details
.default ⇒ Object
30 31 32 33 34 |
# File 'lib/dommy/internal/css/media_query.rb', line 30 def self.default new(viewport_width: 1280, viewport_height: 720, device_pixel_ratio: 1.0, prefers_color_scheme: "light", prefers_reduced_motion: "no-preference", hover: "hover", pointer: "fine") end |