bright-gpu-74537
04/19/2020, 3:12 PMbright-gpu-74537
04/19/2020, 3:13 PMorange-van-60470
04/19/2020, 3:25 PMorange-van-60470
04/19/2020, 3:26 PMorange-van-60470
04/19/2020, 3:27 PMbright-gpu-74537
04/19/2020, 4:34 PMbright-gpu-74537
04/19/2020, 4:34 PMbright-gpu-74537
04/19/2020, 4:36 PMbright-gpu-74537
04/19/2020, 4:36 PMcss
.button {
background-image: "kenny_ui/blue_button00.png";
background-image-slice: 10px 10px 39px 180px;
background-color: none;
border: none;
padding: 14px 30px;
color: white;
font-name: "kevin-font-thin";
}
.button .label {
margin-top: -3px;
}
.button .image {
margin-top: -2px;
}
.button:hover {
background-image: "kenny_ui/blue_button00.png";
background-image-slice: 10px 10px 39px 180px;
}
.button:down {
background-image: "kenny_ui/blue_button02.png";
background-image-slice: 10px 10px 39px 180px;
}
cool-psychiatrist-49311
04/19/2020, 4:44 PMbrainy-machine-50829
04/19/2020, 4:45 PMbright-gpu-74537
04/19/2020, 4:45 PMbright-gpu-74537
04/19/2020, 4:46 PMbright-gpu-74537
04/19/2020, 4:47 PMbright-gpu-74537
04/19/2020, 4:47 PMbright-gpu-74537
04/19/2020, 4:47 PMbright-gpu-74537
04/19/2020, 4:49 PMbright-gpu-74537
04/19/2020, 4:51 PMbright-gpu-74537
04/19/2020, 4:54 PMbright-gpu-74537
04/19/2020, 4:54 PMbright-gpu-74537
04/19/2020, 4:55 PMbright-gpu-74537
04/19/2020, 5:12 PMambitious-knife-25690
04/19/2020, 8:49 PMambitious-knife-25690
04/19/2020, 8:50 PMbright-gpu-74537
04/19/2020, 8:53 PMcool-psychiatrist-49311
04/20/2020, 1:15 AMcool-psychiatrist-49311
04/20/2020, 2:25 AMcool-psychiatrist-49311
04/20/2020, 2:37 AM:down
psuedo selector doesn't trigger a re-calculation of the sizes in openfl?
continuing your kenny example I changed the followings, note the additional margin/padding rules. But the button doesn't resize/reposition accordingly when clicked. Though I noticed they will be respected when button is down + the button text content changes (b/c that invalidates the button size?)
.button:down {
background-image: "assets/kenny_ui/blue_button01.png";
margin-top: 4px;
padding: 10px 30px;
background-image-slice: 10px 10px 35px 180px;
}
handsome-television-62908
04/20/2020, 4:55 AMbright-gpu-74537
04/20/2020, 6:09 AM