.NET Core 2.2 Page Resize Flags
Later for the game, but it was necessary to make the flags huge compared to the way the Razor template displays them. Because I wanted the user to see if this was checked or not.
I tried above, did not work. So I used the Chrome Developer Tool to see the page render, and it showed this for the checkbox:
input[type="radio"], input[type="checkbox"] { box-sizing: border-box; padding: 0; }
And I was going to find it in the CSS file because I could use all the checkboxes to be bigger. However, he said that he is here:
reboot.scss: 373
Now, I swear it was referencing another scss file when I first opened it in the developer. But since it looked like a Greek, code snippet to me, I just decided to put it (after trying it in the style above) at the top of my Razor Page. Note that I just cloned the hidden style above and added width and height:
<style> input[type="radio"], input[type="checkbox"] { box-sizing: border-box; width: 40px; height:40px; } </style>
Now here is the Razor control that I displayed. At the end, it ends as a flag in html, but I believe that the Razor Page is smart enough to know that this is a True / False field and display it as a text field. But. ., not before he applied the dimensions that I added !! Hope this helps someone.
<td> @Html.DisplayFor(modelItem => item.Moderated) </td>
source share