King TMK 🎗
King TMK 🎗
CC#
Created by King TMK 🎗 on 11/22/2024 in #help
asp attribute span not getting styled like plain span
Alright, thank you
32 replies
CC#
Created by King TMK 🎗 on 11/22/2024 in #help
asp attribute span not getting styled like plain span
or in multiple files rather
32 replies
CC#
Created by King TMK 🎗 on 11/22/2024 in #help
asp attribute span not getting styled like plain span
How about when there are a lot of styles, would you put it in folders under wwwroot/css?
32 replies
CC#
Created by King TMK 🎗 on 11/22/2024 in #help
asp attribute span not getting styled like plain span
I wouldn't say I'm married to having page specific styles, so how would you do it? The project will only have 2-3 pages
32 replies
CC#
Created by King TMK 🎗 on 11/22/2024 in #help
asp attribute span not getting styled like plain span
How do you usually do it
32 replies
CC#
Created by King TMK 🎗 on 11/22/2024 in #help
asp attribute span not getting styled like plain span
The asp span isn't getting the [b-crk0b8nylx] attribute applied to it, only the plain span does...
32 replies
CC#
Created by King TMK 🎗 on 11/22/2024 in #help
asp attribute span not getting styled like plain span
It seems like the modularization thing is only applied to cshtml.css files, which is why it works to style the field-validation-error class in wwwroot/css/site.css for example and not in the Form.cshtml.css
32 replies
CC#
Created by King TMK 🎗 on 11/22/2024 in #help
asp attribute span not getting styled like plain span
How am I supposed to select this span
32 replies
CC#
Created by King TMK 🎗 on 11/22/2024 in #help
asp attribute span not getting styled like plain span
Seems like it's adding its own modularization technique at the end of the class name
/* _content/RazorPagesAzure/Pages/Form.cshtml.rz.scp.css */
/*.myform {
background: gray;
}
*/

span.field-validation-error[b-crk0b8nylx],
.field-validation-error[b-crk0b8nylx],
.danger[b-crk0b8nylx],
span[b-crk0b8nylx] {
background: green;
}

.danger[b-crk0b8nylx] {
color: yellow;
}
/* _content/RazorPagesAzure/Pages/Shared/_Layout.cshtml.rz.scp.css */
/* Please see documentation at https://learn.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand[b-xgtppu45nf] {
white-space: normal;
text-align: center;
word-break: break-all;
}

a[b-xgtppu45nf] {
color: #0077cc;
}

.btn-primary[b-xgtppu45nf] {
color: #fff;
background-color: #1b6ec2;
border-color: #1861ac;
}

.nav-pills .nav-link.active[b-xgtppu45nf], .nav-pills .show > .nav-link[b-xgtppu45nf] {
color: #fff;
background-color: #1b6ec2;
border-color: #1861ac;
}

.border-top[b-xgtppu45nf] {
border-top: 1px solid #e5e5e5;
}
.border-bottom[b-xgtppu45nf] {
border-bottom: 1px solid #e5e5e5;
}

.box-shadow[b-xgtppu45nf] {
box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy[b-xgtppu45nf] {
font-size: 1rem;
line-height: inherit;
}

.footer[b-xgtppu45nf] {
position: absolute;
bottom: 0;
width: 100%;
white-space: nowrap;
line-height: 60px;
}
/* _content/RazorPagesAzure/Pages/Form.cshtml.rz.scp.css */
/*.myform {
background: gray;
}
*/

span.field-validation-error[b-crk0b8nylx],
.field-validation-error[b-crk0b8nylx],
.danger[b-crk0b8nylx],
span[b-crk0b8nylx] {
background: green;
}

.danger[b-crk0b8nylx] {
color: yellow;
}
/* _content/RazorPagesAzure/Pages/Shared/_Layout.cshtml.rz.scp.css */
/* Please see documentation at https://learn.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand[b-xgtppu45nf] {
white-space: normal;
text-align: center;
word-break: break-all;
}

a[b-xgtppu45nf] {
color: #0077cc;
}

.btn-primary[b-xgtppu45nf] {
color: #fff;
background-color: #1b6ec2;
border-color: #1861ac;
}

.nav-pills .nav-link.active[b-xgtppu45nf], .nav-pills .show > .nav-link[b-xgtppu45nf] {
color: #fff;
background-color: #1b6ec2;
border-color: #1861ac;
}

.border-top[b-xgtppu45nf] {
border-top: 1px solid #e5e5e5;
}
.border-bottom[b-xgtppu45nf] {
border-bottom: 1px solid #e5e5e5;
}

.box-shadow[b-xgtppu45nf] {
box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy[b-xgtppu45nf] {
font-size: 1rem;
line-height: inherit;
}

.footer[b-xgtppu45nf] {
position: absolute;
bottom: 0;
width: 100%;
white-space: nowrap;
line-height: 60px;
}
32 replies
CC#
Created by King TMK 🎗 on 11/22/2024 in #help
asp attribute span not getting styled like plain span
I can try, but I already changed machines
32 replies
CC#
Created by King TMK 🎗 on 11/22/2024 in #help
asp attribute span not getting styled like plain span
No description
32 replies
CC#
Created by King TMK 🎗 on 11/22/2024 in #help
asp attribute span not getting styled like plain span
No description
32 replies
CC#
Created by King TMK 🎗 on 11/22/2024 in #help
asp attribute span not getting styled like plain span
Only to the plain span, which gets a green background
32 replies
CC#
Created by King TMK 🎗 on 11/22/2024 in #help
asp attribute span not getting styled like plain span
No styles are being applied to it at all
32 replies
CC#
Created by King TMK 🎗 on 11/22/2024 in #help
asp attribute span not getting styled like plain span
The only style that is currently being added to the button is the style I have for .button:hover, and not .button
32 replies
CC#
Created by King TMK 🎗 on 11/22/2024 in #help
asp attribute span not getting styled like plain span
It's also happening when I try to style a regular button tag by applying a class to it (I put the styles in wwwroot/css/button.css and link it in the _Layout.cshtml file)
32 replies
CC#
Created by King TMK 🎗 on 11/22/2024 in #help
asp attribute span not getting styled like plain span
This is what the asp span is being rendered as in the browser
<span class="danger field-validation-error" data-valmsg-for="SomeModel.Number" data-valmsg-replace="true">This field is required.</span>
<span class="danger field-validation-error" data-valmsg-for="SomeModel.Number" data-valmsg-replace="true">This field is required.</span>
32 replies
CC#
Created by King TMK 🎗 on 11/21/2024 in #help
✅ Razor pages template gives me an immediate build error
Thank you though, it built now
39 replies
CC#
Created by King TMK 🎗 on 11/21/2024 in #help
✅ Razor pages template gives me an immediate build error
Don't give up
39 replies
CC#
Created by King TMK 🎗 on 11/21/2024 in #help
✅ Razor pages template gives me an immediate build error
It looks like it's building correctly now
39 replies