File tree Expand file tree Collapse file tree
web-components/hero-section Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,6 +79,10 @@ h6, p {
7979 padding : 0em ;
8080}
8181
82+ .large-icon {
83+ width : 4em ;
84+ }
85+
8286.section {
8387 grid-column : 2 ;
8488 grid-row : 1 ;
Original file line number Diff line number Diff line change @@ -67,9 +67,16 @@ function createComponent(html) {
6767 setContent ( '.name' , this . name , shadow ) ;
6868 setContent ( '.desc' , this . desc , shadow ) ;
6969
70+ // Enlarge icon for specified pages
71+ if ( this . name == 'IMS videos' || this . name == 'IMS on GitHub' ) {
72+ const img = shadow . querySelector ( '.image' ) ;
73+ img . classList . add ( 'large-icon' ) ;
74+ }
75+
7076 const heroSection = shadow . querySelector ( '.hero-section' ) ;
7177 const hero = shadow . querySelector ( '.hero' ) ;
7278
79+ // Check if primary button is used
7380 if ( this . link != undefined ) {
7481 setLink ( '.button-primary' , this . link , shadow ) ;
7582 setContent ( '.button-primary-text' , this . linktext , shadow ) ;
Original file line number Diff line number Diff line change 177177}
178178/* -------------------------------------------------------- */
179179
180- /* -------------------------------------------------------- */
181-
182180/* Content containers */
183181/* -------------------------------------------------------- */
184182/* Targets all sections after hero */
You can’t perform that action at this time.
0 commit comments