-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ac88bf
commit 22eae76
Showing
10 changed files
with
230 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
packages/core/src/global/material-grid/mdc-layout-grid-debug.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
@import '../variables'; | ||
|
||
/* Grid Debug - Settings */ | ||
:root { | ||
--g-columns: var(--ray-layout-grid-columns-phone); | ||
--g-gutter: var(--ray-layout-grid-gutter-phone); | ||
--g-margin: var(--ray-layout-grid-margin-phone); | ||
--g-color: hsla(4, 80%, 72%, 0.35); | ||
} | ||
|
||
@media (min-width: map-get($ray-layout-grid-breakpoints, tablet)) { | ||
:root { | ||
--g-columns: var(--ray-layout-grid-columns-tablet); | ||
--g-gutter: var(--ray-layout-grid-gutter-tablet); | ||
--g-margin: var(--ray-layout-grid-margin-tablet); | ||
} | ||
} | ||
|
||
@media (min-width: map-get($ray-layout-grid-breakpoints, desktop)) { | ||
:root { | ||
--g-columns: var(--ray-layout-grid-columns-desktop); | ||
--g-gutter: var(--ray-layout-grid-gutter-desktop); | ||
--g-margin: var(--ray-layout-grid-margin-desktop); | ||
} | ||
} | ||
|
||
/* Grid Debug - Helper variables */ | ||
:root { | ||
--g-repeating-width: calc((100% / var(--g-columns))); | ||
--g-column-width: calc((100% / var(--g-columns)) - var(--g-gutter)); | ||
--g-background-columns: repeating-linear-gradient( | ||
to right, | ||
var(--g-color), | ||
var(--g-color), | ||
var(--g-column-width), | ||
transparent var(--g-column-width), | ||
transparent var(--g-repeating-width) | ||
); | ||
} | ||
|
||
.#{$ray-class-prefix}grid--debug { | ||
position: relative; | ||
|
||
&.#{$ray-class-prefix}grid::before { | ||
right: var(--g-margin) !important; | ||
margin-right: calc(-1 * var(--g-gutter)) !important; | ||
} | ||
|
||
&::before { | ||
content: ''; | ||
display: block; | ||
position: absolute; | ||
height: 100%; | ||
left: var(--g-margin); | ||
right: calc(var(--g-margin) + -1 * var(--g-gutter)); | ||
top: 0; | ||
bottom: 0; | ||
max-width: calc( | ||
#{map-get($ray-layout-grid-max-width, desktop)} - var(--g-margin) * 2 + var(--g-gutter) | ||
); | ||
margin: 0 auto; | ||
background-image: var(--g-background-columns); | ||
z-index: 1000; | ||
pointer-events: none; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import './global/material-grid/mdc-layout-grid-debug'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5733,6 +5733,13 @@ concat-stream@^1.4.6, concat-stream@^1.4.7, concat-stream@^1.5.0, concat-stream@ | |
readable-stream "^2.2.2" | ||
typedarray "^0.0.6" | ||
|
||
concat-with-sourcemaps@^1.0.0: | ||
version "1.1.0" | ||
resolved "https://registry.yarnpkg.com/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz#d4ea93f05ae25790951b99e7b3b09e3908a4082e" | ||
integrity sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg== | ||
dependencies: | ||
source-map "^0.6.1" | ||
|
||
config-chain@^1.1.11, config-chain@^1.1.12: | ||
version "1.1.12" | ||
resolved "https://registry.yarnpkg.com/config-chain/-/config-chain-1.1.12.tgz#0fde8d091200eb5e808caf25fe618c02f48e4efa" | ||
|
@@ -7236,7 +7243,7 @@ duplexer@^0.1.1: | |
resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.1.tgz#ace6ff808c1ce66b57d1ebf97977acb02334cfc1" | ||
integrity sha1-rOb/gIwc5mtX0ev5eXessCM0z8E= | ||
|
||
duplexify@^3.2.0, duplexify@^3.4.2, duplexify@^3.6.0: | ||
duplexify@^3.2.0, duplexify@^3.4.2, duplexify@^3.5.0, duplexify@^3.6.0: | ||
version "3.7.1" | ||
resolved "https://registry.yarnpkg.com/duplexify/-/duplexify-3.7.1.tgz#2a4df5317f6ccfd91f86d6fd25d8d8a103b88309" | ||
integrity sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g== | ||
|
@@ -8734,6 +8741,11 @@ forever-agent@~0.6.1: | |
resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" | ||
integrity sha1-+8cfDEGt6zf5bFd60e1C2P2sypE= | ||
|
||
fork-stream@^0.0.4: | ||
version "0.0.4" | ||
resolved "https://registry.yarnpkg.com/fork-stream/-/fork-stream-0.0.4.tgz#db849fce77f6708a5f8f386ae533a0907b54ae70" | ||
integrity sha1-24Sfznf2cIpfjzhq5TOgkHtUrnA= | ||
|
||
[email protected]: | ||
version "1.0.0-alpha.6" | ||
resolved "https://registry.yarnpkg.com/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-1.0.0-alpha.6.tgz#826c57048addf8a3253853615c84f3ff7beeaf45" | ||
|
@@ -9978,6 +9990,15 @@ gulp-cli@^2.0.0: | |
v8flags "^3.0.1" | ||
yargs "^7.1.0" | ||
|
||
[email protected]: | ||
version "2.6.1" | ||
resolved "https://registry.yarnpkg.com/gulp-concat/-/gulp-concat-2.6.1.tgz#633d16c95d88504628ad02665663cee5a4793353" | ||
integrity sha1-Yz0WyV2IUEYorQJmVmPO5aR5M1M= | ||
dependencies: | ||
concat-with-sourcemaps "^1.0.0" | ||
through2 "^2.0.0" | ||
vinyl "^2.0.0" | ||
|
||
gulp-decompress@^1.2.0: | ||
version "1.2.0" | ||
resolved "https://registry.yarnpkg.com/gulp-decompress/-/gulp-decompress-1.2.0.tgz#8eeb65a5e015f8ed8532cafe28454960626f0dc7" | ||
|
@@ -9988,6 +10009,22 @@ gulp-decompress@^1.2.0: | |
gulp-util "^3.0.1" | ||
readable-stream "^2.0.2" | ||
|
||
[email protected]: | ||
version "2.0.2" | ||
resolved "https://registry.yarnpkg.com/gulp-if/-/gulp-if-2.0.2.tgz#a497b7e7573005041caa2bc8b7dda3c80444d629" | ||
integrity sha1-pJe351cwBQQcqivIt92jyARE1ik= | ||
dependencies: | ||
gulp-match "^1.0.3" | ||
ternary-stream "^2.0.1" | ||
through2 "^2.0.1" | ||
|
||
gulp-match@^1.0.3: | ||
version "1.0.3" | ||
resolved "https://registry.yarnpkg.com/gulp-match/-/gulp-match-1.0.3.tgz#91c7c0d7f29becd6606d57d80a7f8776a87aba8e" | ||
integrity sha1-kcfA1/Kb7NZgbVfYCn+Hdqh6uo4= | ||
dependencies: | ||
minimatch "^3.0.3" | ||
|
||
[email protected], gulp-rename@^1.2.0: | ||
version "1.4.0" | ||
resolved "https://registry.yarnpkg.com/gulp-rename/-/gulp-rename-1.4.0.tgz#de1c718e7c4095ae861f7296ef4f3248648240bd" | ||
|
@@ -20662,6 +20699,16 @@ term-size@^1.2.0: | |
dependencies: | ||
execa "^0.7.0" | ||
|
||
ternary-stream@^2.0.1: | ||
version "2.0.1" | ||
resolved "https://registry.yarnpkg.com/ternary-stream/-/ternary-stream-2.0.1.tgz#064e489b4b5bf60ba6a6b7bc7f2f5c274ecf8269" | ||
integrity sha1-Bk5Im0tb9gumpre8fy9cJ07Pgmk= | ||
dependencies: | ||
duplexify "^3.5.0" | ||
fork-stream "^0.0.4" | ||
merge-stream "^1.0.0" | ||
through2 "^2.0.1" | ||
|
||
terser-webpack-plugin@^1.1.0, terser-webpack-plugin@^1.2.1, terser-webpack-plugin@^1.2.2: | ||
version "1.2.3" | ||
resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-1.2.3.tgz#3f98bc902fac3e5d0de730869f50668561262ec8" | ||
|