File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11.building {
2- width : 324 px ;
2+ width : 96 % ;
33 height : 64px ;
4- border-style : solid ;
5- border-color : rgb (248 , 255 , 198 );
6- border-width : 3px ;
7- transition : 0.3s ;
4+ border : 3px solid rgb (248 , 255 , 198 );
85 background-color : rgb (217 , 215 , 165 );
96 cursor : pointer ;
10- margin-bottom : 4px ;
117
128 img {
139 width : 64px ;
1814 .building-content {
1915 display : flex ;
2016 justify-content : space-between ;
21- height : 64px ;
17+ align-items : center ;
18+ height : 100% ;
2219 text-shadow : 0px 1px 4px black ;
2320 padding-left : 4px ;
2421
2522 /* in an unnamed div */
2623 .building-name {
2724 font-size : 22px ;
28- line-height : 1px ;
29- margin-bottom : 0px ;
25+ margin : 0 ;
3026 }
3127
3228 .building-price {
33- margin-top : 11 px ;
34- margin-left : 0.6px ;
29+ margin : 0 ;
30+ margin-left : 0.6px ; // todo: keep?
3531 }
3632
37- .buildings-bought-wrapper {
38- display : flex ;
39- height : 100% ;
40- align-items : center ;
41- float : right ;
33+ .buildings-bought {
34+ font-size : 35px ;
35+ font-family : monospace ;
36+ margin : 0 ;
4237 margin-right : 12px ;
43-
44- .buildings-bought {
45- font-size : 35px ;
46- font-family : monospace ;
47- float : right ;
48- margin : 0px
49- }
5038 }
5139 }
52- }
53-
54- .building :hover {
55- border-style : solid ;
56- border-color : rgb (249 , 255 , 164 );
57- border-width : 3px ;
5840}
Original file line number Diff line number Diff line change @@ -99,14 +99,11 @@ export class Building implements SaveProvider<BuildingSave> {
9999 namePriceDiv . appendChild ( buildingPrice ) ;
100100 buildingContent . appendChild ( namePriceDiv ) ;
101101
102- const buildingsBoughtWrapper = document . createElement ( "div" ) ;
103- buildingsBoughtWrapper . className = "buildings-bought-wrapper" ;
104- const buildingsBought = document . createElement ( "p" ) ;
105- buildingsBought . className = "buildings-bought" ;
106- buildingsBought . id = `${ data . namePlural } Bought` ;
107- buildingsBought . innerText = "0" ;
108- buildingsBoughtWrapper . appendChild ( buildingsBought ) ;
109- buildingContent . appendChild ( buildingsBoughtWrapper ) ;
102+ const buildingsBought = document . createElement ( "p" ) ;
103+ buildingsBought . className = "buildings-bought" ;
104+ buildingsBought . id = `${ data . namePlural } Bought` ;
105+ buildingsBought . innerText = "0" ;
106+ buildingContent . appendChild ( buildingsBought ) ;
110107 this . html . appendChild ( buildingContent ) ;
111108 document . getElementById ( "buildingsWrapper" ) . appendChild ( this . html ) ;
112109 // end setup HTML
You can’t perform that action at this time.
0 commit comments