ada-ui 4.4.0 → 4.5.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/css/ada.css CHANGED
@@ -1 +1 @@
1
- html{font-size:14px;font-family:"Open Sans",sans-serif;font-weight:400}@media screen and (max-width: 1199px){html{font-size:12px}}html,body{height:100%;min-height:100%;margin:0;padding:0;background:var(--bg);color:var(--fg)}body{font-size:1rem;-webkit-tap-highlight-color:transparent;box-sizing:border-box;padding:.5rem}h1{font-size:3rem}.command-bar:not(.vertical),h2{font-size:2rem}.panel>header:not(.command-bar),.tile>header:not(.command-bar),h3{font-size:1.5rem}.tile>header.command-bar,.panel>footer.command-bar,.tile>footer.command-bar,h4{font-weight:400;font-size:1.2rem}h1,.command-bar:not(.vertical),h2,.panel>header:not(.command-bar),.tile>header:not(.command-bar),h3,.tile>header.command-bar,.panel>footer.command-bar,.tile>footer.command-bar,h4{font-weight:300;text-shadow:0 0 4px var(--light-alpha40);color:var(--fg)}h1{margin:1rem 0 2rem 0}h1.m-0{margin:0}h2{margin:1rem 0 1.5rem 0}h2.m-0{margin:0}h3{margin:.5rem 0 1.5rem 0}h3.m-0{margin:0}h4{margin:.5rem 0 .5rem 0}h4.m-0{margin:0}.panel>footer:not(.command-bar):after,.tile>footer:not(.command-bar):after,.panel>footer:not(.command-bar):before,.tile>footer:not(.command-bar):before,.panel>header:not(.command-bar):after,.tile>header:not(.command-bar):after,.panel>header:not(.command-bar):before,.tile>header:not(.command-bar):before{content:"";border-style:solid;border-color:var(--default);position:absolute;height:1rem;width:1rem;z-index:2}.tile>footer:not(.command-bar):after,.tile>footer:not(.command-bar):before,.tile>header:not(.command-bar):after,.tile>header:not(.command-bar):before{border-color:var(--light-alpha40);height:.75rem;width:.75rem}.panel,.tile{background:var(--panel-background);box-shadow:0 0 10px 0 rgba(0,0,0,.4);border-radius:.3rem;display:grid;grid-template-rows:auto 1fr auto;overflow:auto;margin:.5rem}.panel>header,.tile>header{position:relative}.panel>header:not(.command-bar),.tile>header:not(.command-bar){text-align:left;padding:.4rem .6rem}.panel>header:not(.command-bar):before,.tile>header:not(.command-bar):before{border-width:2px 0 0 2px;border-radius:.3rem 0 0 0;left:0;top:0}.panel>header:not(.command-bar):after,.tile>header:not(.command-bar):after{border-width:2px 2px 0 0;border-radius:0 .3rem 0 0;right:0;top:0}.panel>header:empty,.tile>header:empty{padding:.2rem}.panel>header.command-bar,.tile>header.command-bar{margin:0;margin-bottom:1rem}.panel>header.command-bar:before,.tile>header.command-bar:before{border-radius:.3rem 0 0 0}.panel>header.command-bar:after,.tile>header.command-bar:after{border-radius:0 .3rem 0 0}.panel>article,.tile>article{z-index:1;padding:0 .6rem;overflow:auto}.panel>article::-webkit-scrollbar,.tile>article::-webkit-scrollbar{width:2px;background:transparent}.panel>article::-webkit-scrollbar-thumb,.tile>article::-webkit-scrollbar-thumb{min-width:1rem;border-style:solid;border-color:transparent;border-width:2px 2px 1px 2px;background:var(--default);box-sizing:border-box;background-clip:border-box}.panel>footer,.tile>footer{position:relative}.panel>footer:not(.command-bar),.tile>footer:not(.command-bar){color:var(--footer-color);padding:.4rem .6rem;font-size:.75rem;text-align:right}.panel>footer:not(.command-bar):before,.tile>footer:not(.command-bar):before{border-width:0 0 2px 2px;border-radius:0 0 0 .3rem;left:0;bottom:0}.panel>footer:not(.command-bar):after,.tile>footer:not(.command-bar):after{border-width:0 2px 2px 0;border-radius:0 0 .3rem 0;right:0;bottom:0}.panel>footer:empty,.tile>footer:empty{padding:.2rem}.panel>footer.command-bar,.tile>footer.command-bar{margin:0;margin-top:1rem;line-height:2rem;height:2rem}.panel>footer.command-bar:before,.tile>footer.command-bar:before{border-radius:0 0 0 .3rem}.panel>footer.command-bar:after,.tile>footer.command-bar:after{border-radius:0 0 .3rem 0}.panel>footer.command-bar>.command,.tile>footer.command-bar>.command{height:2rem;font-size:.9rem}.tile>footer:not(.command-bar):after,.tile>footer:not(.command-bar):before,.tile>header:not(.command-bar):after,.tile>header:not(.command-bar):before,.panel>header:not(.command-bar):before,.panel>header:not(.command-bar):after,.panel>footer:not(.command-bar):before,.panel>footer:not(.command-bar):after{content:"";border-style:solid;border-color:var(--default);position:absolute;height:1rem;width:1rem;z-index:2}.tile>footer:not(.command-bar):after,.tile>footer:not(.command-bar):before,.tile>header:not(.command-bar):after,.tile>header:not(.command-bar):before{border-color:var(--light-alpha40);height:.75rem;width:.75rem}.tile{margin:.8rem}.tile>header:not(.command-bar):before{border-width:1px 0 0 1px}.tile>header:not(.command-bar):after{border-width:1px 1px 0 0}.tile>header.command-bar{line-height:2rem;height:2rem}.tile>header.command-bar>.command{height:2rem;font-size:.9rem}.tile>article{color:var(--fg)}.tile>footer:not(.command-bar):before{border-width:0 0 1px 1px}.tile>footer:not(.command-bar):after{border-width:0 1px 1px 0}.tile.inset{box-shadow:inset 0 0 10px 0 rgba(0,0,0,.4)}.tile.inset>header{text-shadow:none}.tile.inset>header:before,.tile.inset>header:after{opacity:.6}.tile.inset footer:before,.tile.inset footer:after{opacity:.6}.command:not(.spacer),.button{overflow:hidden;outline:none;color:var(--fg);font-family:inherit;cursor:pointer;user-select:none;vertical-align:middle;transition:border-color .15s ease-in-out,background-color .15s ease-in-out}.command:disabled:not(.spacer),.button:disabled{opacity:.4;filter:saturate(0.6);cursor:default;pointer-events:none}.button{white-space:nowrap;text-overflow:ellipsis;border-radius:.3rem;box-shadow:0 0 10px 0 rgba(0,0,0,.4);border:1px solid var(--light-alpha40);background-color:transparent;min-height:min-content;min-width:8rem;padding:.8rem 1.6rem;margin:.8rem;font-size:1.1rem}.button.small{min-width:0;padding:.8rem}.button.fill{background-color:var(--default)}.button:focus{border:1px solid var(--light-alpha70)}.button:active{background-color:var(--light);border:1px solid var(--default-alpha40)}.command-bar{position:relative;display:grid;gap:.5rem;margin:.5rem}.command-bar:before,.command-bar:after{box-shadow:0 0 10px 0 rgba(0,0,0,.4);position:absolute;content:"";background:var(--default-alpha70)}.command-bar:not(.vertical){grid-auto-flow:column;text-align:center;align-items:center;line-height:3.6rem;height:3.6rem;padding-left:1.5rem;padding-right:1.5rem}.command-bar:not(.vertical):before,.command-bar:not(.vertical):after{width:1rem;top:0;bottom:0}.command-bar:not(.vertical):before{border-radius:.3rem 0 0 .3rem;left:0}.command-bar:not(.vertical):after{border-radius:0 .3rem .3rem 0;right:0}.command-bar:not(.vertical)>.command{height:3.6rem}.command-bar.vertical{grid-auto-flow:row;min-width:12rem;padding-top:1.5rem;padding-bottom:1.5rem}.command-bar.vertical:before,.command-bar.vertical:after{height:1rem;left:0;right:0}.command-bar.vertical:before{border-radius:.3rem .3rem 0 0;top:0}.command-bar.vertical:after{border-radius:0 0 .3rem .3rem;bottom:0}.command-bar.vertical>.command{min-height:3.6rem}.command{box-sizing:border-box;background-color:var(--default-alpha70);box-shadow:0 0 10px 0 rgba(0,0,0,.4)}.command:not(.spacer){min-width:6rem;display:grid;align-items:end;justify-items:end;text-align:end;font-size:1.1rem;border-style:solid;border-color:transparent;border-width:0 1px 0 0;padding:.4rem}.command:not(.spacer).small{min-width:.5rem}.command:not(.spacer).flash{animation:flash 1s ease-in-out infinite}.command:not(.spacer):focus{border-color:var(--light-alpha70)}.command:not(.spacer):active{background-color:var(--light-alpha70);animation-play-state:paused}.command.spacer{min-width:.5rem}@keyframes flash{50%{background-color:var(--light-alpha70)}}.input{border-radius:.3rem;box-shadow:0 0 10px 0 rgba(0,0,0,.4);outline:none;border:1px solid var(--light-alpha40);color:var(--fg);font-family:inherit;background-color:transparent;transition:border-color .15s ease-in-out;padding:.8rem 1.6rem;margin:.8rem;font-size:1.1rem}.input:focus{border:1px solid var(--light-alpha70)}.input:disabled{opacity:.4;filter:saturate(0.6);cursor:default;pointer-events:none}.spinner{margin:.3rem;display:inline-grid;justify-items:center;align-items:center;width:1em;height:1em;position:relative;box-sizing:border-box;animation:6s .5s rotate ease-in-out alternate infinite}.spinner:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;border-style:solid;border-width:.05em;border-radius:50%;border-color:var(--light-alpha40) transparent;animation:4s .5s inset1 ease-in-out infinite;box-shadow:0px 12px 10px -12px #000a,0px -12px 10px -12px #000a}.spinner:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;border-style:solid;border-width:.05em;border-radius:50%;border-color:transparent var(--light-alpha70);animation:4s .5s inset2 ease-in-out infinite;box-shadow:12px 0px 10px -12px #000a,-12px 0px 10px -12px #000a}@keyframes rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes inset1{0%{top:0;left:0;right:0;bottom:0;transform:rotate(0)}12.5%{top:.2em;left:.2em;right:.2em;bottom:.2em;transform:rotate(0)}37.5%{top:.2em;left:.2em;right:.2em;bottom:.2em;transform:rotate(180deg)}50%{top:0;left:0;right:0;bottom:0;transform:rotate(180deg)}100%{top:0;left:0;right:0;bottom:0;transform:rotate(180deg)}}@keyframes inset2{0%{top:0;left:0;right:0;bottom:0;transform:rotate(0)}50%{top:0;left:0;right:0;bottom:0;transform:rotate(0)}62.5%{top:.2em;left:.2em;right:.2em;bottom:.2em;transform:rotate(0)}87.5%{top:.2em;left:.2em;right:.2em;bottom:.2em;transform:rotate(180deg)}100%{top:0;left:0;right:0;bottom:0;transform:rotate(180deg)}}
1
+ html{font-size:14px;font-family:"Open Sans",sans-serif;font-weight:400}@media screen and (max-width: 1199px){html{font-size:12px}}html,body{height:100%;min-height:100%;margin:0;padding:0;background:var(--bg);color:var(--fg)}body{font-size:1rem;-webkit-tap-highlight-color:transparent;box-sizing:border-box;padding:.5rem}h1{font-size:3rem}.command-bar:not(.vertical),h2{font-size:2rem}.tile>header,.panel>header,h3{font-size:1.5rem}.panel>footer.command-bar,h4{font-weight:400;font-size:1.2rem}h1,.command-bar:not(.vertical),h2,.tile>header,.panel>header,h3,.panel>footer.command-bar,h4{font-weight:300;text-shadow:0 0 4px var(--light-alpha40);color:var(--fg)}h1{margin:1rem 0 2rem 0}h1.m-0{margin:0}h2{margin:1rem 0 1.5rem 0}h2.m-0{margin:0}h3{margin:.5rem 0 1.5rem 0}h3.m-0{margin:0}h4{margin:.5rem 0 .5rem 0}h4.m-0{margin:0}.tile>footer:after,.panel>footer:after,.tile>footer:before,.panel>footer:before,.tile>header:after,.panel>header:after,.tile>header:before,.panel>header:before{content:"";border-style:solid;border-color:var(--default);position:absolute;height:1rem;width:1rem;z-index:2}.tile>footer:after,.tile>footer:before,.tile>header:after,.tile>header:before{border-color:var(--light-alpha40);height:.75rem;width:.75rem}.tile,.panel{background:var(--panel-background);box-shadow:0 0 10px 0 rgba(0,0,0,.4);border-radius:.3rem;display:grid;grid-template-rows:auto 1fr auto;overflow:auto;margin:.5rem}.tile>header,.panel>header{position:relative;padding:.4rem .6rem}.tile>header:before,.panel>header:before{border-width:2px 0 0 2px;border-radius:.3rem 0 0 0;left:0;top:0}.tile>header:after,.panel>header:after{border-width:2px 2px 0 0;border-radius:0 .3rem 0 0;right:0;top:0}.tile>header:empty,.panel>header:empty{padding:.2rem}.tile>article,.panel>article{z-index:1;padding:0 .6rem;overflow:auto}.tile>article::-webkit-scrollbar,.panel>article::-webkit-scrollbar{width:2px;background:transparent}.tile>article::-webkit-scrollbar-thumb,.panel>article::-webkit-scrollbar-thumb{min-width:1rem;border-style:solid;border-color:transparent;border-width:2px 2px 1px 2px;background:var(--default);box-sizing:border-box;background-clip:border-box}.tile>footer,.panel>footer{position:relative;color:var(--footer-color);padding:.4rem .6rem;font-size:.75rem;text-align:right}.tile>footer:before,.panel>footer:before{border-width:0 0 2px 2px;border-radius:0 0 0 .3rem;left:0;bottom:0}.tile>footer:after,.panel>footer:after{border-width:0 2px 2px 0;border-radius:0 0 .3rem 0;right:0;bottom:0}.tile>footer:empty,.panel>footer:empty{padding:.2rem}.panel>header.command-bar{margin:0;margin-bottom:1rem;padding-top:0;padding-bottom:0}.panel>header.command-bar:before,.panel>header.command-bar:after{border:none;height:auto}.panel>header.command-bar:before{border-radius:.3rem 0 0 0}.panel>header.command-bar:after{border-radius:0 .3rem 0 0}.panel>footer.command-bar{margin:0;margin-top:1rem;padding-top:0;padding-bottom:0;line-height:2rem;height:2rem}.panel>footer.command-bar:before,.panel>footer.command-bar:after{border:none;height:auto}.panel>footer.command-bar:before{border-radius:0 0 0 .3rem}.panel>footer.command-bar:after{border-radius:0 0 .3rem 0}.panel>footer.command-bar>.command{height:2rem;font-size:.9rem}.tile>footer:after,.tile>footer:before,.tile>header:after,.tile>header:before,.panel>header:before,.panel>header:after,.panel>footer:before,.panel>footer:after{content:"";border-style:solid;border-color:var(--default);position:absolute;height:1rem;width:1rem;z-index:2}.tile>footer:after,.tile>footer:before,.tile>header:after,.tile>header:before{border-color:var(--light-alpha40);height:.75rem;width:.75rem}.tile{margin:.8rem}.tile>header:before{border-width:1px 0 0 1px}.tile>header:after{border-width:1px 1px 0 0}.tile>article{color:var(--fg)}.tile>footer:before{border-width:0 0 1px 1px}.tile>footer:after{border-width:0 1px 1px 0}.tile.inset{box-shadow:inset 0 0 10px 0 rgba(0,0,0,.4)}.tile.inset>header{text-shadow:none}.tile.inset>header:before,.tile.inset>header:after{opacity:.6}.tile.inset footer:before,.tile.inset footer:after{opacity:.6}.blubb{display:inline-grid;grid-template-columns:1fr;grid-auto-columns:auto;margin:.8rem;grid-auto-flow:column;align-items:stretch;column-gap:.25rem}.blubb>.tile{margin:0;border-radius:.3rem 0 0 .3rem}.blubb>.tile>header:after{border:none}.blubb>.tile>article{padding:.6rem 1.2rem;font-size:1.2rem}.blubb>.tile>footer:after{border:none}.blubb>aside{display:grid;grid-auto-flow:column;column-gap:.25rem}.blubb>aside>.command{background-color:var(--default-alpha40);min-width:2.5rem}.blubb>aside>.command:last-of-type{border-radius:0 .3rem .3rem 0}.command:not(.spacer),.button{overflow:hidden;outline:none;color:var(--fg);font-family:inherit;cursor:pointer;user-select:none;vertical-align:middle;transition:border-color .15s ease-in-out,background-color .15s ease-in-out}.command:disabled:not(.spacer),.button:disabled{opacity:.4;filter:saturate(0.6);cursor:default;pointer-events:none}.button{white-space:nowrap;text-overflow:ellipsis;border-radius:.3rem;box-shadow:0 0 10px 0 rgba(0,0,0,.4);border:1px solid var(--light-alpha40);background-color:transparent;min-height:min-content;min-width:8rem;padding:.8rem 1.6rem;margin:.8rem;font-size:1.1rem}.button.small{min-width:0;padding:.8rem}.button.fill{background-color:var(--default)}.button:focus{border:1px solid var(--light-alpha70)}.button:active{background-color:var(--light);border:1px solid var(--default-alpha40)}.command-bar{position:relative;display:grid;gap:.5rem;margin:.5rem}.command-bar:before,.command-bar:after{box-shadow:0 0 10px 0 rgba(0,0,0,.4);position:absolute;content:"";background:var(--default-alpha70)}.command-bar:not(.vertical){grid-auto-flow:column;text-align:center;align-items:center;line-height:3.6rem;height:3.6rem;padding-left:1.5rem;padding-right:1.5rem}.command-bar:not(.vertical):before,.command-bar:not(.vertical):after{width:1rem;top:0;bottom:0}.command-bar:not(.vertical):before{border-radius:.3rem 0 0 .3rem;left:0}.command-bar:not(.vertical):after{border-radius:0 .3rem .3rem 0;right:0}.command-bar:not(.vertical)>.command{height:3.6rem}.command-bar.vertical{grid-auto-flow:row;min-width:12rem;padding-top:1.5rem;padding-bottom:1.5rem}.command-bar.vertical:before,.command-bar.vertical:after{height:1rem;left:0;right:0}.command-bar.vertical:before{border-radius:.3rem .3rem 0 0;top:0}.command-bar.vertical:after{border-radius:0 0 .3rem .3rem;bottom:0}.command-bar.vertical>.command{min-height:3.6rem}.command{box-sizing:border-box;background-color:var(--default-alpha70);box-shadow:0 0 10px 0 rgba(0,0,0,.4)}.command:not(.spacer){min-width:6rem;display:grid;align-items:end;justify-items:end;text-align:end;font-size:1.1rem;border-style:solid;border-color:transparent;border-width:0 0 0 2px;padding:.2rem .4rem}.command:not(.spacer).small{min-width:.5rem}.command:not(.spacer).flash{animation:flash 1s ease-in-out infinite}.command:not(.spacer):focus{border-color:var(--light-alpha70)}.command:not(.spacer):active{background-color:var(--light-alpha70);animation-play-state:paused}.command.spacer{min-width:.5rem}@keyframes flash{50%{background-color:var(--light-alpha70)}}.input{border-radius:.3rem;box-shadow:0 0 10px 0 rgba(0,0,0,.4);outline:none;border:1px solid var(--light-alpha40);color:var(--fg);font-family:inherit;background-color:transparent;transition:border-color .15s ease-in-out;padding:.8rem 1.6rem;margin:.8rem;font-size:1.1rem}.input:focus{border:1px solid var(--light-alpha70)}.input:disabled{opacity:.4;filter:saturate(0.6);cursor:default;pointer-events:none}.spinner{margin:.3rem;display:inline-grid;justify-items:center;align-items:center;width:1em;height:1em;position:relative;box-sizing:border-box;animation:6s .5s rotate ease-in-out alternate infinite}.spinner:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;border-style:solid;border-width:.05em;border-radius:50%;border-color:var(--light-alpha40) transparent;animation:4s .5s inset1 ease-in-out infinite;box-shadow:0px 12px 10px -12px #000a,0px -12px 10px -12px #000a}.spinner:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;border-style:solid;border-width:.05em;border-radius:50%;border-color:transparent var(--light-alpha70);animation:4s .5s inset2 ease-in-out infinite;box-shadow:12px 0px 10px -12px #000a,-12px 0px 10px -12px #000a}@keyframes rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes inset1{0%{top:0;left:0;right:0;bottom:0;transform:rotate(0)}12.5%{top:.2em;left:.2em;right:.2em;bottom:.2em;transform:rotate(0)}37.5%{top:.2em;left:.2em;right:.2em;bottom:.2em;transform:rotate(180deg)}50%{top:0;left:0;right:0;bottom:0;transform:rotate(180deg)}100%{top:0;left:0;right:0;bottom:0;transform:rotate(180deg)}}@keyframes inset2{0%{top:0;left:0;right:0;bottom:0;transform:rotate(0)}50%{top:0;left:0;right:0;bottom:0;transform:rotate(0)}62.5%{top:.2em;left:.2em;right:.2em;bottom:.2em;transform:rotate(0)}87.5%{top:.2em;left:.2em;right:.2em;bottom:.2em;transform:rotate(180deg)}100%{top:0;left:0;right:0;bottom:0;transform:rotate(180deg)}}
package/index.html CHANGED
@@ -69,6 +69,45 @@
69
69
  Header
70
70
  </header>
71
71
  <article style="display: grid; grid-auto-rows: max-content">
72
+ <div class="panel">
73
+ <header>Lab</header>
74
+ <article style="display: grid; grid-auto-flow: column">
75
+ <div class="blubb">
76
+ <div class="tile">
77
+ <header></header>
78
+ <article>Tile Content</article>
79
+ <footer></footer>
80
+ </div>
81
+ <aside>
82
+ <button class="command shade2"></button>
83
+ <button style="width: 4rem" class="command"></button>
84
+ </aside>
85
+ </div>
86
+ <div class="blubb">
87
+ <div class="tile">
88
+ <header></header>
89
+ <article>Tile Content</article>
90
+ <footer></footer>
91
+ </div>
92
+ <aside>
93
+ <button class="command shade2"></button>
94
+ <button style="width: 4rem" class="command"></button>
95
+ </aside>
96
+ </div>
97
+ <div class="blubb">
98
+ <div class="tile">
99
+ <header></header>
100
+ <article>Tile Content</article>
101
+ <footer></footer>
102
+ </div>
103
+ <aside>
104
+ <button class="command shade2"></button>
105
+ <button style="width: 4rem" class="command"></button>
106
+ </aside>
107
+ </div>
108
+ </article>
109
+ <footer></footer>
110
+ </div>
72
111
  <div class="panel">
73
112
  <header>Colors</header>
74
113
  <article>
@@ -160,22 +199,6 @@
160
199
  align-items: start;
161
200
  "
162
201
  >
163
- <div class="tile">
164
- <header class="command-bar">
165
- <button class="command small shade2">Comand</button>
166
- <div class="command spacer"></div>
167
- </header>
168
- <article>With command header</article>
169
- <footer>Footer</footer>
170
- </div>
171
- <div class="tile">
172
- <header>Header</header>
173
- <article>With command footer</article>
174
- <footer class="command-bar">
175
- <div class="command spacer"></div>
176
- <button class="command small warn">Comand</button>
177
- </footer>
178
- </div>
179
202
  <div class="tile inset">
180
203
  <header>Header</header>
181
204
  <article>Inset</article>
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "ada-ui",
3
- "version": "4.4.0",
3
+ "version": "4.5.0-beta.0",
4
4
  "scripts": {
5
+ "dev": "tmux splitw -d npm run build:dev && tmux splitw -d npm run start:dev",
5
6
  "start:dev": "alive-server .",
6
7
  "build:dev": "sass scss:css --watch",
7
8
  "build": "rm -rf css && sass scss:css -s compressed --no-source-map"
@@ -86,8 +86,8 @@
86
86
  font-size: 1.1rem;
87
87
  border-style: solid;
88
88
  border-color: transparent;
89
- border-width: 0 1px 0 0;
90
- padding: 0.4rem;
89
+ border-width: 0 0 0 2px;
90
+ padding: 0.2rem 0.4rem;
91
91
 
92
92
  &.small {
93
93
  min-width: 0.5rem;
package/scss/_panel.scss CHANGED
@@ -1,6 +1,6 @@
1
1
  @import "corner";
2
2
 
3
- .panel {
3
+ %panel {
4
4
  background: var(--panel-background);
5
5
  box-shadow: $box-shadow;
6
6
  border-radius: 0.3rem;
@@ -11,43 +11,27 @@
11
11
 
12
12
  > header {
13
13
  position: relative;
14
+ @extend %h3;
15
+ padding: 0.4rem 0.6rem;
14
16
 
15
- &:not(.command-bar) {
16
- text-align: left;
17
- @extend %h3;
18
- padding: 0.4rem 0.6rem;
19
-
20
- &:before {
21
- @extend %corner;
22
- border-width: 2px 0 0 2px;
23
- border-radius: 0.3rem 0 0 0;
24
- left: 0;
25
- top: 0;
26
- }
27
- &:after {
28
- @extend %corner;
29
- border-width: 2px 2px 0 0;
30
- border-radius: 0 0.3rem 0 0;
31
- right: 0;
32
- top: 0;
33
- }
17
+ &:before {
18
+ @extend %corner;
19
+ border-width: 2px 0 0 2px;
20
+ border-radius: 0.3rem 0 0 0;
21
+ left: 0;
22
+ top: 0;
23
+ }
24
+ &:after {
25
+ @extend %corner;
26
+ border-width: 2px 2px 0 0;
27
+ border-radius: 0 0.3rem 0 0;
28
+ right: 0;
29
+ top: 0;
34
30
  }
35
31
 
36
32
  &:empty {
37
33
  padding: 0.2rem;
38
34
  }
39
-
40
- &.command-bar {
41
- margin: 0;
42
- margin-bottom: 1rem;
43
-
44
- &:before {
45
- border-radius: 0.3rem 0 0 0;
46
- }
47
- &:after {
48
- border-radius: 0 0.3rem 0 0;
49
- }
50
- }
51
35
  }
52
36
 
53
37
  > article {
@@ -72,39 +56,72 @@
72
56
  > footer {
73
57
  position: relative;
74
58
 
75
- &:not(.command-bar) {
76
- color: var(--footer-color);
77
- padding: 0.4rem 0.6rem;
78
- font-size: 0.75rem;
79
- text-align: right;
59
+ color: var(--footer-color);
60
+ padding: 0.4rem 0.6rem;
61
+ font-size: 0.75rem;
62
+ text-align: right;
80
63
 
81
- &:before {
82
- @extend %corner;
83
- border-width: 0 0 2px 2px;
84
- border-radius: 0 0 0 0.3rem;
85
- left: 0;
86
- bottom: 0;
87
- }
88
- &:after {
89
- @extend %corner;
90
- border-width: 0 2px 2px 0;
91
- border-radius: 0 0 0.3rem 0;
92
- right: 0;
93
- bottom: 0;
94
- }
64
+ &:before {
65
+ @extend %corner;
66
+ border-width: 0 0 2px 2px;
67
+ border-radius: 0 0 0 0.3rem;
68
+ left: 0;
69
+ bottom: 0;
70
+ }
71
+ &:after {
72
+ @extend %corner;
73
+ border-width: 0 2px 2px 0;
74
+ border-radius: 0 0 0.3rem 0;
75
+ right: 0;
76
+ bottom: 0;
95
77
  }
96
78
 
97
79
  &:empty {
98
80
  padding: 0.2rem;
99
81
  }
82
+ }
83
+ }
84
+
85
+ .panel {
86
+ @extend %panel;
87
+
88
+ > header {
89
+ &.command-bar {
90
+ margin: 0;
91
+ margin-bottom: 1rem;
92
+ padding-top: 0;
93
+ padding-bottom: 0;
94
+
95
+ &:before,
96
+ &:after {
97
+ border: none;
98
+ height: auto;
99
+ }
100
100
 
101
+ &:before {
102
+ border-radius: 0.3rem 0 0 0;
103
+ }
104
+ &:after {
105
+ border-radius: 0 0.3rem 0 0;
106
+ }
107
+ }
108
+ }
109
+ > footer {
101
110
  &.command-bar {
102
111
  @extend %h4;
103
112
  margin: 0;
104
113
  margin-top: 1rem;
114
+ padding-top: 0;
115
+ padding-bottom: 0;
105
116
  line-height: 2rem;
106
117
  height: 2rem;
107
118
 
119
+ &:before,
120
+ &:after {
121
+ border: none;
122
+ height: auto;
123
+ }
124
+
108
125
  &:before {
109
126
  border-radius: 0 0 0 0.3rem;
110
127
  }
package/scss/_tile.scss CHANGED
@@ -1,30 +1,17 @@
1
1
  @import "corner";
2
2
 
3
3
  .tile {
4
- @extend .panel;
4
+ @extend %panel;
5
5
  margin: 0.8rem;
6
6
 
7
7
  > header {
8
- &:not(.command-bar) {
9
- &:before {
10
- @extend %corner-light;
11
- border-width: 1px 0 0 1px;
12
- }
13
- &:after {
14
- @extend %corner-light;
15
- border-width: 1px 1px 0 0;
16
- }
8
+ &:before {
9
+ @extend %corner-light;
10
+ border-width: 1px 0 0 1px;
17
11
  }
18
-
19
- &.command-bar {
20
- @extend %h4;
21
- line-height: 2rem;
22
- height: 2rem;
23
-
24
- & > .command {
25
- height: 2rem;
26
- font-size: 0.9rem;
27
- }
12
+ &:after {
13
+ @extend %corner-light;
14
+ border-width: 1px 1px 0 0;
28
15
  }
29
16
  }
30
17
 
@@ -33,15 +20,13 @@
33
20
  }
34
21
 
35
22
  > footer {
36
- &:not(.command-bar) {
37
- &:before {
38
- @extend %corner-light;
39
- border-width: 0 0 1px 1px;
40
- }
41
- &:after {
42
- @extend %corner-light;
43
- border-width: 0 1px 1px 0;
44
- }
23
+ &:before {
24
+ @extend %corner-light;
25
+ border-width: 0 0 1px 1px;
26
+ }
27
+ &:after {
28
+ @extend %corner-light;
29
+ border-width: 0 1px 1px 0;
45
30
  }
46
31
  }
47
32
 
@@ -64,3 +49,50 @@
64
49
  }
65
50
  }
66
51
  }
52
+
53
+ .blubb {
54
+ display: inline-grid;
55
+ grid-template-columns: 1fr;
56
+ grid-auto-columns: auto;
57
+ margin: 0.8rem;
58
+ grid-auto-flow: column;
59
+ align-items: stretch;
60
+ column-gap: 0.25rem;
61
+
62
+ > .tile {
63
+ margin: 0;
64
+ border-radius: 0.3rem 0 0 0.3rem;
65
+
66
+ > header {
67
+ &:after {
68
+ border: none;
69
+ }
70
+ }
71
+
72
+ > article {
73
+ padding: 0.6rem 1.2rem;
74
+ font-size: 1.2rem;
75
+ }
76
+
77
+ > footer {
78
+ &:after {
79
+ border: none;
80
+ }
81
+ }
82
+ }
83
+
84
+ > aside {
85
+ display: grid;
86
+ grid-auto-flow: column;
87
+ column-gap: 0.25rem;
88
+
89
+ > .command {
90
+ background-color: var(--default-alpha40);
91
+ min-width: 2.5rem;
92
+
93
+ &:last-of-type {
94
+ border-radius: 0 0.3rem 0.3rem 0;
95
+ }
96
+ }
97
+ }
98
+ }