Source code
Revision control
Copy as Markdown
Other Tools
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
@import url("chrome://global/skin/design-system/text-and-typography.css");
:host {
--avatar-size: 80px;
--profile-card-radius: var(--border-radius-large);
--profile-card-radius-inner: calc(var(--profile-card-radius) - var(--border-width));
}
.profile-card {
--card-padding: 0;
--card-border-radius: var(--profile-card-radius);
height: 185px;
width: 200px;
&:hover {
background-color: var(--button-background-color-hover);
border-color: var(--button-background-color-hover);
color: var(--button-text-color-hover);
}
&:hover:active {
background-color: var(--button-background-color-active);
border-color: var(--button-background-color-active);
color: var(--button-text-color-active);
}
&:focus-visible {
outline: var(--focus-outline);
outline-offset: var(--focus-outline-offset);
}
}
.new-profile-card {
border: var(--border-width) dashed var(--border-color-interactive);
background-color: transparent;
border-radius: var(--profile-card-radius);
box-shadow: none;
&:hover,
&:hover:active {
border-color: var(--icon-color);
}
.profile-background-image {
background-size: 80px;
}
.profile-details {
border-top: var(--border-width) dashed var(--border-color-interactive);
}
}
.profile-background-container {
position: relative;
width: 100%;
height: 136px;
display: flex;
justify-content: center;
align-items: center;
}
.profile-background-image {
width: 100%;
height: 100%;
background-image: url("chrome://browser/content/profiles/assets/plus.svg");
background-size: cover;
background-repeat: no-repeat;
background-position: center;
-moz-context-properties: fill, stroke;
fill: var(--icon-color);
border-radius: var(--profile-card-radius-inner) var(--profile-card-radius-inner) 0 0;
}
.profile-avatar {
position: absolute;
width: var(--avatar-size);
height: var(--avatar-size);
z-index: 1;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
-moz-context-properties: fill, stroke;
}
.profile-details {
display: flex;
align-items: center;
justify-content: space-between;
height: 46px;
padding: 0 var(--space-large);
border-top: var(--border-width) solid var(--border-color-card);
}