front: Simplified a bunch of layout resources using styles.