File tree Expand file tree Collapse file tree
assets-src/sass/4-components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6363
6464 & __social-buttons {
6565 display : grid ;
66- grid-template-columns : 1 fr 1 fr ;
66+
6767 gap : 31px ;
6868
69+ & --multiple {
70+ grid-template-columns : 1fr 1fr ;
71+ }
72+
6973 .social-login {
7074 align-items : center ;
7175 display : flex ;
Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ app.component('login', {
4545 configs ( ) {
4646 return JSON . parse ( this . config ) ;
4747 } ,
48+
49+ multiple ( ) {
50+ return this . configs . strategies . Google ?. visible && this . configs . strategies . govbr ?. visible ;
51+ }
4852 } ,
4953
5054 methods : {
Original file line number Diff line number Diff line change 4949 <span class="divider__text"> <?= i::__ ('Ou entre com ' ) ?> </span>
5050 </div>
5151
52- <div class="login__social-buttons">
52+ <div class="login__social-buttons" :class="{'login__social-buttons--multiple': multiple}" >
5353 <a v-if="configs.strategies.govbr?.visible" class="social-login--button button button--icon button--large button--md govbr" href="<?php echo $ app ->createUrl ('auth ' , 'govbr ' ) ?> ">
5454 <div class="img"> <img height="16" class="br-sign-in-img" src="<?php $ this ->asset ('img/govbr-white.png ' ); ?> " /> </div>
5555 <?= i::__ ('Entrar com Gov.br ' ) ?>
6060 <?= i::__ ('Entrar com Google ' ) ?>
6161 </a>
6262
63- <a v-if="configs.strategies.govbr?.visible" class="social-login--button button button--md button--large govbr" href="<?php echo $ app ->createUrl ('auth ' , 'govbr ' ) ?> ">
64- <div class="img"> <img height="16" class="br-sign-in-img" src="<?php $ this ->asset ('img/govbr-white.png ' ); ?> " /> </div>
65- </a>
66-
67- <a v-if="configs.strategies.Google?.visible" class="social-login--button button button--icon button--md button--large google" href="<?php echo $ app ->createUrl ('auth ' , 'google ' ) ?> ">
68- <div class="img"> <img height="16" src="<?php $ this ->asset ('img/g.png ' ); ?> " /> </div>
69- <?= i::__ ('Google ' ) ?>
70- </a>
7163 </div>
7264 </div>
7365
You can’t perform that action at this time.
0 commit comments