{"id":1198,"date":"2019-08-08T20:53:21","date_gmt":"2019-08-08T11:23:21","guid":{"rendered":"https:\/\/ale.chenonetta.com\/blog\/?p=1198"},"modified":"2019-08-08T20:53:23","modified_gmt":"2019-08-08T11:23:23","slug":"custom-challonge-css","status":"publish","type":"post","link":"https:\/\/ale.chenonetta.com\/blog\/2019\/08\/custom-challonge-css\/","title":{"rendered":"Custom Challonge CSS"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Tonight I worked on some custom CSS that could be injected into a BrowserSource in OBS to turn a bracket that looks something like this:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"384\" src=\"https:\/\/ale.chenonetta.com\/blog\/wp-content\/uploads\/2019\/08\/image-41-1024x384.png\" alt=\"\" class=\"wp-image-1200\" srcset=\"https:\/\/ale.chenonetta.com\/blog\/wp-content\/uploads\/2019\/08\/image-41-1024x384.png 1024w, https:\/\/ale.chenonetta.com\/blog\/wp-content\/uploads\/2019\/08\/image-41-300x113.png 300w, https:\/\/ale.chenonetta.com\/blog\/wp-content\/uploads\/2019\/08\/image-41-768x288.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Into something that looks like this:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"381\" src=\"https:\/\/ale.chenonetta.com\/blog\/wp-content\/uploads\/2019\/08\/image-40-1024x381.png\" alt=\"\" class=\"wp-image-1199\" srcset=\"https:\/\/ale.chenonetta.com\/blog\/wp-content\/uploads\/2019\/08\/image-40-1024x381.png 1024w, https:\/\/ale.chenonetta.com\/blog\/wp-content\/uploads\/2019\/08\/image-40-300x112.png 300w, https:\/\/ale.chenonetta.com\/blog\/wp-content\/uploads\/2019\/08\/image-40-768x286.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The CSS is included below for future reference.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><pre>@import url(\"https:\/\/fonts.googleapis.com\/css?family=Press+Start+2P&amp;display=swap\");<br><br>body {<br>  background: black;<br>}<br><br>svg text {<br>  font-family: \"Press Start 2P\", monospace;<br>}<br><br>\/*** Remove rounded edges ***\/<br>svg g.match rect.match--base-background {<br>  rx: 0;<br>  ry: 0;<br>}<br>svg g.match g {<br>  clip-path: none;<br>}<br><br>\/**** Seeds ****\/<br>svg path.match--seed-background {<br>  fill: #c1261d;<br>  outline: 2px solid black;<br>  outline-offset: 0px;<br>}<br>svg text.match--seed {<br>  transform: translateY(4px);<br>  fill: black;<br>}<br>\/**** Player Names ****\/<br>svg text.match--player-name {<br>  font-size: 15px;<br>  transform: translateY(5px);<br>  fill: white;<br>  stroke: transparent;<br>}<br><br>svg text.match--player-name.-placeholder {<br>  stroke: transparent;<br>  \/* fill: transparent; *\/<br>  font-size: 10px;<br>  transform: translateY(2px);<br>}<br><br>svg path.match--player-background {<br>  outline: 2px solid black;<br>  outline-offset: 0px;<br>}<br><br>\/**** Match dividing line ****\/<br>svg line.match--player-divider {<br>  stroke: black;<br>  stroke-width: 3px;<br>}<br><br>\/**** Player Scores ****\/<br>svg text.match--player-score {<br>  font-size: 15px;<br>  transform: translateX(1px) translateY(5px);<br>  fill: black;<br>  stroke: transparent;<br>}<br><br>svg g.match svg.match--player path.match--player-score-background {<br>    outline: 2px solid black;<br>    outline-offset: 0px;<br>    \/* outline: 2px double #c1261d;<br>    outline-offset: -7px; *\/<br>  fill: white;<br>}<br><br>svg g.match svg.match--player path.match--player-score-background.-winner {<br>  \/* Winner gets highlighted background *\/<br>  fill: #f39c05;<br>}<br><br>\/*** Round Names ***\/<br>svg .round-label text {<br>  transform: translateY(2px);<br>}<br><br>svg.round g.round-label rect {<br>  fill: black;<br>  outline: 2px solid #aaecf2;<br>  outline-offset: -4px;<br>}<br><br>span.live-stamp {<br>  display: none;<br>}<br><br><\/pre><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Tonight I worked on some custom CSS that could be injected into a BrowserSource in OBS to turn a bracket that looks something like this: Into something that looks like this: The CSS is included below for future reference. @import url(&#8220;https:\/\/fonts.googleapis.com\/css?family=Press+Start+2P&amp;display=swap&#8221;);body { background: black;}svg text { font-family: &#8220;Press Start 2P&#8221;, monospace;}\/*** Remove rounded edges ***\/svg &#8230; <a class=\"more-link\" href=\"https:\/\/ale.chenonetta.com\/blog\/2019\/08\/custom-challonge-css\/\"><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[54],"tags":[190,188,70],"class_list":["entry","post","publish","author-admin","post-1198","format-standard","category-code-2","post_tag-blaugust","post_tag-challonge","post_tag-tetris"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ale.chenonetta.com\/blog\/wp-json\/wp\/v2\/posts\/1198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ale.chenonetta.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ale.chenonetta.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ale.chenonetta.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ale.chenonetta.com\/blog\/wp-json\/wp\/v2\/comments?post=1198"}],"version-history":[{"count":0,"href":"https:\/\/ale.chenonetta.com\/blog\/wp-json\/wp\/v2\/posts\/1198\/revisions"}],"wp:attachment":[{"href":"https:\/\/ale.chenonetta.com\/blog\/wp-json\/wp\/v2\/media?parent=1198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ale.chenonetta.com\/blog\/wp-json\/wp\/v2\/categories?post=1198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ale.chenonetta.com\/blog\/wp-json\/wp\/v2\/tags?post=1198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}