Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phantom types: More properties, pseudo-stuff and a few fixes #553

Open
wants to merge 51 commits into
base: phantom-types
Choose a base branch
from

Commits on Nov 17, 2021

  1. Adds Logical border radius properties

    Implements:
    - border-start-start-radius
    - border-start-end-radius
    - border-end-start-radius
    - border-end-end-radius
    
    In both 1 and 2-argument forms.
    dzuk-mutant committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    6b76a8c View commit details
    Browse the repository at this point in the history
  2. Adds basic scroll-margin-block/inline

    Implements the following:
    - scroll-margin-block
    - scroll-margin-inline
    
    both as 1 and 2 argument versions.
    dzuk-mutant committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    953e131 View commit details
    Browse the repository at this point in the history
  3. Bug fix for all current scroll margins

    Scroll-margin properties don't accept percentages, only basic lengths.
    https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-margin
    
    - All scroll-margin properties have had their input types changed from LengthSupported { auto : Supported } to Length.
    dzuk-mutant committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    b0cf944 View commit details
    Browse the repository at this point in the history
  4. Adds start/end scroll margins

    Implements the following:
    - scroll-margin-block-start
    - scroll-margin-block-end
    - scroll-margin-inline-start
    - scroll-margin-inline-end
    dzuk-mutant committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    736fc6e View commit details
    Browse the repository at this point in the history
  5. Adds inset property

    - Adds an implementation of the inset property in 1, 2, 3, and 4 argument forms.
    - Renames the pre-existing 'inset' value to 'inset_', based on current package conventions.
    dzuk-mutant committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    6afbf85 View commit details
    Browse the repository at this point in the history
  6. Adds one-liner inset-block/inline

    Implements the following:
    - inset-block
    - inset-inline
    as both 1 and 2-argument functions.
    dzuk-mutant committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    e0f2931 View commit details
    Browse the repository at this point in the history
  7. Add inset start/end properties

    Implements the following:
    - inset-block-start
    - inset-block-end
    - inset-inline-start
    - inset-inline-end
    
    Makes the docs for top, bottom, left and right properties flow a bit better with the link use.
    Changed the links for inset-block and inset-inline functions from MDN to CSS Tricks Almanac.
    dzuk-mutant committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    54788eb View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f8fdad2 View commit details
    Browse the repository at this point in the history
  9. Adds scroll-padding-block/inline one-liners

    Implements the following:
    - scroll-padding-block
    - scroll-padding-inline
    
    Both as 1 and 2-argument functions.
    
    - Fixed variable naming in scrollMarginBlock2 and scrollMarginInline2.
    - Fixed a typo I noticed in scrollPadding's documentation.
    dzuk-mutant committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    5fdb082 View commit details
    Browse the repository at this point in the history
  10. Adds start/end scroll padding

    Implements the following properties:
    - scroll-padding-block-start
    - scroll-padding-block-end
    - scroll-padding-inline-start
    - scroll-padding-inline-end
    dzuk-mutant committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    d753af9 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    9b8ffed View commit details
    Browse the repository at this point in the history
  12. BaseValue fixes

    Some one-argument functions I wrote didn't use BaseValue when they should have.. This has been fixed.
    dzuk-mutant committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    018cf0a View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2021

  1. Adds logical sizing, size property fixes

    Implements the following:
    - block-size
    - inline-size
    - max-block-size
    - max-inline-size
    - min-block-size
    - min-inline-size
    
    Fixes:
    - Both the width and height properties can accept, pct, auto, maxContent, minContent and fitContent, so I've changed their type annotations to add them.
    - Re-arranged existing sizing property and variable functions so they flow better (group functions first and values later).
    - Made the documentation for minContent, maxContent and fitContent a bit more concise and inclusive to Logical size properties.
    dzuk-mutant committed Nov 18, 2021
    Configuration menu
    Copy the full SHA
    3f2e99a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3af14b7 View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2021

  1. Add gap and row-gap

    Implements the following:
    - gap
    - row-gap
    
    This commit also groups column-gap with the aforementioned properties since they're related.
    dzuk-mutant committed Nov 19, 2021
    Configuration menu
    Copy the full SHA
    98dcdf9 View commit details
    Browse the repository at this point in the history
  2. Add Logical overflow properties

    Implements the following:
    - overflow-block
    - overflow-inline
    dzuk-mutant committed Nov 19, 2021
    Configuration menu
    Copy the full SHA
    7ca126d View commit details
    Browse the repository at this point in the history
  3. Add overscroll-behavior properties

    Implements the following:
    - overscroll-behavior
    - overscroll-behavior-x
    - overscroll-behavior-y
    - overscroll-behavior-block
    - overscroll-behavior-inline
    dzuk-mutant committed Nov 19, 2021
    Configuration menu
    Copy the full SHA
    6362c2f View commit details
    Browse the repository at this point in the history
  4. boxShadow inset and documentation fix

    - The 'inset_' field for box-shadows has been renamed to 'inset' because they don't interact with the 'inset_' function.
    - Fixed a typo in the boxShadows documentation where the function examples were called 'boxShadow' instead of 'boxShadows'.
    dzuk-mutant committed Nov 19, 2021
    Configuration menu
    Copy the full SHA
    060872b View commit details
    Browse the repository at this point in the history
  5. Merge branch 'phantom-types-pr4' into phantom-types-pr3

    # Conflicts:
    #	src/Css.elm
    dzuk-mutant committed Nov 19, 2021
    Configuration menu
    Copy the full SHA
    52689ab View commit details
    Browse the repository at this point in the history
  6. Documentation fix for contain

    The contain variable now includes documentation for overscrollBehavior as well as backgroundSize.
    dzuk-mutant committed Nov 19, 2021
    Configuration menu
    Copy the full SHA
    3092434 View commit details
    Browse the repository at this point in the history
  7. Adds quotes property

    - Adds quotes property (in 1, 2 and 4 argument versions)
    - Moves the string value up to the area with other shared value types
    dzuk-mutant committed Nov 19, 2021
    Configuration menu
    Copy the full SHA
    62fa02d View commit details
    Browse the repository at this point in the history
  8. Adds text-overflow property

    Implements:
    - text-overflow property (in 1 and 2-argument forms)
    - ellipsis value (for text-overflow)
    dzuk-mutant committed Nov 19, 2021
    Configuration menu
    Copy the full SHA
    b03be81 View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2021

  1. Adds line-break

    Implements the following:
    - line-break
    - strict value for line-break
    - loose value for line-break
    
    Adds line-break as a use case the documentation for the other values that it accepts.
    dzuk-mutant committed Nov 20, 2021
    Configuration menu
    Copy the full SHA
    cb1a07c View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2021

  1. Adds prelim 2 and 3-argument hanging-punctuation

    Adds preliminary 2 and 3-argument versions of hanging-punctuation.
    
    These need more work because the way the arguments work here can enable incorrectly typed CSS.
    dzuk-mutant committed Nov 21, 2021
    Configuration menu
    Copy the full SHA
    2443e4f View commit details
    Browse the repository at this point in the history
  2. Adds resize property

    Implements the following:
    - resize property
    - horizontal and vertical values (for resize)
    
    Changed the variable names in various functions to eliminate naming conflicts with the new horizontal and vertical values.
    dzuk-mutant committed Nov 21, 2021
    Configuration menu
    Copy the full SHA
    6529a30 View commit details
    Browse the repository at this point in the history
  3. Adds contain property and values

    Implements the following:
    - contain property (1, 2, 3 and 4 argument versions)
    - strict value
    - size value
    - layout value
    - style value
    - paint value
    
    Changes to existing code:
    - style variables in functions have been renamed to styleVal to avoid clashes with style.
    - size variables in functions have been renamed to sizeVal to avoid clashes with size.
    - Renamed contain value to contain_ so as to not clash with contain property.
    
    It's unclear how to mark contain4 since having values is redundant but calling it containAll is probably misleading, so it's being called contain4 pending further discussion.
    dzuk-mutant committed Nov 21, 2021
    Configuration menu
    Copy the full SHA
    a78c3d1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e01813b View commit details
    Browse the repository at this point in the history
  5. Adds paint-order

    Implements the following:
    - paint-order property (in 1, 2 and 3-argument forms)
    - markers value
    
    Adjusts the documentation of fill_ and stroke to mention that they work with paintOrder.
    dzuk-mutant committed Nov 21, 2021
    Configuration menu
    Copy the full SHA
    50a95d3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    dbaa819 View commit details
    Browse the repository at this point in the history
  7. Adds clip value to overflow properties

    - Adds clip value to overflow, overflowX and overflowY.
    dzuk-mutant committed Nov 21, 2021
    Configuration menu
    Copy the full SHA
    f5765bc View commit details
    Browse the repository at this point in the history
  8. Adds perspective property

    - Adds perspective property
    - Renames the pre-existing 'perspective' value to 'perspective_'
    dzuk-mutant committed Nov 21, 2021
    Configuration menu
    Copy the full SHA
    45ee249 View commit details
    Browse the repository at this point in the history
  9. Adds perspective-origin property

    - Implements perspective-origin property.
    - Applies elm-format to the previous few commits that hadn't had it applied.
    dzuk-mutant committed Nov 21, 2021
    Configuration menu
    Copy the full SHA
    a794c50 View commit details
    Browse the repository at this point in the history
  10. Adds scale and rotate properties

    - Adds scale property (as scale, scale2, and scale3)
    - Renames scale value to scale_ (to avoid conflicts with scale)
    - Renames scale2 value to scale2_ (to avoid conflicts with scale2)
    - Adds rotate property (as rotate and rotate2)
    - Renames rotate value to rotate_ (to avoid conflicts with rotate)
    - New value function: z
    - New value function: vec3
    - Changes some variable names in functions to avoid conflicts with new value functions
    dzuk-mutant committed Nov 21, 2021
    Configuration menu
    Copy the full SHA
    b23ca7f View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    9d0ae6a View commit details
    Browse the repository at this point in the history
  12. Adds various pseudo-elements

    Adds the folowing pseudo-elements:
    - ::backdrop
    - ::cue
    - ::marker
    - ::placeholder
    - ::selection
    dzuk-mutant committed Nov 21, 2021
    Configuration menu
    Copy the full SHA
    256f5eb View commit details
    Browse the repository at this point in the history
  13. Code and documentation fixes

    - Keeps active, disabled and after DRY.
    - Makes a doc I just made make a little more sense.
    dzuk-mutant committed Nov 21, 2021
    Configuration menu
    Copy the full SHA
    c0d2c8a View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2021

  1. Adds many pseudo-classes

    Adds the following pseudo-classes:
    - :checked
    - :empty
    - :enabled
    - :first-child
    - :first-of-type
    - :focus
    - :fullscreen
    - :hover
    - :in-range
    - :indeterminate
    - :invalid
    - :last-child
    - :last-of-type
    - :link
    - :only-child
    - :only-of-type
    - :out-of-range
    - :read-only
    - :read-write
    - :required
    - :root
    - :scope
    - :target
    - :valid
    - :visited
    dzuk-mutant committed Nov 22, 2021
    Configuration menu
    Copy the full SHA
    a953ca5 View commit details
    Browse the repository at this point in the history
  2. Applies elm-format

    Applies elm-format to recent changes.
    dzuk-mutant committed Nov 22, 2021
    Configuration menu
    Copy the full SHA
    f8bb767 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2021

  1. Doc improvements for contain values

    - Noted that contain: style; is at-risk of being depreciated.
    dzuk-mutant committed Nov 23, 2021
    Configuration menu
    Copy the full SHA
    12ef623 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'phantom-types-misc1' into phantom-types-pr3

    # Conflicts:
    #	src/Css.elm
    dzuk-mutant committed Nov 23, 2021
    Configuration menu
    Copy the full SHA
    c1297a0 View commit details
    Browse the repository at this point in the history
  3. Fixed missing issues from merge

    There were a series of conflicts and a few duplicate functions from the recent merge. This fixes those issues.
    dzuk-mutant committed Nov 23, 2021
    Configuration menu
    Copy the full SHA
    5281244 View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2021

  1. Adds font-variant-east-asian

    - Added all possible implementations of font-variant-east-asian.
    - Added all possible values of font-variant-east-asian.
    - Changed the docs for fullWidth so it includes it's new use with fontVariantEastAsian.
    dzuk-mutant committed Nov 24, 2021
    Configuration menu
    Copy the full SHA
    46b95ae View commit details
    Browse the repository at this point in the history
  2. Adds font-optical-sizing

    - Added the font-optical-sizing property.
    dzuk-mutant committed Nov 24, 2021
    Configuration menu
    Copy the full SHA
    2c5c5b4 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2021

  1. More font properties

    Implements the following:
    - font-kerning
    - font-language-override
    - font-synthesis (1, 2 and 3-argument variants)
    - font-variant-position
    
    Other changes:
    - made contain4 a normal property because I figured it would be more readable to have explicit CSS values rather than implicit ones.
    dzuk-mutant committed Nov 27, 2021
    Configuration menu
    Copy the full SHA
    37a70a3 View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2021

  1. Grouping more shared values 1

    Cleaning up by moving values shared across different types of properties into the 'Shared Values' section.
    These values also have updated documentation to these the properties that use them.
    
    Moved values:
    - start
    - end
    - left_
    - right_
    - top_
    - bottom_
    - baseline
    - clip
    - block
    - inline
    - ruby
    
    Pre-existing values in the shared category have also had updated documentation.
    
    Some documentation to other values have had lightly improved grammar.
    dzuk-mutant committed Dec 5, 2021
    Configuration menu
    Copy the full SHA
    b0f618d View commit details
    Browse the repository at this point in the history
  2. Grouping more shared values 2

    Bringing more values that should be in the shared section:
    - stretch (added documentation)
    - center (added documentation)
    - content (improved documentation)
    - normal
    - text (improved docs)
    - paddingBox
    - cover (improved docs)
    - contain_
    
    Other stuff
    - Improved documentation for placeholder.
    - Added links to moved values in the Align Items section of the docs so the user knows that these are other values that can be used.
    - Simplified the wording in the documentation for repeat values to match the wording in other documentation for values.
    - Applied elm-format to previous commits.
    dzuk-mutant committed Dec 5, 2021
    Configuration menu
    Copy the full SHA
    d601804 View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2021

  1. Re-organised and improved docs

    As I'm working on this file more, I found that a lot of things didn't have clear organisation so I figured it would be good to give them a look over.
    
    Moved docs and exposing
    - Moved the shared values section to a more logical part of the docs and exposing (after the main measurements)
    - Moved the url variable higher up in the docs and exposing.
    - Added one line break between the cursor properties and the cursor values since I figured that would separate them a bit more neatly.
    
    Edited documentation
    - Changed the levels of different headers to reflect what level they're actually at in the general categorisation heirarchy.
    - Fixed a doc typo in contain_ and textOverflow2.
    - Renamed 'Align Items' section to 'Flex align items' and made it a subheader of the Flexbox module section as there's no other purpose for these particular values.
    dzuk-mutant committed Dec 6, 2021
    Configuration menu
    Copy the full SHA
    01238b3 View commit details
    Browse the repository at this point in the history
  2. Grouping more shared values 3

    More shared values have been organised together:
    - fullWidth
    - sub
    - super
    
    Misc:
    - Moved ltr and rtl values to be next to the direction property in the code (since they are the only things that go together)
    dzuk-mutant committed Dec 6, 2021
    Configuration menu
    Copy the full SHA
    7000980 View commit details
    Browse the repository at this point in the history
  3. Grouping more shared values 4

    Grouped what might be the last batch of shared values:
    - all_
    - both
    - strict
    - fill_
    - stroke
    - always
    - x
    - y
    - style
    
    Misc:
    - Expanded documentation for slice and clone.
    - Fixed some documentation typos for shared values
    - Applied elm-format to Css.elm.
    dzuk-mutant committed Dec 6, 2021
    Configuration menu
    Copy the full SHA
    5307911 View commit details
    Browse the repository at this point in the history
  4. Rer-ordered shared values

    - Rearranged the shared values so values with similar effects and categories are next to each other.
    - Improved documentation
    dzuk-mutant committed Dec 6, 2021
    Configuration menu
    Copy the full SHA
    49f851e View commit details
    Browse the repository at this point in the history
  5. Re-organised clip in docs and includes

    Forgot to move clip to it's more appropriate place in the shared values.
    dzuk-mutant committed Dec 6, 2021
    Configuration menu
    Copy the full SHA
    a742834 View commit details
    Browse the repository at this point in the history