Skip to content

Commit 2d4666d

Browse files
committed
v.2.2.0
1 parent 68f1c0b commit 2d4666d

File tree

53 files changed

+74
-24
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+74
-24
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<Styled GlobalStyle="ColorHotPink">
2+
label: color-hotpink;
3+
color: hotpink;
4+
</Styled>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@inject IStyled Styled
2+
3+
<p class="@Styled.GlobalStyles[" ColorHotPink"]">
4+
This paragraph is hot pink because the it uses a global style that defines it to be hot pink.
5+
</p>
0 Bytes
Binary file not shown.
1 Byte
Binary file not shown.

docs/_framework/_bin/BlazorStyled.dll

0 Bytes
Binary file not shown.
427 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
1 Byte
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

docs/_framework/_bin/SampleCore.dll

2 KB
Binary file not shown.
374 Bytes
Binary file not shown.

docs/_framework/_bin/System.Core.dll

0 Bytes
Binary file not shown.
1 Byte
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.
2 Bytes
Binary file not shown.

docs/_framework/_bin/System.dll

0 Bytes
Binary file not shown.

docs/_framework/_bin/System.dll.gz

2 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
2 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

docs/_framework/_bin/mscorlib.dll

0 Bytes
Binary file not shown.

docs/_framework/_bin/mscorlib.dll.gz

-1 Bytes
Binary file not shown.

docs/_framework/blazor.boot.json

+23-23
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,35 @@
55
"linkerEnabled": true,
66
"resources": {
77
"assembly": {
8-
"BlazorPrettyCode.dll": "sha256-ZDBSHGKUPjiX2jZlFm\/ayXkXkV\/GMpidJrU7zrnAgWA=",
9-
"BlazorStyled.dll": "sha256-QfBMO31A9DBB1fsUjTJM0inKHg2BR0yETmAqBbU+ryI=",
10-
"BlazorTypography.dll": "sha256-IP4r6IpvSpZFzq8paQxjtdwDh0GCjH7lmXHabpCCgRI=",
11-
"ClientSideSample.dll": "sha256-Ky2y+SkQ0WQ+doED1HkhyNMQRptvA\/UTuuCHmvLdSqs=",
8+
"BlazorPrettyCode.dll": "sha256-bfRCw3v0yHSJ+UE7DLieBGRhEGt5s9Xwi114tve0qnk=",
9+
"BlazorStyled.dll": "sha256-WWV3n6aBuojlJUhFthGBg8wLCXKaaxiHWc6VlWqlwV0=",
10+
"BlazorTypography.dll": "sha256-R2cMx2tSil61M+m6LmRAYpeQ8nrY9531E\/PWoe2u+3Q=",
11+
"ClientSideSample.dll": "sha256-JHDM995h8dAgvvAu3UmKbipn3WiQl\/XtsFYUK1xQFsg=",
1212
"CSHTMLTokenizer.dll": "sha256-hayWnG0MBNcIseM4R4ZMbbu9wyTpG5rI4D2G\/pBun3c=",
13-
"Microsoft.AspNetCore.Components.dll": "sha256-MzZDSkkNjMw9znRlH9K4hpSmnAC2Qx15hLOvQ\/b6V18=",
14-
"Microsoft.AspNetCore.Components.Web.dll": "sha256-lXF6tU+cgXiZJNDzc9JIcdcQVE0LXU2NpJzAwymzRfo=",
15-
"Microsoft.AspNetCore.Components.WebAssembly.dll": "sha256-a26i6NOfFLWLGaw4+HjR07bOs0n09m57r5+2BmhGjVg=",
13+
"Microsoft.AspNetCore.Components.dll": "sha256-00Es+cNnP8QmeBgQC0R+nXH53\/5qwT4oeWvMZsfoDk0=",
14+
"Microsoft.AspNetCore.Components.Web.dll": "sha256-AFLnWeZvea3twfKt\/c4r6nbBCYBsSs3Fy3PiDLvdWiU=",
15+
"Microsoft.AspNetCore.Components.WebAssembly.dll": "sha256-qBq1bPvR406IRctXJCiLB\/5Ax\/PrrVCtYe7Fv1bqYQ4=",
1616
"Microsoft.Bcl.AsyncInterfaces.dll": "sha256-jzHgXWAvWMkKIGFjZoT84tbe72E+H7CvTr\/Dryh4QPs=",
17-
"Microsoft.Extensions.Configuration.Abstractions.dll": "sha256-6rHQpg\/HyONTARUew8kVaRhXrSi16ss9C7lJ\/MnvHPc=",
18-
"Microsoft.Extensions.Configuration.dll": "sha256-+e9ohDBPCk\/X0Wq8zTGdSqilPgS1i\/4yu3DYrmQmW0M=",
19-
"Microsoft.Extensions.DependencyInjection.Abstractions.dll": "sha256-o\/nLw7bRl1VVRBMGR65pmalC1Y2BzLb1qZxa4b36aXM=",
20-
"Microsoft.Extensions.DependencyInjection.dll": "sha256-eldYKht5kE4fzeytNcu7v4cgbNqcUpXreOWkK2nblbU=",
21-
"Microsoft.Extensions.Logging.Abstractions.dll": "sha256-Amdq6lBEYzYAw1x82zxi82FfaaueFgdeYE2bwW01r74=",
22-
"Microsoft.Extensions.Primitives.dll": "sha256-Vd01KWCaymDTMe5wj9tdBe+DZLS8rhlFdZa359uR3Dg=",
17+
"Microsoft.Extensions.Configuration.Abstractions.dll": "sha256-gMjMxokECF1fhtyNylJTGcV\/28ZjoOYsJ45C\/YWt+kU=",
18+
"Microsoft.Extensions.Configuration.dll": "sha256-niKQGfnZ1hRWVdXNXtqS2Rljsxw+ENARwqpNdF9f4RM=",
19+
"Microsoft.Extensions.DependencyInjection.Abstractions.dll": "sha256-wuviaQrvThcn\/GZgqBd+6MNVUzvzbUshX\/4yETWQDYo=",
20+
"Microsoft.Extensions.DependencyInjection.dll": "sha256-inSnlxK7xZxmkYc73FVdzHbg0xOs34jCEIxd0nVgG1w=",
21+
"Microsoft.Extensions.Logging.Abstractions.dll": "sha256-9KR5ZUHO7rvQdmk83ZazmUJf4ZdrxQpfiw2N1YgmQ3s=",
22+
"Microsoft.Extensions.Primitives.dll": "sha256-UcF0s5gKGz61K8q7rFKeDGJs+nuZDcjqErL1O\/pO\/LI=",
2323
"Microsoft.JSInterop.dll": "sha256-CJ0jnf2G21cOvZYQt\/4NVkv642Xz8fLQyPnHvcfP3D4=",
2424
"Microsoft.JSInterop.WebAssembly.dll": "sha256-VP8179q6KlTFT\/O0r6zq3Il8a0P7HOsHY2h35s5Lpng=",
25-
"mscorlib.dll": "sha256-Gku0SdOWlRYbN4+VRoLzBBHEWdNYuIaBzoJ2pMx19d0=",
25+
"mscorlib.dll": "sha256-iJmdmPAl0WECqSR4sDSMlBLVkGTmiceG6isBAYaJI90=",
2626
"Polished.net.dll": "sha256-TIAx8OOnl9YQJ9ymf6NK5BEF3Am0xOqKiKQnxarQIbg=",
27-
"SampleCore.dll": "sha256-gqAscgrJGg6K+XBwqXwhe1wNI09BwXHQrZSxTMqgGFI=",
27+
"SampleCore.dll": "sha256-jfzNJfJE6ZLLEDJt0K7Lb6enVSeC+Fhblx4CJ2aFanw=",
2828
"Stateless.dll": "sha256-Z0Ib3TQDHXW7VpbYGpuN0Cz31f+MXMsNE00wihDNoqw=",
29-
"System.Core.dll": "sha256-A5dC6IIV3F3EA6y2RFPYfByqwSqB+FlPgulbyhBytvE=",
30-
"System.dll": "sha256-IkgpxUfl+uSeEVBY+30fHF6GMofFQ+bWSES5XHPzS9M=",
31-
"System.Net.Http.dll": "sha256-xWHQKUaVz1RmaTwxphHv9lMXRLO88kLiECzpaXl8B10=",
32-
"System.Runtime.CompilerServices.Unsafe.dll": "sha256-kk0k5LCsHeDEPRIAgnjDxzoleh\/wb93P7nSbHa+XhC4=",
33-
"System.Text.Encodings.Web.dll": "sha256-IbYqn9lyRFiLlExhGpoz9eNrbgGkAJFC2uKQbOAoY78=",
34-
"System.Text.Json.dll": "sha256-HkEyRqPDdqUNuhDxRqqGU\/VpTMO2cipF7tn\/fa\/Zz1s=",
35-
"WebAssembly.Bindings.dll": "sha256-6Bs590Wcn9AKYNbOTgU00Zkf68W5BsZMEm9BBFHjN9E=",
36-
"WebAssembly.Net.Http.dll": "sha256-5dUL7EqPLGDgAFSq7m1MVUJ\/F6c1dVWc6+s6vDYtMPQ="
29+
"System.Core.dll": "sha256-CGk\/zd\/ueB7QcSgn4dpkM1QIxSb3VsZ54r6GrToSarM=",
30+
"System.dll": "sha256-REsUuv+DT1qtOSsi4HmYXl94nVsup58XgFtVHbnHAmU=",
31+
"System.Net.Http.dll": "sha256-3EctvMj4iSKtlit6peuZ7AfHPfxzERDaC8MEBd1lVjE=",
32+
"System.Runtime.CompilerServices.Unsafe.dll": "sha256-WUCy7aufqGhxPN7YnYphXK9lSPISt3rkMVuecLOW0d8=",
33+
"System.Text.Encodings.Web.dll": "sha256-OMaGBOS6ydBwZS8VXsWb06Gq5X3UuRIzf4GEMG0QPJI=",
34+
"System.Text.Json.dll": "sha256-ZGtUF46CDg4HIgZuEbLdjswfNqSAKYqBwvy6\/\/joPU0=",
35+
"WebAssembly.Bindings.dll": "sha256-cZB6FKBssQipX0KHw9wNO\/gLeBjkF+L3349yJx\/aqFA=",
36+
"WebAssembly.Net.Http.dll": "sha256-BN5wPpg4v46EBwrkyx3Vi4WcHeLvSpeDJlPq0Rk06a8="
3737
},
3838
"runtime": {
3939
"dotnet.3.2.0-preview2.20159.2.js": "sha256-80Q7rIpqLxXzuMWqtC+FCBNrG15kR\/r+ba08n2TpQO0=",

docs/_framework/blazor.boot.json.gz

5 Bytes
Binary file not shown.

src/BlazorStyled/BlazorStyled.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<LangVersion>8.0</LangVersion>
77
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
88
<PackageId>BlazorStyled</PackageId>
9-
<Version>2.1.0</Version>
9+
<Version>2.2.0</Version>
1010
<Authors>Chanan Braunstein</Authors>
1111
<Title>BlazorStyled</Title>
1212
<Description>CSS in Blazor Components</Description>

src/SampleCore/Pages/WhatsNew.razor

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
@page "/whatsNew"
2+
3+
<h1>What's New</h1>
4+
5+
<dl>
6+
<dt>Version 2.2.0 3/14/2020</dt>
7+
<dd>
8+
<ul>
9+
<li>Added <a href="/globalStyles">GlobalStyles</a></li>
10+
</ul>
11+
</dd>
12+
<dt>Version 2.1.0 3/12/2020</dt>
13+
<dd>
14+
<ul>
15+
<li>Upgraded to WebAssembly 3.2 preview2</li>
16+
</ul>
17+
</dd>
18+
<dt>Version 2.0.0 3/9/2020</dt>
19+
<dd>
20+
<h4>Breaking Changes</h4>
21+
<ul>
22+
<li>Setup: No need for tags in the head anymore. Remove them all. Only setup needed is register the services (<code>AddBlazorStyled</code>)</li>
23+
<li>Themes API changes: Set theme values using <code>IStyled.SetThemeValue</code></li>
24+
<li>Themes API changes: Get all values using <code>IStyled.GetThemeValues</code></li>
25+
</ul>
26+
<h4>Other Changes</h4>
27+
<ul>
28+
<li>Each Stylesheet id (<code>WithId</code>) now has its own style tag in the head</li>
29+
<li>Compose now returns a list of classes instead of creating a new class with all the rules of the composed classes</li>
30+
<li>
31+
You can now put rules directly in the
32+
<code>&lt;Styled>...&lt;/Styled></code> tag when composing that serve as the basis for the all the classes being composed
33+
</li>
34+
<li>A bug was fixed where a class with just a label caused an exception</li>
35+
</ul>
36+
</dd>
37+
</dl>
38+

src/SampleCore/Shared/NavMenu.razor

+3
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@
7272
<NavLink class="@link" href="googlefonts">
7373
Google Fonts
7474
</NavLink>
75+
<NavLink class="@link" href="whatsNew">
76+
What's New
77+
</NavLink>
7578
</li>
7679
</ul>
7780
<h3 class="@h3nav">Advanced</h3>

0 commit comments

Comments
 (0)