Skip to content

Commit

Permalink
RDUCP-289: adding Provider Login Buttons pattern (#650)
Browse files Browse the repository at this point in the history
* Adding Provider Login Button pattern

* Bug fixing

* Fixes on preview

* Update CODEOWNERS

* Small change to keep alphabetic order

* improving based on feedback
  • Loading branch information
rugoncalves authored and gnbm committed Sep 8, 2023
1 parent 7b0278f commit 36f6f59
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 2 deletions.
77 changes: 77 additions & 0 deletions src/scss/04-patterns/06-utilities/_provider-login-button.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/*! Patterns - Utilities - Provider Login Button */
////
/// @group Utilities-Provider_Login_Button
/// Patterns - Utilities - Provider Login Button

.btn.btn-provider-login {
background: var(--color-neutral-0);
border-color: var(--color-neutral-6);
border-radius: 0;
&-logo {
&-only {
padding: 10px;
.btn-provider-login-text {
display: none;
-servicestudio-display: none !important;
}
}
svg {
height: 100%;
width: 100%;
}
}
&.btn- {
&small {
padding: 0 16px;
&.btn-provider-login-logo-only {
padding: 5px;
}
}
&large {
padding: 10px 15px;
}
}
&.soft {
border-radius: var(--border-radius-soft);
}
&.rounded {
border-radius: var(--border-radius-rounded);
}
.btn-provider-login {
&-logo {
border-radius: 50%;
height: 20px;
width: 20px;
}
&-text {
color: var(--color-neutral-7);
margin-left: 10px;
white-space: nowrap;
}
}
}

.phone .layout {
.btn.btn-provider-login {
&.btn-provider-login-logo-only {
width: 50px;
&.btn- {
&small {
width: 40px;
}
&large {
width: 55px;
}
}
}
.btn-provider-login-text-name {
text-align: left;
width: 70px;
-servicestudio-display: inline-block;
}

&.btn-small .btn-provider-login-text-name {
width: 53px;
}
}
}
3 changes: 1 addition & 2 deletions src/scss/OutSystemsUI.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Website:
• https://www.outsystems.com/outsystems-ui
GitHub:
• https://github.com/OutSystems/outsystems-ui
*/
*/
/*!
Section Index:
0. Root - CSS Variables
Expand Down Expand Up @@ -582,4 +582,3 @@ Functions & Mixins
Excluders
=============================================================================== */
@import '09-excluders/excluders';

0 comments on commit 36f6f59

Please sign in to comment.