index
int64 0
0
| repo_id
stringlengths 16
181
| file_path
stringlengths 28
270
| content
stringlengths 1
11.6M
| __index_level_0__
int64 0
10k
|
---|---|---|---|---|
0 | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/os-icons/android.svg | <?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 23.0.6, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version="1.1"
id="Capa_1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
x="0px"
y="0px"
viewBox="0 0 433.2 512"
style="enable-background: new 0 0 433.2 512"
xml:space="preserve"
>
<style type="text/css">
.st0 {
fill: #c1c2c2;
}
</style>
<g>
<g>
<path
class="st0"
d="M31.7,165.8c-8.8,0-16.3,3.1-22.5,9.2S0,188.6,0,197.2v132.3c0,8.8,3.1,16.3,9.2,22.5
c6.2,6.2,13.6,9.2,22.5,9.2c8.8,0,16.3-3.1,22.3-9.2c6-6.2,9.1-13.6,9.1-22.5V197.2c0-8.6-3.1-16-9.2-22.2S40.3,165.8,31.7,165.8z
"
/>
<path
class="st0"
d="M286.5,47.1l21.8-40.3c1.4-2.7,0.9-4.7-1.5-6.2c-2.7-1.2-4.7-0.6-6.2,1.8l-22.2,40.6
c-19.5-8.6-40.1-12.9-61.8-12.9c-21.7,0-42.4,4.3-61.8,12.9L132.6,2.5c-1.4-2.5-3.5-3.1-6.2-1.8c-2.5,1.4-3,3.5-1.5,6.2l21.8,40.3
c-22.2,11.3-39.8,27-52.9,47.2c-13.1,20.2-19.7,42.3-19.7,66.3h284.6c0-24-6.6-46.1-19.7-66.3C325.9,74.1,308.4,58.4,286.5,47.1z
M160.2,105.7c-2.4,2.4-5.2,3.5-8.5,3.5c-3.3,0-6.1-1.2-8.3-3.5c-2.3-2.4-3.4-5.2-3.4-8.5c0-3.3,1.1-6.1,3.4-8.5
c2.3-2.4,5-3.5,8.3-3.5s6.1,1.2,8.5,3.5c2.4,2.4,3.5,5.2,3.5,8.5C163.7,100.5,162.5,103.3,160.2,105.7z M289.8,105.7
c-2.3,2.4-5,3.5-8.3,3.5c-3.3,0-6.1-1.2-8.5-3.5c-2.4-2.4-3.5-5.2-3.5-8.5c0-3.3,1.2-6.1,3.5-8.5c2.4-2.4,5.2-3.5,8.5-3.5
c3.3,0,6,1.2,8.3,3.5c2.3,2.4,3.4,5.2,3.4,8.5C293.2,100.5,292.1,103.3,289.8,105.7z"
/>
<path
class="st0"
d="M75.4,376.6c0,9.4,3.3,17.4,9.8,24c6.6,6.6,14.6,9.8,24,9.8H132l0.3,69.9c0,8.8,3.1,16.3,9.2,22.5
c6.2,6.2,13.5,9.2,22.2,9.2c8.8,0,16.3-3.1,22.5-9.2s9.2-13.6,9.2-22.5v-69.8h42.5v69.8c0,8.8,3.1,16.3,9.2,22.5
c6.2,6.2,13.6,9.2,22.5,9.2c8.8,0,16.3-3.1,22.5-9.2c6.2-6.2,9.2-13.6,9.2-22.5v-69.8h23.1c9.2,0,17.1-3.3,23.7-9.8
c6.6-6.6,9.8-14.6,9.8-24V171.7H75.4V376.6z"
/>
<path
class="st0"
d="M401.5,165.8c-8.6,0-16,3-22.2,9.1c-6.2,6.1-9.2,13.5-9.2,22.3v132.3c0,8.8,3.1,16.3,9.2,22.5
s13.5,9.2,22.2,9.2c8.8,0,16.3-3.1,22.5-9.2s9.2-13.6,9.2-22.5V197.2c0-8.8-3.1-16.2-9.2-22.3
C417.8,168.9,410.4,165.8,401.5,165.8z"
/>
</g>
</g>
</svg>
| 9,400 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/os-icons/iOS.svg | <?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 23.0.6, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version="1.1"
id="Layer_1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
x="0px"
y="0px"
viewBox="0 0 191.5 191.5"
style="enable-background: new 0 0 191.5 191.5"
xml:space="preserve"
>
<style type="text/css">
.st0 {
fill: #c1c2c2;
}
</style>
<g id="XMLID_1_">
<path
id="XMLID_3_"
class="st0"
d="M89.5,70.7L89.5,70.7c-2.8-0.3-5.6-0.7-8.7,0c-6.6,1.7-11.5,7.7-13.2,16.4
c-1.4,5.9-1,13.2,1,18.8c2.8,8.7,9.1,13.6,16.7,13.2c7.7,0,13.9-4.9,16.7-13.2c1.7-5.6,2.1-12.5,1-18.8
C101,78.3,96.1,72.4,89.5,70.7z"
/>
<path
id="XMLID_9_"
class="st0"
d="M95.7,0C42.8,0,0,42.8,0,95.7s42.8,95.7,95.7,95.7s95.7-42.8,95.7-95.7S148.6,0,95.7,0z
M47.7,128.8H35.5v-48h12.2V128.8z M41.4,73.8c-3.5,0-6.6-2.8-6.6-6.6c0-3.5,2.8-6.6,6.6-6.6c3.5,0,6.6,2.8,6.6,6.6
C48,70.7,45.3,73.8,41.4,73.8z M98.9,126c-3.1,1.4-5.9,2.1-10.4,2.8c-2.1,0.3-4.5,0-6.6,0c-4.5-0.7-7.7-1.4-10.4-2.8
c-11.1-5.2-17.1-16.4-17.1-31s6.3-26.1,17.4-31.3c4.2-2.1,8.7-3.1,13.6-3.1c5.2,0,9.4,1,13.6,3.1c10.8,5.6,17.4,17.1,17.4,31.3
C116.3,109.7,110,120.8,98.9,126z M160.8,117c-3.1,6.6-9.4,10.8-19.1,11.8c-1.7,0.3-5.9,0.3-7.7,0l0,0c-5.2-1-10.4-1.7-14.6-4.2
l2.8-9.7c7,2.4,16.7,5.6,23.3,2.8c3.5-1.7,5.2-5.2,4.9-9.1c-0.7-4.2-3.5-6.6-11.8-9.7c-9.1-3.5-14.3-7.7-16.7-12.9
c-1-2.8-1.4-5.9-1-9.1c1.4-8.4,7.7-13.9,17.8-15.7c2.8-0.3,9.1-0.3,11.8,0c4.2,0.7,9.4,2.4,9.4,3.1l-2.8,9.4
c-4.2-1.7-9.1-2.8-13.2-2.8c-5.9,0-11.8,3.5-10.8,9.4c0.7,3.8,3.1,5.6,12.2,9.4c6.6,2.8,9.7,4.5,12.5,7.3c3.8,3.8,4.9,8,4.9,12.5
C162.2,112.4,161.9,114.2,160.8,117z"
/>
</g>
</svg>
| 9,401 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/os-icons/linux.svg | <?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 23.0.6, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version="1.1"
id="Capa_1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
x="0px"
y="0px"
viewBox="0 0 434.8 512"
style="enable-background: new 0 0 434.8 512"
xml:space="preserve"
>
<style type="text/css">
.st0 {
fill: #c1c2c2;
}
</style>
<g>
<g>
<path
class="st0"
d="M431.3,428.7c-2.1-2.4-5-4.7-8.9-7c-0.6-0.4-2.1-1.3-4.7-2.7c-2.6-1.4-4.6-2.7-6.1-3.7c-1.5-1-3.5-2.9-6-5.4
c-2.5-2.6-4.4-5.3-5.9-8.1c-1.4-2.9-2.8-6.7-4.1-11.6c-1.3-4.9-2.1-10.2-2.3-16.1c-2.7,2.3-4.1,6.8-4.4,13.6
c-0.3,6.8,1.1,13.7,4.3,20.7c3.1,7.1,7.9,11.6,14.1,13.7c6.1,2.1,11,4.3,14.7,6.7c3.7,2.4,6.1,5.1,7.1,8.1c1,3.1-0.7,6.3-5.3,9.9
c-4.6,3.5-11.9,7-22,10.4c-13.9,4.8-23.8,8.8-29.6,12.1c-5.8,3.3-14.3,9.7-25.6,19c-7.6,6.3-15.7,9.7-24.3,10.1
c-8.6,0.5-15.5-2.7-20.9-9.4c-5.3-6.8-7.1-16.3-5.1-28.7c3.6-23.8,3.5-42.4-0.3-55.7c-3-10.5-3.7-19.7-2-27.7c1.7-8,4.4-12.7,8-14
c3.6-1.3,7.5,1.5,11.7,8.6c0.4,1,1.2,2.8,2.6,5.6c1.3,2.8,2.4,4.7,3.3,5.9c0.9,1.1,2.1,2.6,3.9,4.4c1.7,1.8,3.9,3.1,6.4,3.9
c2.6,0.8,5.6,1.2,9,1.4c6.5,0.2,12.3-1.1,17.4-4c5.1-2.9,9-6,11.6-9.6c2.6-3.5,5.1-6.9,7.7-10.1c2.6-3.2,4.8-5.1,6.7-5.4
c2.1-0.4,4-2.5,5.7-6.3c1.7-3.8,2.9-9.1,3.4-15.9c0.6-6.8,0.1-14.8-1.4-24.1c-2.9-16.6-8.5-34.8-17-54.6
c-8.5-19.8-17.9-35.3-28.4-46.6c-18.9-20-31.5-40.8-38-62.3c-6.7-22.7-9.5-43-8.6-61.1c1-13-1.9-27-8.4-42.1
c-6.6-15.1-15.3-26.7-26.1-34.7c-6.9-5.1-15.3-9.1-25.4-11.9c-10.1-2.8-20.2-4-30.3-3.9c-12.4,0-22.3,2-29.7,6
c-15.2,8.2-25.3,18.1-30.3,29.9c-5,11.7-7.2,26.1-6.9,43.3c0.8,37.7,2.3,67.2,4.6,88.6c-2.7,9.9-14.5,28.5-35.4,55.7
c-3.8,3.8-7.5,9-11.1,15.4c-3.6,6.5-6.5,12.3-8.6,17.4c-2.1,5.1-4.9,12.6-8.4,22.3c-3.5,9.7-6,16.6-7.6,20.6
c-1.3,3.4-3.4,7.4-6.3,12c-2.9,4.6-5.1,9-6.9,13.4c-1.7,4.4-2.7,9.3-2.9,14.9c-0.2,4.2,0,7.8,0.6,10.9c0.8,4.6,2.2,6,4.3,4.3
c8.6-6.5,19.3-2.7,32.3,11.4c9.1,9.9,25.2,33,48.3,69.1c1.9,3.2,3.8,6.7,5.7,10.4c1.9,3.7,3.7,8.7,5.4,14.8
c1.7,6.2,2.4,11.8,2.1,16.7c-0.3,5-2.5,9.5-6.6,13.7c-4.1,4.2-10.2,6.9-18.4,8c-4.4,0.6-9.7,0.2-15.9-1.1
c-6.2-1.3-14-3.5-23.6-6.6c-9.5-3-16.6-5.1-21.1-6.3c-6.7-1.5-16.1-3.5-28.4-5.9c-12.3-2.4-20.3-4.1-24.1-5.3
c-6.5-1.7-10-4.2-10.6-7.4c-0.6-2.7,0.8-7.2,4-13.7c3.2-6.5,4.9-11.1,4.9-14c0.2-2.1,0.1-4.2-0.3-6.3c-0.4-2.1-0.8-3.7-1.3-4.9
c-0.5-1.1-1.3-2.9-2.4-5.1c-1.1-2.3-1.9-4-2.3-5.1c-3.4-8-3.9-13.4-1.4-16.3c1.7-2.5,5.8-3.4,12.3-2.9c9.7,1,17.6-0.5,23.7-4.3
c10.1-6.3,13.1-16.4,9.1-30.3c0,6.5-1.1,11.3-3.4,14.6c-2.3,3.2-6.3,6.6-12,10c-3.2,1.9-9,3-17.1,3.4c-8.2,0.4-13.6,1.7-16.3,4
c-1.9,1.7-2.9,4.3-3,7.7c-0.1,3.4,0.3,6.9,1.3,10.4c1,3.5,1.9,7.6,2.9,12.1c1,4.6,1.3,8.4,1.1,11.4c-0.2,2.1-1.9,7.3-5.1,15.6
c-3.2,8.3-3.9,14.6-2,19c1,2.1,2.6,4,4.9,5.6c2.3,1.6,5.5,3,9.6,4.1c4.1,1.1,7.9,2,11.3,2.7c3.4,0.7,8.2,1.5,14.3,2.6
c6.1,1,11,2,14.6,2.7c12.2,2.5,26.1,6.6,41.7,12.3c15.6,5.7,26.2,8.7,31.7,8.9c5.3,0.2,10.4-0.9,15.3-3.3c4.9-2.4,9-5.1,12.4-8.1
c3.4-3,8.5-5.9,15.3-8.6c6.8-2.7,14.3-4.1,22.7-4.3c3.8-0.2,9.3-0.4,16.6-0.7c7.2-0.3,12.7-0.4,16.3-0.4c16.4,0,28.8,0.1,37.1,0.3
c5.7,0.2,10.2,1.1,13.4,2.7c3.2,1.6,5.3,3.5,6.3,5.6c1,2.1,2.5,4.5,4.7,7.3c2.2,2.8,5,5,8.4,6.7c7.2,3.4,15.7,4.8,25.4,4.1
c9.7-0.7,16.2-2.5,19.4-5.6c5.3-5.1,12.5-11.2,21.6-18.3c9-7,17.2-12.4,24.4-16c1.5-0.8,4.1-2,7.7-3.7c3.6-1.7,6.7-3.2,9.1-4.4
c2.5-1.2,5.5-2.8,9-4.7c3.5-1.9,6.4-3.7,8.6-5.3c2.2-1.6,4.4-3.5,6.7-5.6c2.3-2.1,3.8-4.2,4.4-6.3c0.7-2.1,0.9-4.2,0.7-6.4
C434.5,433.4,433.4,431.1,431.3,428.7z M278.2,152.6c0.6-0.4,1-0.5,1.1-0.4c0.2,0.1,0.6,0.5,1.1,1.1c0.6,0.7,1.1,1.3,1.6,1.9
c0.5,0.6,1.1,1.3,2,2.3c0.9,1,1.8,1.7,2.7,2.3c1.1,0.8,2.5,1.3,4.1,1.6c1.6,0.3,2.9,0.8,3.7,1.4s1.5,1.8,1.9,3.3
c0.4,2.1,0.1,4-1,5.7c-1.1,1.7-2.4,2.5-4.1,2.3c-3.4-0.8-7.1-3.8-11.1-9C276.2,159.8,275.5,155.6,278.2,152.6z M242.7,41.6
c0.9-1.2,1.5-2.2,1.7-3c0.4-1.1,0.4-2.3,0.1-3.6c-0.3-1.2-0.2-2.5,0.3-3.7c0.5-1.2,1.6-2,3.3-2.1c1.7,0,4,1.4,6.9,4.3
c0.6,0.4,1.5,1,2.7,1.7c1.2,0.8,2.1,1.4,2.6,2c0.5,0.6,0.7,1,0.7,1.4c-0.4,1-1.2,1.6-2.6,2c-1.3,0.4-2.8,0.6-4.3,0.6
s-2.4,0.1-2.6,0.3c-1.5,0.6-3,1.4-4.3,2.6c-1.3,1.1-2.4,2-3.1,2.6c-0.8,0.6-1.5,0.6-2.3,0c-0.8-1.1-1-2-0.9-2.4
C241.2,43.7,241.8,42.8,242.7,41.6z M104.5,255.4c1.3-1.5,2.3-2.8,2.9-3.7c0.6-1,1.1-2.2,1.6-3.9c0.5-1.6,0.9-2.8,1.3-3.6
c0.4-0.8,1-1,1.7-0.9c0.4-0.1,0.7,0.1,0.9,0.6c0.2,0.5,0.3,0.7,0.3,0.7v0.9c0,0.3,0,0.7-0.1,1.1c-0.1,0.5-0.2,0.9-0.4,1.3
c-0.2,0.4-0.4,1-0.6,1.7c-0.2,0.8-0.4,1.4-0.6,2c-0.8,1.9-2,3.6-3.6,5.1c-1.6,1.5-2.8,2.2-3.6,2
C103,258.5,103.1,257.3,104.5,255.4z M291.3,431.7c-0.4,6.1-1.7,14.7-3.9,25.7c-2.2,11-3.6,18.4-4.1,22c-4-0.2-6.3-1.7-6.9-4.4
c-0.6-2.8,0-6.3,1.7-10.7c4.2-12.8,6.4-21.5,6.6-26.3c0.4-8.8-0.6-13.7-2.8-14.9c-2.1-1.5-5.3,1.3-9.7,8.6
c-8.4,13.7-25.2,22-50.6,24.9c-22.9,3-38.7-0.4-47.4-10.3c-1.9-1.3-3.8-1.6-5.7-0.7c-1.9,0.8-3.1,1.8-3.7,2.7
c-0.2,0.4,0,1,0.6,1.7c0.6,0.8,1.5,1.9,2.7,3.4c1.2,1.5,2.2,3,3,4.6c7.4,12.9,6.8,21.7-2,26.3c0-8.8-0.7-15.5-2-20.1
c-1.3-4.7-4-9.8-8-15.4c-4-5.6-6.8-9.9-8.3-12.7c5.7-0.6,10-2.8,13-6.6c3-3.8,4.3-7.9,4-12.3c-0.3-4.4-2-8-5-10.9
c-1.7-1.7-10.6-9-26.6-21.9c-16-12.9-25.9-21.5-29.7-25.9c-0.8-0.8-3-2.7-6.9-5.7c-3.8-3-6.2-5.7-7.1-8c-8.8-19.2-9.7-35-2.9-47.4
l1.1-1.4c1-0.2,1,1.5,0.3,5.1c-1.1,5.3-1.5,10.7-1.1,16c0.8,12,4.2,21,10.3,26.9c4,4,6.8,3.7,8.3-0.9c1.1-1.5,1.7-7.1,1.6-16.9
c-0.1-9.7,0.1-16.3,0.4-19.7c1.5-10.9,6-24.3,13.6-40.3c7.5-16,13.5-24.6,17.9-25.7c-3.4-5.5-4.5-11.5-3.3-18
c1.2-6.5,3.2-12,6-16.6c2.8-4.6,5.6-9.9,8.4-15.9c2.9-6,4.3-11.4,4.3-16.1c0-1.3,0.1-2.3,0.3-2.9c0.6-1.7,3,0.4,7.1,6.3
c8,11.8,14,18.8,18,20.9c4.2,2.3,8.9,2.2,14-0.3c5.1-2.5,11.5-6.6,19-12.3c7.5-5.7,13.9-9.9,19.3-12.6c0.6-0.2,1.5-0.6,2.7-1.3
c1.2-0.7,2.2-1.1,2.8-1.4c0.7-0.3,1.5-0.7,2.6-1.3c1-0.6,1.8-1,2.4-1.4c0.6-0.4,1.1-0.8,1.7-1.3c0.6-0.5,0.9-1,1.1-1.4
c0.2-0.5,0.3-0.9,0.3-1.3c-0.4-1.7-1.2-2.8-2.4-3.1c-1.2-0.4-2.9-0.1-5,0.7c-2.1,0.9-4.4,2-7,3.4c-2.6,1.4-5.4,3-8.6,4.9
c-3.1,1.8-6.3,3.5-9.6,5c-3.2,1.5-6.7,2.9-10.3,4c-3.6,1.1-7,1.8-10.3,2c-8,0.2-14.4-1.9-19.1-6.3c-3-2.9-4.7-4.7-4.9-5.4
c-0.2-0.8,0.7-0.9,2.6-0.6c10.3,1.3,17.8,1.5,22.6,0.6c5-0.8,11.6-3,20-6.6c1.7-0.8,6-2.6,13-5.6c6.9-2.9,12.3-5,16.1-6.1
c2.3-0.6,3.9-1.5,4.7-2.7c0.9-1.2,1.1-2.4,0.9-3.4c-0.3-1-0.9-1.9-1.9-2.4c-2.1-1.1-4-0.4-5.7,2.3c-1,1.7-3,3.4-6,5
c-3,1.6-5.9,2.9-8.4,3.7c-2.6,0.9-5.9,1.9-9.9,3c-4,1.1-6.2,1.8-6.6,2c-10.5,3.2-20.2,4.7-29.1,4.3c-4.2-0.2-7.6-0.8-10.1-1.9
c-2.6-1-4.3-2.3-5.3-3.7c-1-1.4-2.5-3.2-4.6-5.4c-2.1-2.2-4.5-4-7.1-5.6c-1.9-1-2.6-2.7-2.1-5.1c0.5-2.5,2-5,4.4-7.7
c0.2-0.2,2.1-1.4,5.9-3.6c3.7-2.2,6.3-4.4,7.9-6.7c1.7-2.7,4.7-5.4,8.9-8.3c0.2-0.8,0.3-2.9,0.4-6.3c0.1-3.4-0.8-7.1-2.7-11.1
c-1.9-4-4.5-6-7.7-6c-4.6-0.2-7.8,1.1-9.7,4c-1.9,2.9-2.8,6.4-2.6,10.6c0.2,3.6,1.1,6.8,2.7,9.6c1.6,2.8,3.1,4.1,4.4,4.1
c2.1-0.2,2.8,0.6,2,2.3c-1.1,2.1-2.7,3.4-4.6,4c-1.3,0.4-2.8-0.9-4.4-3.9c-1.6-3-2.9-6.5-3.7-10.7c-0.9-4.2-1.2-7.7-1-10.6
c0.4-5.9,1.9-11.6,4.7-17c2.8-5.4,6.7-8,11.9-7.9c5.3,0.2,9.6,3.4,12.9,9.7c3.2,6.3,4.8,14.9,4.6,25.7c0.6,1.3,2,1.8,4.4,1.4
c2.4-0.4,5.5-0.4,9.4-0.1c3.9,0.3,6.7,1.3,8.4,3c0.2,0,0.3-1.4,0.3-4.3c-3.4-24,5-36.8,25.4-38.3c3,0.6,5.6,1.3,7.7,2.1
c2.1,0.9,4.3,2.3,6.7,4.3c2.4,2,4.4,4.9,6,8.7c1.6,3.8,2.9,8.6,3.9,14.3v10.6c0,6.1-1.2,9.5-3.7,10.3c-4,1.3-6.8,1.3-8.6-0.1
c-1.7-1.4-1.5-4,0.6-7.6c1.9-4.8,1.5-10.3-1.1-16.6c-2.7-6.3-7.5-9.1-14.6-8.6c-4.8,0.2-8.2,2.8-10.3,7.7c-2.1,5-2.9,9.8-2.3,14.6
c0.6,4.8,1.6,7.2,3.1,7.4c1.1,0.2,4.5,1.7,10.1,4.6c5.6,2.9,9.9,4.6,12.7,5.1c7.4,1.5,11.7,3.9,12.7,7.1c1,3.2,0.6,8-1.3,14.1
c-1.9,6.2-2.5,11.3-1.7,15.3c0.8,4.2,2.2,8,4.3,11.4c2.1,3.4,4.3,6.6,6.7,9.4c2.4,2.9,5.2,8.2,8.4,16c3.2,7.8,6.2,17.6,8.8,29.4
c0.2,0.2,0.9,0.9,2.1,2c1.2,1.1,2.5,2.6,3.7,4.3c1.2,1.7,2.7,4,4.4,7c1.7,3,3.6,7.3,5.6,13c2,5.7,3.9,12.3,5.6,19.7
c2.1,8.8,3.2,18.9,3.3,30.6c0.1,11.6,0.9,19.6,2.3,23.9c1.4,4.3,5.1,6.1,11,5.3c7.4-0.4,12.2-4.4,14.3-12
c6.3-22.1,1.2-48.6-15.4-79.4c-6.3-12-11.7-19.9-16.3-23.7c6.7,3.8,13.5,10.9,20.6,21.4c7,10.5,11.5,20.3,13.4,29.4
c0.2,1,0.7,3.5,1.6,7.6c0.9,4.1,1.3,6.5,1.4,7.1c0.1,0.7,0.5,2.6,1.1,5.9c0.7,3.2,1,5.3,1,6.3c0,1,0.1,2.8,0.3,5.6
c0.2,2.8,0.1,4.9-0.1,6.4c-0.3,1.5-0.6,3.6-0.9,6.1c-0.3,2.6-0.8,5-1.4,7.4c-0.7,2.4-1.4,5-2.1,7.9c10.5,4.6,15.7,8.6,15.7,12
c-4-3.2-9.7-5.4-17.1-6.4c-7.4-1.1-14.3-0.1-20.7,3c-6.4,3-9.7,8.1-9.9,15.1c-6.9,0-11.7,1.7-14.6,5.1c-4.2,4.9-6.4,11.7-6.6,20.1
c-0.2,8.5,0.5,17.7,2.1,27.7C291.1,420.7,291.7,427.7,291.3,431.7z M171.6,100.6c-0.6-0.2-1-0.8-1.4-1.7c0-1.7,0.9-2.4,2.6-2
c1.1,0.4,2.2,1.8,3.3,4.3c1,2.5,1.3,5.3,0.7,8.6c0,0.6-0.3,0.9-0.9,0.9c-2.1,0-2.9-1.9-2.3-5.7C174.2,102,173.5,100.6,171.6,100.6
z M245.6,105.1L245,106c-1.5,1-2.3,1.1-2.3,0.6c-0.8-5.1-2.5-8.1-5.1-8.9l-1.1-0.6c-1.3-1.1-0.7-1.8,2-2c0.6-0.2,1.4,0.1,2.6,0.9
c1.1,0.8,2.2,2,3.1,3.6C245.1,101.2,245.6,103,245.6,105.1z"
/>
<path
class="st0"
d="M179,121.7c0,1.1,0.5,1.6,1.4,1.4c0.8,0,1.6-0.9,2.4-2.7c0.9-1.8,2.3-2.8,4.4-3v0h-2.9
C180.8,118,179,119.4,179,121.7z"
/>
<path
class="st0"
d="M203.9,118.3c1.9-0.6,3.6-0.1,5,1.3c1.4,1.4,2.5,2,3.3,1.9c1.1-0.6,1.4-1.4,0.9-2.6
C211.5,116.4,208.5,116.2,203.9,118.3z"
/>
</g>
</g>
</svg>
| 9,402 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/os-icons/macOS.svg | <?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 23.0.6, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version="1.1"
id="Layer_1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
x="0px"
y="0px"
viewBox="0 0 191.5 191.5"
style="enable-background: new 0 0 191.5 191.5"
xml:space="preserve"
>
<style type="text/css">
.st0 {
fill-rule: evenodd;
clip-rule: evenodd;
fill: #c1c2c2;
}
</style>
<path
class="st0"
d="M95.7,191.5C42.9,191.5,0,148.6,0,95.7S42.9,0,95.7,0s95.7,42.9,95.7,95.7S148.6,191.5,95.7,191.5z M44,123.6
c0,16.6,12.8,28.6,28.7,28.6c15.9,0,29-12.3,29-28.9c0-16.4-12.9-28.8-28.8-28.8C57,94.5,44.1,107.3,44,123.2
C44,123.3,44,123.4,44,123.6z M53.3,123.4c0-11.4,8.5-20.6,19.6-20.6c11,0,19.6,9.2,19.6,20.6S83.8,144,72.9,144
C61.8,144,53.3,134.8,53.3,123.4z M124.5,152.2c12.4,0,19.5-8.3,19.5-16.4c0-8.3-5.3-14.3-15.4-16.3l-7.1-1.4
c-4.5-0.9-7.1-4.3-7.1-7.5c0-4.3,4.2-8.2,9.7-8.2c6,0,9.8,4.5,10.8,8.5l8.2-2.6c-1.1-6.1-6.4-13.8-19.1-13.8
c-10.1,0-18.6,7.6-18.6,16.9c0,7.3,5,13.4,14.3,15.3l6.9,1.4c4.7,1,8.3,3.6,8.3,8.2c0,4.7-4.6,7.9-10.2,7.9
c-6.8,0-11.2-4.2-12.4-10.8l-8.5,2.3C104.5,143.7,111.4,152.2,124.5,152.2L124.5,152.2z M59.5,63v16.8h6.6V63.1
c0-4.5,2.5-7.5,6.6-7.5c4.6,0,6.4,3.1,6.4,7.4v16.8h6.6V61.3c0-6.8-3.3-12.1-10.8-12.1c-4.6,0-7.5,1.7-10.4,4.9
c-1.7-3-4.6-4.9-9.2-4.9c-2.3,0-6,0.9-8.9,4.7v-4h-6.5v29.8h6.6V63.2c0-4.5,2.5-7.6,6.5-7.6C57.7,55.6,59.5,58.8,59.5,63z
M117.8,79.8v-19c0-2-0.3-3.7-1-5.4c-2-4.3-6.1-6.1-11.2-6.1c-2.2,0-4.3,0.4-6,1.2c-4.1,1.8-6.4,5.6-6.7,8.1l6,1.3
c0.5-2.8,2.9-4.9,6.5-4.9c3.9,0,5.9,2.2,5.9,4.5c0,1.5-0.8,2.5-2.8,2.5h-3.7c-5.2,0-12.4,2.2-12.4,9.1v0.3c0,5.1,4.2,8.8,10.1,8.8
c2.8,0,6.6-0.9,8.8-4.6v4.1H117.8z M111.3,67.7c0,4.5-2.9,7.3-7.4,7.3c-2.8,0-4.7-1.6-4.7-4.1c0-2.8,3.2-4.1,5.8-4.1h6.4
C111.3,66.8,111.3,67.7,111.3,67.7z M140,80.3c8.1,0,12.7-5.2,14.1-9.8l-6.1-2c-0.9,2.3-2.7,5.7-7.9,5.7c-5.1,0-8.8-4-8.8-9.5
c0-5.6,3.9-9.3,8.8-9.3c5,0,7.1,3.2,7.8,5.6l6-2c-1.3-5-6.4-9.6-13.8-9.6c-8.9,0-15.6,7-15.6,15.5C124.4,73.6,131.2,80.3,140,80.3z"
/>
</svg>
| 9,403 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/os-icons/windows.svg | <?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 23.0.6, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version="1.1"
id="Capa_1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
x="0px"
y="0px"
viewBox="0 0 512 512"
style="enable-background: new 0 0 512 512"
xml:space="preserve"
>
<style type="text/css">
.st0 {
fill: #c1c2c2;
}
</style>
<g>
<path
class="st0"
d="M0.2,238.9L0,72.5l204.8-27.8v194.2H0.2z M238.9,39.7L511.9,0v238.9h-273V39.7z M512,273.1L511.9,512
l-273-38.4V273.1H512z M204.8,469.2L0.2,441.2l0-168.1h204.6V469.2z"
/>
</g>
</svg>
| 9,404 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/vpn | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/vpn/plans/basic.svg | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 79 40" enable-background="new 0 0 79 40">
<style type="text/css">
.st0 {
fill: #5bb75b;
}
.st1 {
fill: none;
stroke: #5bb75b;
stroke-width: 6;
stroke-miterlimit: 10;
}
</style>
<circle cx="9" cy="31" r="9" class="st0" />
<circle cx="70" cy="9" r="9" class="st0" />
<path class="st1" d="M9 31l61-22" />
</svg>
| 9,405 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/vpn | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/vpn/plans/free.svg | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" enable-background="new 0 0 18 18">
<style type="text/css">
.st0 {
fill: #5bb75b;
}
</style>
<circle cx="9" cy="9" r="9" class="st0" />
</svg>
| 9,406 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/vpn | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/vpn/plans/plus.svg | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 93 101" enable-background="new 0 0 93 101">
<style type="text/css">
.st0 {
fill: #55b366;
}
</style>
<path
d="M92.4 11.5c0-6.2-5-11.2-11.2-11.2s-11.2 5-11.2 11.2v.3l-49 15.8c-3.5-5.1-10.5-6.5-15.6-3s-6.5 10.5-3 15.6c2.1 3.2 5.7 5 9.5 4.9 1.2 0 2.3-.2 3.4-.6l32.2 40.7c-2.4 5.7.2 12.3 5.9 14.8 5.7 2.4 12.3-.2 14.8-5.9 1.9-4.5.7-9.8-3-12.9l17.1-58.5c5.7-.5 10.1-5.4 10.1-11.2zm-34.8 66.8c-1.7 0-3.4.4-5 1.2l-31.4-39.8c.9-1.4 1.4-3 1.6-4.7l50.1-16c.5.6 1.1 1.1 1.7 1.6l-17 57.7z"
class="st0"
/>
</svg>
| 9,407 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/vpn | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/vpn/plans/visionary.svg | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 113 50" enable-background="new 0 0 113 50">
<style type="text/css">
.st0 {
fill: #55b366;
}
.st1 {
fill: #56b366;
}
.st2 {
fill: #8b88c2;
}
</style>
<path
d="M46 5.6c0-3.1-2.5-5.6-5.6-5.6-3.1 0-5.6 2.5-5.6 5.6v.2l-24.3 7.9c-1.7-2.6-5.2-3.2-7.8-1.5s-3.2 5.2-1.5 7.8c1.1 1.6 2.8 2.5 4.7 2.4.6 0 1.2-.1 1.7-.3l16 20.2c-1.2 2.8.1 6.1 2.9 7.3 2.8 1.2 6.1-.1 7.3-2.9 1-2.2.3-4.8-1.5-6.4l8.5-29c3-.4 5.2-2.8 5.2-5.7zm-17.3 33.1c-.9 0-1.7.2-2.5.6l-15.6-19.7c.4-.7.7-1.5.8-2.3l24.9-7.9c.3.3.5.6.9.8l-8.5 28.5z"
class="st0"
/>
<path d="M56.5 30.7v-4.9h-4.9v-2.1h4.9v-4.9h2.1v4.9h4.9v2.1h-4.9v4.9h-2.1z" class="st1" />
<path
d="M95.5 0s-14.8-.5-17.8 15.9v11.1s.1 1.2 3.5 3.6c3.4 2.4 12 9.2 14.3 9.2s11-6.8 14.3-9.2c3.4-2.4 3.5-3.6 3.5-3.6v-11.1c-3-16.3-17.8-15.9-17.8-15.9m10.1 22h-20.2v-6.1c2-8.1 10.1-8.2 10.1-8.2s8.1.1 10.1 8.2v6.1zM95.5 42.4s-2.3-.2-4.1-1.5c-1.8-1.2-13.7-9.8-13.7-9.8v16.9s.1 2 2.3 2h31c2.2 0 2.3-2 2.3-2v-16.8s-11.9 8.5-13.7 9.8c-1.8 1.2-4.1 1.4-4.1 1.4"
class="st2"
/>
</svg>
| 9,408 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/vpn | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/vpn/redeem/dns.svg | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 65 44" enable-background="new 0 0 65 44">
<style type="text/css">
.st0 {
fill: #6f6f6f;
}
</style>
<path
class="st0"
d="M15.8-15.2c0-.5 0-.9-.1-1.4.1.4.1.9.1 1.4zM32.6 0c-14.8 0-27.4 9.1-32.5 22 5.1 12.9 17.7 22 32.5 22s27.4-9.1 32.5-22c-5.1-12.9-17.7-22-32.5-22zm0 36.7c-8.2 0-14.8-6.6-14.8-14.7s6.7-14.7 14.8-14.7 14.8 6.6 14.8 14.7-6.6 14.7-14.8 14.7zm5.3-21.9c0-2.9-2.3-5.2-5.2-5.2s-5.2 2.3-5.2 5.2v3.3c-1 1.1-1.5 2.4-1.5 3.9 0 3.6 2.9 6.5 6.6 6.5s6.6-2.9 6.6-6.5c0-1.5-.5-2.8-1.3-3.9v-3.3zm-8.5 1.6v-1.6c0-1.8 1.5-3.2 3.3-3.2 1.8 0 3.3 1.4 3.3 3.2v1.6c-1-.5-2.1-.9-3.3-.9-1.3 0-2.4.3-3.3.9z"
/>
</svg>
| 9,409 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/vpn | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/vpn/redeem/encryption.svg | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 57 47" enable-background="new 0 0 57 47">
<style type="text/css">
.st0 {
fill: #6f6f6f;
}
</style>
<path
class="st0"
d="M15.8-15.2c0-.5 0-.9-.1-1.4.1.4.1.9.1 1.4zM52.9 0h-48.7c-2.3 0-4.2 1.9-4.2 4.1v38.8c0 2.3 1.9 4.1 4.2 4.1h48.6c2.3 0 4.2-1.9 4.2-4.1v-38.8c.1-2.3-1.9-4.1-4.1-4.1zm-34.9 4.2c1 0 1.8.8 1.8 1.8s-.8 1.8-1.8 1.8-1.8-.8-1.8-1.8.8-1.8 1.8-1.8zm-5.5 0c1 0 1.8.8 1.8 1.8s-.8 1.8-1.8 1.8-1.8-.8-1.8-1.8.8-1.8 1.8-1.8zm-5.5 0c1 0 1.8.8 1.8 1.8s-.8 1.8-1.8 1.8-1.8-.8-1.8-1.8.8-1.8 1.8-1.8zm46.2 38.7c0 .2-.1.3-.3.3h-48.7c-.2 0-.3-.1-.3-.3v-30.8h49.3v30.8zM21.5 37.7c.2.2.7.2.9 0l2.8-2.8c.2-.2.2-.6 0-.9l-6.5-6.4 6.5-6.4c.2-.2.2-.6 0-.9l-2.8-2.8c-.2-.2-.7-.2-.9 0l-9.7 9.6c-.2.2-.2.6 0 .9l9.7 9.7zM31.8 34.9l2.8 2.8c.2.2.7.2.9 0l9.8-9.6c.2-.2.2-.6 0-.9l-9.8-9.6c-.2-.2-.7-.2-.9 0l-2.8 2.8c-.2.2-.2.6 0 .9l6.5 6.4-6.5 6.3c-.2.3-.2.7 0 .9z"
/>
</svg>
| 9,410 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/vpn | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/vpn/redeem/kill_switch.svg | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 47 44" enable-background="new 0 0 47 44">
<style type="text/css">
.st0 {
fill: #6f6f6f;
}
</style>
<path
class="st0"
d="M15.8-15.2c0-.5 0-.9-.1-1.4.1.4.1.9.1 1.4zM47 6.5v-.7c-.4-3.2-3.2-5.8-6.5-5.8h-.8c-3.3.4-5.8 3.1-5.8 6.5s2.5 6.1 5.8 6.5h.8c3.6 0 6.5-2.9 6.5-6.5zM32.4 6.5c0-2.7 1.3-5 3.3-6.5h-29.2c-3.6 0-6.5 2.9-6.5 6.5s2.9 6.5 6.5 6.5h29.2c-2-1.5-3.3-3.8-3.3-6.5zM15.8 16.6c0-.5 0-.9-.1-1.4.1.5.1.9.1 1.4zM47 22v-.7c-.3-3.3-3.1-5.8-6.4-5.8h-.8c-3.3.4-5.8 3.1-5.8 6.5s2.5 6.1 5.8 6.5h.8c3.5 0 6.4-2.9 6.4-6.5zM32.4 22c0-2.7 1.3-5 3.3-6.5h-29.2c-3.6 0-6.5 2.9-6.5 6.5s2.9 6.5 6.5 6.5h29.2c-2-1.5-3.3-3.9-3.3-6.5zM40.5 31h-29.1c.6.4 1.1.9 1.5 1.5h27.6c2.8 0 5 2.2 5 5s-2.2 5-5 5h-27.6c-.4.6-.9 1.1-1.5 1.5h29.2c3.6 0 6.5-2.9 6.5-6.5-.1-3.6-3-6.5-6.6-6.5z"
/>
<ellipse class="st0" cx="6.5" cy="37.5" rx="6.5" ry="6.5" />
</svg>
| 9,411 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/vpn | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/vpn/redeem/no_logs.svg | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 47 47.1" enable-background="new 0 0 47 47.1">
<style type="text/css">
.st0 {
fill: #6f6f6f;
}
</style>
<path
class="st0"
d="M40.2 7l-.2-.1c-4.5-4.6-10-6.9-16.5-6.9s-12 2.3-16.6 6.9c-4.6 4.6-6.9 10.2-6.9 16.6 0 6.5 2.3 12 6.8 16.5l.1.1c4.6 4.6 10.1 6.8 16.6 6.8 6.5 0 12-2.3 16.6-6.9 4.6-4.4 6.9-10 6.9-16.5 0-6.4-2.3-11.9-6.8-16.5m-16.7-.6c3.6 0 6.9 1 9.7 3l-23.9 23.9c-2-2.8-3-6.1-3-9.7 0-4.7 1.7-8.8 5-12.1 3.4-3.4 7.5-5.1 12.2-5.1m12.1 29.3c-3.3 3.4-7.4 5-12.1 5-3.6 0-6.9-1-9.7-3l23.9-23.9c2 2.8 3 6 3 9.7 0 4.8-1.7 8.8-5.1 12.2z"
id="a"
/>
</svg>
| 9,412 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/vpn | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/vpn/redeem/secure_core.svg | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 43 47.1" enable-background="new 0 0 43 47.1">
<style type="text/css">
.st0 {
fill: #6f6f6f;
}
</style>
<path
class="st0"
d="M43 5.3c0-2.9-2.4-5.3-5.3-5.3s-5.3 2.4-5.3 5.3v.2l-22.8 7.3c-1.6-2.4-4.9-3-7.3-1.4s-3 4.9-1.4 7.3c1 1.5 2.7 2.3 4.5 2.3.5 0 1.1-.1 1.6-.3l15 19c-1.1 2.7.1 5.8 2.8 6.9 2.7 1.1 5.8-.1 6.9-2.8.9-2.1.3-4.6-1.4-6l8-27.3c2.7-.3 4.7-2.5 4.7-5.2zm-16.2 31.1c-.8 0-1.6.2-2.3.6l-14.8-18.6c.4-.7.7-1.4.7-2.2l23.4-7.5c.2.3.5.5.8.7l-7.8 27z"
/>
</svg>
| 9,413 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/vpn | petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/vpn/redeem/swiss_based.svg | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 43 47" enable-background="new 0 0 43 47">
<style type="text/css">
.st0 {
fill: #6f6f6f;
}
</style>
<path
class="st0"
d="M21.5 0c-14.4 0-21.5 4.7-21.5 4.7v12.5c0 10.9 5.8 21.2 15.6 27.1 3.3 2 5.9 2.7 5.9 2.7s2.5-.8 5.9-2.7c9.8-5.9 15.6-16.2 15.6-27.2v-12.5s-7.1-4.6-21.5-4.6zm14.9 25h-10.3v9.9h-9.2v-9.9h-10.3v-8.6h10.4v-9.8h9.2v9.9h10.5c-.3-.1-.3 8.5-.3 8.5z"
/>
</svg>
| 9,414 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles | petrpan-code/ProtonMail/WebClients/packages/styles/scss/_proton-account.scss | // Variables specific overrides
// Nope
// Configuration
@import 'lib/';
// Initialisation
@import 'base/';
// Layout
@import 'layout/';
// Components
@import 'components/';
// Helpers
@import 'utilities/';
| 9,415 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles | petrpan-code/ProtonMail/WebClients/packages/styles/scss/_proton-admin.scss | // Variables specific overrides
// Nope
// Configuration
@import 'lib/';
// Initialisation
@import 'base/';
// Layout
@import 'layout/';
// Components
@import 'components/';
// Helpers
@import 'utilities/';
| 9,416 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles | petrpan-code/ProtonMail/WebClients/packages/styles/scss/_proton-calendar.scss | @use 'lib/im-to-em' as *;
@use 'sass:map';
// Variables specific overrides
$breakpoints: im-to-em(
(
'xlarge': 1500px,
'large': 1100px,
'medium': 1000px,
'small': 870px,
'xsmall': 520px,
)
);
// Configuration
@import 'lib/';
// Initialisation
@import 'base/';
// Layout
@import 'layout/';
// Components
@import 'components/';
// Helpers
@import 'utilities/';
| 9,417 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles | petrpan-code/ProtonMail/WebClients/packages/styles/scss/_proton-drive.scss | // Variables specific overrides
// Nope
// Configuration
@import 'lib/';
// Initialisation
@import 'base/';
// Layout
@import 'layout/';
// Components
@import 'components/';
// Helpers
@import 'utilities/';
| 9,418 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles | petrpan-code/ProtonMail/WebClients/packages/styles/scss/_proton-mail.scss | @use 'lib/im-to-em' as *;
// Variables specific overrides
$breakpoints: im-to-em(
(
'xlarge': 1500px,
'large': 1100px,
'medium': 940px,
'small': 680px,
'xsmall': 450px,
)
);
$use-height-auto-td: false;
$use-height-auto-img: false;
$use-height-auto-table: false;
// Library
@import 'lib/';
// Initialisation
@import 'base/';
// Layout
@import 'layout/';
// Components
@import 'components/';
// Helpers
@import 'utilities/';
| 9,419 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles | petrpan-code/ProtonMail/WebClients/packages/styles/scss/_proton-pass.scss | @use 'lib/im-to-em' as *;
$breakpoints: im-to-em(
(
'xlarge': 1500px,
'large': 1100px,
'medium': 940px,
'small': 880px,
'xsmall': 450px,
)
);
// Library
@import 'lib/';
// Initialisation
@import 'base/';
// Layout
@import 'layout/';
// Components
@import 'components/';
// Helpers
@import 'utilities/';
| 9,420 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles | petrpan-code/ProtonMail/WebClients/packages/styles/scss/_proton-ui-storybook.scss | // Variables specific overrides
// Configuration
@import 'lib/';
// Initialisation
@import 'base/';
// Layout
@import 'layout/';
// Components
@import 'components/';
// Helpers
@import 'utilities/';
| 9,421 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles | petrpan-code/ProtonMail/WebClients/packages/styles/scss/_proton-verification.scss | // Variables specific overrides
// Nope
// Configuration
@import 'lib/';
// Initialisation
@import 'base/';
// Layout
@import 'layout/';
// Components
@import 'components/';
// Helpers
@import 'utilities/';
| 9,422 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles | petrpan-code/ProtonMail/WebClients/packages/styles/scss/_proton-vpn-settings.scss | // Configuration
@import 'lib/';
// Initialisation
@import 'base/';
// Layout
@import 'layout/';
// Components
@import 'components/';
// Helpers
@import 'utilities/';
| 9,423 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base/_fonts.scss | @use '~inter-ui/default' with (
$inter-font-display: swap,
$inter-font-path: '~inter-ui/Inter (web)'
);
@use '~inter-ui/variable' with (
$inter-font-display: swap,
$inter-font-path: '~inter-ui/Inter (web)'
);
/*
Only include font faces that we need.
Only used by outdated browsers/os
Minimises the number of font requests made which is then duplicated by the challenge script. This can be removed when the challenge script no longer makes style requests.
*/
@include default.weight-400-normal;
@include default.weight-600-normal;
@include default.weight-700-normal;
@include variable.all;
// --------------------------------------------------------------------------------------
/*
OpenDyslexic font face definition for font face setting
*/
$opendyslexic-font-path: '~@proton/styles/assets/fonts';
@font-face {
font-family: OpenDyslexic;
font-style: normal;
font-weight: normal;
font-display: swap;
src: local('OpenDyslexic'), url('#{$opendyslexic-font-path}/OpenDyslexic-Regular.woff2') format('woff2'),
url('#{$opendyslexic-font-path}/OpenDyslexic-Regular.woff') format('woff');
}
@font-face {
font-family: OpenDyslexic;
font-style: italic;
font-weight: normal;
font-display: swap;
src: local('OpenDyslexic'), url('#{$opendyslexic-font-path}/OpenDyslexic-Italic.woff2') format('woff2'),
url('#{$opendyslexic-font-path}/OpenDyslexic-Italic.woff') format('woff');
}
@font-face {
font-family: OpenDyslexic;
font-style: normal;
font-weight: 600;
font-display: swap;
src: local('OpenDyslexic'), url('#{$opendyslexic-font-path}/OpenDyslexic-Bold.woff2') format('woff2'),
url('#{$opendyslexic-font-path}/OpenDyslexic-Bold.woff') format('woff');
}
@font-face {
font-family: OpenDyslexic;
font-style: italic;
font-weight: 600;
font-display: swap;
src: local('OpenDyslexic'), url('#{$opendyslexic-font-path}/OpenDyslexic-Bold-Italic.woff2') format('woff2'),
url('#{$opendyslexic-font-path}/OpenDyslexic-Bold-Italic.woff') format('woff');
}
// --------------------------------------------------------------------------------------
:root {
--font-weight-normal: 400;
--font-weight-semibold: 600;
--font-weight-bold: 700;
}
$fallback-fonts: system-ui, sans-serif;
html,
.apply-font {
// Set fallback font stack as default
font-family: var(--setting-font-family, var(--optional-font-family, #{$fallback-fonts}));
// If the browser supports `@supports`, set Inter static if it doesn't support variable fonts
@supports not (font-variation-settings: normal) {
font-family: var(--setting-font-family, var(--optional-font-family, 'Inter', #{$fallback-fonts}));
}
// If the browser supports `@supports`, set Inter variable if it supports variable fonts
@supports (font-variation-settings: normal) {
font-family: var(--setting-font-family, var(--optional-font-family, 'Inter var', #{$fallback-fonts}));
}
font-synthesis: none;
font-weight: var(--font-weight-normal);
font-style: normal;
/* stylelint-disable */
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-smoothing: antialiased;
/* stylelint-enable */
}
| 9,424 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base/_index.scss | /* stylelint-disable */
@import
'viewport',
'reset',
'init',
'custom-properties/',
'ui-regions',
'fonts',
'typo',
'interactive',
'forms/',
'scrollbar',
'media';
| 9,425 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base/_init.scss | *,
*::before,
*::after {
box-sizing: inherit; // From html
}
html {
box-sizing: border-box;
overscroll-behavior: none;
}
body {
background: var(--background-norm);
min-block-size: 100%;
}
::selection {
background-color: var(--selection-background-color);
color: var(--selection-text-color);
}
a {
color: var(--link-norm);
text-decoration: underline;
cursor: pointer;
&:hover,
&:focus {
color: var(--link-hover);
text-decoration: none;
}
&:active {
color: var(--link-active);
text-decoration: none;
}
}
b,
strong {
font-weight: var(--font-weight-bold);
}
@supports selector(:focus-visible) {
// had to do this because of Safari
a,
button {
&:focus:not(:focus-visible) {
outline: 0;
}
}
}
/* it depends, it exceeds (french joke) */
%reset-responsive-height-max-width {
block-size: auto;
max-inline-size: 100%;
}
%reset-responsive-max-width-only {
max-inline-size: 100%;
}
blockquote,
code,
pre,
textarea,
input,
svg {
@extend %reset-responsive-height-max-width;
}
@if $use-height-auto-td==true {
td {
@extend %reset-responsive-height-max-width;
}
} @else {
td {
@extend %reset-responsive-max-width-only;
}
}
@if $use-height-auto-img==true {
img {
@extend %reset-responsive-height-max-width;
}
} @else {
img {
@extend %reset-responsive-max-width-only;
}
}
@if $use-height-auto-table==true {
table {
@extend %reset-responsive-height-max-width;
}
} @else {
table {
@extend %reset-responsive-max-width-only;
}
}
textarea {
min-block-size: #{rem($default-height-fields)}; // Equals field inputs height
}
/*
* avoids dimensioning for radio, checkboxes and images
* and a different display on IE
*/
input[type='radio'],
input[type='checkbox'],
input[type='image'] {
background-color: transparent;
border: 0;
inline-size: auto;
}
// for components that rely on checkboxes
input[type='radio'],
input[type='checkbox'] {
opacity: 0;
}
/* removes X in input when typing in IE/EDGE */
input::-ms-clear {
inline-size: 0;
block-size: 0;
}
/* removes native password revealer for IE/EDGE */
input::-ms-reveal {
display: none;
}
/* fix for standard select component */
select {
padding: 0; // for Firefox difference
option {
background-color: var(--field-background-color);
}
}
/* avoid ugly line-height */
sup,
sub {
vertical-align: 0;
position: relative;
}
sup {
inset-block-end: 1ex;
}
sub {
inset-block-start: 0.5ex;
}
mark {
background-color: var(--mark-background-color);
color: var(--mark-text-color);
font-weight: var(--mark-font-weight);
// Lighter style for less prominent UI
&.is-light {
background-color: unset;
color: inherit;
font-weight: var(--font-weight-bold);
}
}
/* avoid margin on nested elements */
li {
p,
ul {
margin-block: 0;
}
}
hr {
background-color: var(--border-norm);
border: 0;
block-size: 1px;
margin-inline: 0;
margin-block: 0 1em;
padding: 0;
}
table {
margin-block-end: 1.5em;
table-layout: fixed;
}
details {
border-block-end: 1px solid var(--border-norm);
& > summary::-webkit-details-marker {
display: none;
}
&:first-child {
border-block-start: 1px solid var(--border-norm);
}
&[open] > summary {
.summary-caret {
@extend .rotateX-180;
}
}
}
summary {
padding-block: 0.5em;
padding-inline: 0;
list-style: none;
border: 0;
cursor: pointer;
}
| 9,426 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base/_interactive.scss | %interactive {
outline: none; // be careful of a11y
@supports selector(:focus-visible:has(a, b)) {
// had to do this because of Safari
outline: unset;
}
&.link-focus.link-focus:focus,
&.link-focus.link-focus:focus-visible {
outline: none;
}
&:not([class*='bg-']) {
background-color: var(--interaction-default);
}
color: inherit;
transition: 0.15s easing(ease-out-quint), background-position 0s;
&:hover {
background-color: var(--interaction-default-hover);
color: inherit;
}
&:active,
&.is-active,
&.active,
&[aria-expanded='true'] {
background-color: var(--interaction-default-active);
color: inherit;
}
&[disabled],
&.is-disabled {
pointer-events: none;
&:not([aria-busy='true']) {
opacity: 0.5;
}
}
}
/*
* Interactive gives only default colors on every states
* Default focus states
*/
.interactive {
@extend %interactive;
@supports not selector(:focus-visible:has(a, b)) {
&:focus,
&:focus-within {
border-color: var(--focus-outline);
box-shadow: 0 0 0 #{$focus-ring-size} var(--focus-ring);
color: inherit;
&:hover {
background-color: var(--interaction-default-hover);
}
}
}
@supports selector(:focus-visible:has(a, b)) {
&:focus-visible,
&:has(*:focus-visible) {
border-color: var(--focus-outline);
box-shadow: 0 0 0 #{$focus-ring-size} var(--focus-ring);
color: inherit;
&:hover {
background-color: var(--interaction-default-hover);
}
}
}
}
/*
* Interactive gives only default colors on every states
* Focus states as pseudo element (dropdown options, minicalendar,...)
*/
.interactive-pseudo {
@extend %interactive;
&::after {
content: '';
position: absolute;
inset: 0;
z-index: 1;
border-radius: var(--border-radius-sm);
border: 1px solid transparent;
pointer-events: none;
transition: 0.15s easing(ease-out-quad);
}
&[class*='rounded']::after {
border-radius: inherit;
}
@supports not selector(:focus-visible:has(a, b)) {
&:focus,
&:focus-within {
&::after {
border-color: var(--focus-outline);
box-shadow: 0 0 0 #{$focus-ring-size} var(--focus-ring);
}
&:hover {
&::after {
background-color: var(--interaction-default-hover);
}
}
}
}
@supports selector(:focus-visible:has(a, b)) {
&:focus-visible,
&:has(*:focus-visible) {
&::after {
border-color: var(--focus-outline);
box-shadow: 0 0 0 #{$focus-ring-size} var(--focus-ring);
}
&:hover {
&::after {
background-color: var(--interaction-default-hover);
}
}
}
}
}
/*
* Interactive gives only default colors on every states
* Focus states as pseudo element with inset to deal with overflow-hidden
*/
.interactive-pseudo-inset {
@extend %interactive;
@extend .interactive-pseudo;
&::after {
inset: $focus-ring-size;
}
}
.interactive-pseudo-protrude {
@extend %interactive;
@extend .interactive-pseudo;
&::after {
inset: -$focus-ring-size;
}
}
.interactive--no-background {
&:hover,
&:focus,
&:focus-visible,
&:focus-within,
&:active,
&.is-active,
&.active,
&[aria-expanded='true'] {
background-color: inherit;
&:hover::after {
background-color: inherit;
}
}
}
| 9,427 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base/_media.scss | /**
* reduced motion MQ: for vestibular disorders
*/
@mixin reduce-motion {
*,
*::before,
*::after {
// Using values greater than 0 to have animation events still triggering
animation-delay: 0.01ms !important;
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
// This magic value is needed because of https://bugs.webkit.org/show_bug.cgi?id=242510
// which affects visibility changes on Safari (iOS + MacOS) when reduce motion is
// enabled in accessibility settings. Even though transitions are not involved.
// This needs to be set to 0 to prevent lag. In general in all browsers, but particularly
// in safari when changing theme.
// Warning: This breaks transition events, which need to be handled in JS.
transition-delay: 0s !important;
transition-duration: 0s !important;
}
}
@include media('reduced-motion') {
@include reduce-motion;
}
.feature-animations-off {
@include reduce-motion;
}
| 9,428 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base/_reset.scss | article,
aside,
datalist,
details,
dialog,
figure,
footer,
header,
main,
menu,
nav,
section {
display: block;
}
audio,
canvas,
progress,
video {
display: inline-block;
}
abbr,
mark,
meter,
time,
output {
display: inline;
}
/* reset minimum */
html,
body,
blockquote,
ul,
ol,
form,
input,
button,
figure {
margin: 0;
padding: 0;
}
button,
progress {
border: 0;
}
p,
ul,
ol,
dl,
blockquote,
pre,
menu,
td,
th {
font-size: 1em;
line-height: inherit;
margin-block: $base-line-height * 1em;
margin-inline: 0;
}
@if $use-reset-button==true {
/* reset buttons, remember to style them in forms */
input,
select,
textarea,
optgroup,
button {
background: transparent;
border: 0;
font: inherit;
color: inherit;
/* stylelint-disable-next-line */
-webkit-appearance: none; // -webkit-appearance: none makes vocalization failing
}
input[type='checkbox'] {
/* stylelint-disable-next-line */
-webkit-appearance: checkbox;
}
input[type='radio'] {
/* stylelint-disable-next-line */
-webkit-appearance: radio;
}
} @else {
input,
select,
textarea,
optgroup,
button {
font: inherit;
color: inherit;
}
}
/* makes you want to click on */
label,
button,
input[type='submit'],
input[type='button'],
input[type='reset'] {
cursor: pointer;
}
button[disabled],
input[type='submit'][disabled],
input[type='button'][disabled],
input[type='reset'][disabled] {
cursor: default;
pointer-events: none;
}
/* avoid dummy resize */
textarea {
resize: vertical;
cursor: auto; // fixes an issue on Chrome using CSS custom scroll
}
/* remove a Firefox difference on button tag */
button::-moz-focus-inner {
border: 0;
padding: 0;
}
label,
button,
input,
select {
color: currentcolor;
vertical-align: middle;
}
@if $use-reset-button==false {
/** fix typo inputs **/
input,
select,
textarea,
optgroup,
button {
font: inherit;
}
}
/* fix display img/iframe */
@if $use-vertical-align-img-iframe==true {
img,
iframe {
vertical-align: middle;
}
}
iframe,
dialog {
border: 0;
}
ul,
ol,
menu {
padding-inline-start: 2em;
}
dd {
margin-inline-start: 2em;
}
b,
strong {
font-weight: bold;
}
/* harmonization between Chrome/Firefox */
pre,
code,
kbd,
samp {
font-family: $font-family-monospace;
font-size: 1em;
}
pre {
white-space: pre-wrap;
word-wrap: break-word;
}
small {
font-size: 80%;
}
/* avoid border on images in links */
a {
&:link,
&:visited {
img {
border-style: none;
}
}
}
/* fix border image IE */
img {
border-style: none;
}
/* tiny control */
audio:not([controls]) {
display: none;
block-size: 0;
}
/* important, abbr are good
* only those with a title are shown */
abbr[title] {
border-block-end: dotted 1px;
cursor: help;
text-decoration: none;
/* color inherited from text */
}
code,
pre,
samp {
white-space: pre-wrap;
}
code {
line-height: 1;
}
dfn {
font-style: italic;
}
/*
* taken from http://tinytypo.tetue.net/ made by @tetue
* tuned with the help of https://www.nicolas-hoffmann.net/utilitaires/codes-hexas-ascii-unicode-utf8-caracteres-usuels.php
*
* see https://en.wikipedia.org/wiki/Quotation_mark#Summary_table for reference
*/
html {
quotes: '\201C''\201D''\2018''\2019'; // default
}
@each $quotes
in (
('lang': 'fr', 'quotes': '"\00AB\00A0" "\00A0\00BB" "\201C" "\201D" "\2018" "\2019"'),
('lang': 'en', 'quotes': '"\201C" "\201D" "\2018" "\2019"'),
('lang': 'es', 'quotes': '"\00AB" "\00BB" "\201C" "\201D"'),
('lang': 'it', 'quotes': '"\00AB\00A0" "\00A0\00BB" "\201C" "\201D"'),
('lang': 'de', 'quotes': '"\201e" "\201c" "\201a" "\2018"'),
('lang': 'ja', 'quotes': '"\300c" "\300d" "\300e" "\300f"'),
('lang': 'ar', 'quotes': '"\201C" "\201D"')
)
{
:lang(#{map-get($quotes, 'lang')}) {
quotes: #{map-get($quotes, 'quotes')};
}
}
blockquote,
q {
&::before {
content: open-quote;
}
&::after {
content: close-quote;
}
}
| 9,429 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base/_scrollbar.scss | @use 'sass:math';
@if $custom-scroll {
$scrollbar-size: rem(6) !default;
$scrollbar-margin: rem(2) !default;
html:not(.feature-scrollbars-off) {
* {
$real-size: $scrollbar-size + ($scrollbar-margin * 2);
// W3C, Firefox
scrollbar-width: thin;
scrollbar-color: var(--scrollbar-thumb-color) transparent;
// webkit specific
&::-webkit-scrollbar {
inline-size: $real-size;
block-size: $real-size;
}
&::-webkit-scrollbar-thumb {
border: $scrollbar-margin solid transparent; // Margin
background-clip: padding-box; // Booyah!
border-radius: math.div($real-size, 2);
background-color: var(--scrollbar-thumb-color);
}
&::-webkit-scrollbar-track {
background-color: transparent;
}
&::-webkit-scrollbar-thumb:horizontal,
&::-webkit-scrollbar-thumb:vertical {
&:hover {
background-color: var(--scrollbar-thumb-hover-color);
}
}
&::-webkit-scrollbar-corner {
visibility: hidden;
}
}
@include media('mouse') {
& body *:not(:hover, :focus, :focus-within) {
&::-webkit-scrollbar-thumb {
visibility: hidden;
}
}
}
}
}
| 9,430 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base/_typo.scss | @use 'sass:math';
html {
/* Introduce `--setting-font-size` to make the font size setting possible. */
/* chosen size * browser default size / app default size * 100% / browser default size */
font-size: calc(var(--setting-font-size) * #{math.div(16, 14) * math.div(100%, 16)});
}
body {
color: var(--text-norm);
line-height: $base-line-height;
font-size: em($base-font-size, $root-default-font-size);
}
@each $tag, $size in $title-sizes {
#{$tag},
.#{$tag} {
display: block;
margin: 0;
font-size: em($size);
font-weight: var(--font-weight-normal);
}
}
/* Hyphenation: Thou shalt not pass (Moïse or Gandalf, don’t remember) */
@if $hyphenation == true {
textarea,
table,
td,
th,
code,
pre,
samp,
div,
p {
word-break: break-word;
@supports (-webkit-hyphens: auto) or (hyphens: auto) {
word-break: normal;
@include vendor-prefix(hyphens, auto, webkit);
}
}
}
| 9,431 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base/_ui-regions.scss | /*
* When applying a ui region class, we need to re-apply
* default background and text colors as well as they changed,
* so adding the overrides here will avoid the necessity
* of adding two classes each time
*/
.ui-standard,
.ui-prominent {
background-color: var(--background-norm);
color: var(--text-norm);
}
| 9,432 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base/_viewport.scss | /* stylelint-disable at-rule-no-vendor-prefix */
/* fix viewport for Win8 (snap mode) and preparing day
* when viewport will be supported by all render engines
*
* Examples: http://dev.opera.com/articles/view/an-introduction-to-meta-viewport-and-viewport/
* width=device-width => width: device-width;
* height=device-height => height: device-height;
* initial-scale=2 => zoom: 2;
* maximum-scale=2 => max-zoom: 2;
* minimum-scale=0.5 => min-zoom: 0.5;
* user-scalable=no => user-zoom: fixed;
*
* for Win8 snap mode => only width: device-width; works for the moment
*/
@-webkit-viewport {
inline-size: device-width;
}
@-moz-viewport {
inline-size: device-width;
}
@-ms-viewport {
inline-size: device-width;
}
@-o-viewport {
inline-size: device-width;
}
@viewport {
inline-size: device-width;
}
| 9,433 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base/custom-properties/_index.scss | /* stylelint-disable */
@import
'init',
'optionals';
| 9,434 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base/custom-properties/_init.scss | @use 'sass:math';
/*
* Static variables that keep the same between each visual theme
*/
// Colors mapping
:root,
.ui-standard,
.ui-prominent {
--signal-danger-hover: var(--signal-danger-major-1);
--signal-danger-active: var(--signal-danger-major-2);
--signal-warning-hover: var(--signal-warning-major-1);
--signal-warning-active: var(--signal-warning-major-2);
--signal-success-hover: var(--signal-success-major-1);
--signal-success-active: var(--signal-success-major-2);
--signal-info-hover: var(--signal-info-major-1);
--signal-info-active: var(--signal-info-major-2);
--interaction-norm-hover: var(--interaction-norm-major-1);
--interaction-norm-active: var(--interaction-norm-major-2);
--interaction-weak-hover: var(--interaction-weak-major-1);
--interaction-weak-active: var(--interaction-weak-major-2);
}
// Other mappings
:root {
--1px: #{math.div(1rem, 16)}; // Assumed 16px browser base font size
--border-radius-sm: calc(0.5 * var(--border-radius) * var(--1px));
--border-radius-md: calc(var(--border-radius) * var(--1px));
--border-radius-lg: calc(1.5 * var(--border-radius) * var(--1px));
--border-radius-xl: calc(2 * var(--border-radius) * var(--1px));
--border-radius-full: 9999em;
}
| 9,435 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base/custom-properties/_optionals.scss | /*
* List of optional variables
* An optional variable has always a defined fallback value
*/
/* prettier-ignore */
:root,
.ui-standard,
.ui-prominent {
/*
* Generate 'optional' css variables from
* variable-name: default-value
*
* Output
* --variable-name: var(--optional-variable-name, default-value);
*
* Example
* --link-norm: var(--optional-link-norm, var(--interaction-norm));
*/
@each $variable, $default in (
link-norm : var(--interaction-norm),
link-hover : var(--interaction-norm-hover),
link-active: var(--interaction-norm-active),
selection-background-color: var(--primary),
selection-text-color : var(--primary-contrast),
header-background-color : var(--background-norm),
sidebar-background-color: var(--background-norm),
navigation-current-item-marker-color : var(--interaction-norm),
navigation-current-item-background-color: var(--interaction-default-hover),
navigation-current-item-text-color : var(--text-norm),
main-box-shadow : none,
main-border-width: 1px,
navigation-item-count-background-color: var(--primary),
navigation-item-count-text-color : var(--primary-contrast),
toolbar-background-color : var(--background-norm),
toolbar-border-bottom-color: var(--border-weak),
toolbar-text-color : var(--text-norm),
toolbar-separator-color : var(--border-norm),
scrollbar-thumb-color : rgba(grey, 0.25),
scrollbar-thumb-hover-color: rgba(grey, 0.5),
tooltip-background-color: var(--background-invert),
tooltip-text-color : var(--text-invert),
background-elevated : var(--background-norm),
background-lowered : var(--background-weak),
email-item-unread-background-color : var(--background-norm),
email-item-unread-text-color : var(--text-norm),
email-item-unread-icon-background-color: var(--background-strong),
email-item-unread-icon-text-color : inherit,
email-item-read-background-color : var(--background-weak),
email-item-read-text-color : var(--text-norm),
email-item-read-icon-background-color: var(--background-strong),
email-item-read-icon-text-color : inherit,
email-item-selected-background-color : var(--interaction-norm),
email-item-selected-text-color : var(--interaction-norm-contrast),
email-item-selected-icon-background-color: var(--interaction-norm-major-2),
email-item-selected-icon-text-color : inherit,
email-message-view-background-color: var(--background-norm),
email-message-view-comfort-background-color: var(--background-norm),
field-background-color : var(--background-norm),
field-text-color : var(--text-norm),
field-placeholder-color: var(--text-hint),
field-hover-background-color: var(--background-norm),
field-hover-text-color : var(--text-norm),
field-focus-background-color: var(--background-norm),
field-focus-text-color : var(--text-norm),
field-disabled-background-color: var(--background-norm),
field-disabled-text-color : var(--text-disabled),
select-background-color: var(--field-background-color),
favorite-icon-color: orange,
mark-background-color: yellow,
mark-text-color : black,
mark-font-weight : var(--font-weight-normal, normal),
modal-background-color: var(--background-norm),
modal-text-color : var(--text-norm),
file-preview-text-color : var(--text-norm),
file-preview-background-color: var(--background-norm),
mini-calendar-today-color: var(--primary),
border-radius: 8,
shadow-default-color: 0 0 0,
shadow-norm-offset: 0 calc(var(--1px)) calc(var(--1px) * 4),
shadow-lifted-offset: 0 calc(var(--1px) * 8) calc(var(--1px) * 24),
logo-text-proton-color : var(--text-norm),
logo-text-product-color: var(--primary),
promotion-text-color: #15006F,
promotion-text-weak: #50409b,
promotion-interaction-hover: rgb(109 74 255 / 0.08),
promotion-background-start: rgb(109 74 255 / 0.15),
promotion-background-end: rgb(70 26 255 / 0.04),
) {
// --link-norm: var(--optional-link-norm, var(--interaction-norm));
--#{$variable}: var(--optional-#{$variable}, #{$default});
}
}
| 9,436 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base/forms/_checkbox.scss | .checkbox {
&-container {
// position: relative; exported inside the component to enable increase-surface-click
display: inline-flex;
}
&-input {
&#{&} {
// Specificity fail for width
position: absolute;
cursor: pointer;
inset: 0;
inline-size: 100%;
block-size: 100%;
z-index: 1;
opacity: 0;
margin: 0;
}
}
&-fakecheck {
display: inline-flex;
min-inline-size: rem(20);
inline-size: rem(20);
block-size: rem(20);
margin-block: auto;
border-radius: var(--border-radius-sm);
border: 1px solid var(--field-norm);
background-color: var(--field-background-color);
color: var(--field-text-color);
transition: 0.15s easing(ease-out-cubic);
&-img {
margin: auto;
transform: scale(0);
transition: 0.15s transform easing(ease-out-back);
}
}
&-input:hover + &-fakecheck {
border-color: var(--interaction-norm);
background-color: var(--field-hover-background-color);
color: var(--field-hover-text-color);
}
@supports not selector(:focus-visible) {
&-input:focus + &-fakecheck {
border-color: var(--interaction-norm);
box-shadow: 0 0 0 #{$focus-ring-size} var(--focus-ring);
background-color: var(--field-focus-background-color);
color: var(--field-focus-text-color);
}
&-input:focus:hover + &-fakecheck {
border-color: var(--interaction-norm-hover);
}
}
@supports selector(:focus-visible) {
&-input:focus-visible + &-fakecheck {
border-color: var(--interaction-norm);
box-shadow: 0 0 0 #{$focus-ring-size} var(--focus-ring);
background-color: var(--field-focus-background-color);
color: var(--field-focus-text-color);
}
&-input:focus-visible:hover + &-fakecheck {
border-color: var(--interaction-norm-hover);
}
}
&-input[aria-invalid='true'] + &-fakecheck {
border-color: var(--signal-danger);
background-color: var(--field-background-color);
color: var(--signal-danger);
}
&-input[disabled] + &-fakecheck {
border-color: var(--field-disabled);
background-color: var(--field-disabled-background-color);
color: var(--field-disabled-text-color);
}
/*
* Checked state
*/
&-input:checked + &-fakecheck {
border-color: var(--interaction-norm);
background-color: var(--interaction-norm);
color: var(--interaction-norm-contrast);
}
&-input:checked:hover + &-fakecheck {
border-color: var(--interaction-norm-hover);
background-color: var(--interaction-norm-hover);
color: var(--interaction-norm-contrast);
}
@supports not selector(:focus-visible) {
&-input:checked:focus + &-fakecheck {
border-color: var(--interaction-norm);
box-shadow: 0 0 0 #{$focus-ring-size} var(--focus-ring);
background-color: var(--interaction-norm);
color: var(--interaction-norm-contrast);
}
&-input:checked:focus:hover + &-fakecheck {
border-color: var(--interaction-norm-hover);
}
}
@supports selector(:focus-visible) {
&-input:checked:focus-visible + &-fakecheck {
border-color: var(--interaction-norm);
box-shadow: 0 0 0 #{$focus-ring-size} var(--focus-ring);
background-color: var(--interaction-norm);
color: var(--interaction-norm-contrast);
}
&-input:checked:focus-visible:hover + &-fakecheck {
border-color: var(--interaction-norm-hover);
background-color: var(--interaction-norm-hover);
}
}
&-input:checked[aria-invalid='true'] + &-fakecheck {
border-color: var(--signal-danger);
background-color: var(--signal-danger);
color: var(--signal-danger-contrast);
}
&-input:checked[disabled] + &-fakecheck,
&-input:checked[disabled]:indeterminate + &-fakecheck {
border-color: var(--field-disabled);
background-color: var(--field-disabled);
color: var(--interaction-norm-contrast);
}
&-input:checked:indeterminate + &-fakecheck {
border-color: var(--field-norm);
background-color: var(--field-background-color);
color: var(--field-text-color);
}
&-input:checked + &-fakecheck &-fakecheck-img,
&-input:indeterminate + &-fakecheck &-fakecheck-img {
transform: scale(1);
transition-delay: 0.1s;
}
}
| 9,437 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base/forms/_field-two.scss | .field-two {
&-container {
position: relative;
display: block;
inline-size: 100%;
max-inline-size: 100%;
cursor: default;
}
&-label-container {
font-weight: var(--font-weight-semibold);
margin-block-end: rem(4);
}
&-label {
cursor: pointer;
}
&-hint {
margin-block-end: rem(1);
text-align: end;
font-size: rem(12);
color: var(--text-weak);
font-weight: var(--font-weight-normal);
}
&-assist {
margin-block-start: rem(4);
font-size: rem(12);
color: var(--text-weak);
&:not(:empty) {
cursor: pointer;
}
&:empty::before {
content: ' ';
white-space: pre;
}
}
&--invalid &-assist {
color: var(--signal-danger);
font-weight: var(--font-weight-semibold);
}
&--invalid .multi-select-container {
border-color: var(--signal-danger);
}
&--warning &-assist {
color: var(--signal-warning);
font-weight: var(--font-weight-semibold);
}
&--warning .multi-select-container {
border-color: var(--signal-warning);
}
&--disabled:not(.field-two--disabled-only-field) {
color: var(--field-disabled-text-color);
}
&--disabled &-label,
&--disabled &-hint,
&--disabled &-assist {
color: inherit;
cursor: default;
}
&--disabled-only-field {
.select,
.input.disabled {
background-color: var(--background-weak);
color: var(--text-hint);
border-color: var(--background-weak);
}
}
&--bigger .input-element,
&--bigger .select {
padding-block: rem(11); // 44px height, same as buttons
}
}
.input {
border-radius: var(--border-radius-md);
border: 1px solid var(--field-norm);
background-color: var(--field-background-color);
color: var(--field-text-color);
transition: 0.15s easing(ease-out-quint), visibility 0s; // Disable visibility transition due to auto focus, e.g. login form
&:hover,
&.hover {
border-color: var(--field-hover);
background-color: var(--field-hover-background-color);
color: var(--field-hover-text-color);
}
&.focus,
&:not(.disabled):focus-within {
border-color: var(--focus-outline);
background-color: var(--field-focus-background-color);
color: var(--field-focus-text-color);
box-shadow: 0 0 0 #{$focus-ring-size} var(--focus-ring);
}
&.error {
border-color: var(--signal-danger);
}
&.disabled {
border-color: var(--field-disabled);
background-color: var(--field-disabled-background-color);
color: var(--field-disabled-text-color);
}
&.unstyled {
&#{&} {
border-color: transparent;
border-radius: 0;
box-shadow: none;
background-color: transparent;
transition: none;
}
}
&-element {
min-block-size: rem(34);
padding-block: em(7); // 36px height with wrapper borders, same as buttons
padding-inline: em(16);
border-radius: var(--border-radius-md);
background: none;
color: inherit;
outline: none;
filter: none; // fixes Firefox autofill color
@include media('<=xsmall') {
padding-inline: em(8);
}
@include media('<=small') {
font-size: max(16px, em($base-font-size));
}
@include media('print') {
font-size: 10pt;
}
.is-drawer-app & {
font-size: em($base-font-size);
}
&:-moz-ui-invalid {
// fixes some Firefox issues with HTML5 validation
box-shadow: none;
}
&[type='search']::-webkit-search-cancel-button {
display: none;
}
select#{&}::-ms-expand {
display: none;
}
}
&-adornment {
color: var(--text-weak);
max-inline-size: 60vw; // arbitrary value to avoid issues in case of super long suffix - domain names suffix on mobile for example
.button:not([class*='button-underline']) {
&:first-child {
margin-inline-start: -0.25em;
}
&:last-child {
margin-inline-end: -0.25em;
}
}
}
&.disabled &-element::placeholder,
&.disabled &-adornment {
color: inherit;
}
& > *:not(:only-child, :first-child) > &-element {
padding-inline-start: 0.5em;
}
& > *:not(:only-child, :last-child) > &-element {
padding-inline-end: 0.5em;
}
}
| 9,438 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base/forms/_field.scss | .placeholder,
::placeholder {
color: var(--field-placeholder-color);
font-style: normal;
opacity: 1; // For Firefox -_-v
}
$field-container: rem(260) !default;
.field-container {
inline-size: $field-container;
max-inline-size: 100%;
display: inline-block;
position: relative;
&.auto {
@extend .auto;
}
}
.field {
block-size: rem($default-height-fields);
min-block-size: rem($default-height-fields); // To ensure minimum size when overriding block-size to 'auto'
@at-root {
details & {
block-size: auto; // crazy chrome bug in details (share drive modal)
}
}
padding-inline: em(16);
padding-block: em(6); // design want 34px height (actually 35 to avoid .5px)
border-radius: var(--border-radius-md);
border: 1px solid var(--field-norm);
background-color: var(--field-background-color);
color: var(--field-text-color);
outline: none;
filter: none; // fixes Firefox autofill color
transition:
0.15s easing(ease-out-quint),
visibility 0s; // Disable visibility transition due to auto focus, e.g. login form
@include media('<=xsmall') {
padding-inline: em(8);
}
@include media('<=small') {
font-size: max(16px, em($base-font-size));
}
.is-drawer-app & {
font-size: em($base-font-size);
}
@at-root {
details & {
block-size: auto;
}
}
&.field--tiny,
&.field--small,
&.field--large {
block-size: auto;
}
&:hover {
border-color: var(--field-hover);
background-color: var(--field-hover-background-color);
color: var(--field-hover-text-color);
}
&:focus,
&.focus,
&:focus-within,
&[aria-expanded='true']:not([aria-controls]) {
border-color: var(--focus-outline);
box-shadow: 0 0 0 #{$focus-ring-size} var(--focus-ring);
background-color: var(--field-focus-background-color);
color: var(--field-focus-text-color);
}
@supports selector(:focus-visible) {
&:focus-visible {
// might seem useless for inputs like text (they DO trigger focus-visible), but will be useful for "fake" select (selectV2) - also separated for old Safaris < 15.3
border-color: var(--focus-outline);
box-shadow: 0 0 0 #{$focus-ring-size} var(--focus-ring);
background-color: var(--field-focus-background-color);
color: var(--field-focus-text-color);
}
}
&[disabled] {
border-color: var(--field-disabled);
background-color: var(--field-disabled-background-color);
color: var(--field-disabled-text-color);
}
&[aria-invalid='true']:not(:focus),
&[aria-invalid='true']:not(.ng-pristine) {
border-color: var(--signal-danger);
}
&.is-valid:not(:focus) {
border-color: var(--signal-success);
}
&.w-full {
inline-size: 100%;
}
&.w-auto {
inline-size: auto;
}
&[type='search'] {
padding-inline-start: 2em;
&::-webkit-search-cancel-button {
display: none;
}
}
&[type='number'] {
padding-inline-end: 0.25em;
}
&.select {
padding-inline-end: rem(6);
&:focus-visible {
&#{&} {
outline: 0; // focus is provided by input fields
}
}
.m-auto {
display: flex;
inline-size: 100%;
}
.mr-2 {
flex: 1 1 0px;
@extend .text-ellipsis;
}
}
}
// Fix autofill state
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
// Trick to replace the background color
box-shadow: 0 0 0 1000px var(--field-background-color) inset !important;
-webkit-text-fill-color: var(--field-text-color) !important;
}
select.field {
background: var(--select-background-color);
background-size: rem(15);
padding-inline: 1em rem(20);
text-overflow: ellipsis;
overflow: hidden;
cursor: pointer;
&::-ms-expand {
display: none;
}
& > optgroup {
background-color: var(--background-weak);
}
}
/* hotfix for Chrome */
select.text-center {
text-align-last: center;
}
textarea.field,
.textarea.field {
block-size: auto;
}
/* errors */
.error-zone {
transition:
transform 0.15s linear,
max-block-size 0.15s linear;
transform: scaleY(1);
transform-origin: top center;
&:empty {
transform: scaleY(0);
}
}
// general rule: if focus is on the field => don't display error yet
.field-icon-container:focus-within + .error-zone,
.field:focus + .error-zone {
transform: scaleY(0);
max-block-size: 0;
}
/* sizes/other modifiers */
.field--tiny {
padding: em(6); // useful for address group
}
.field--small {
padding-block: em(2); // design want 26px height (actually 27 to avoid .5px)
padding-inline: em(16);
}
.field--large {
padding-block: em(10); // design want 42px height (actually 43 to avoid .5px)
padding-inline: em(16);
}
.field--highlight {
border-color: var(--primary);
border-width: 2px;
}
/* field with icon */
.field-icon-container {
@extend .field; // added focus-within inside on field for this fake-field :)
padding: 0;
> .field {
border: 0;
inline-size: calc(100% - 1.5em);
}
&,
&-empty {
// for drive, to keep the same height
min-block-size: calc(#{rem($default-height-fields)} + 2px);
}
&:focus-within {
> .field {
background-color: transparent;
box-shadow: none;
outline: 0;
}
}
}
.dropdown-content .select--inline-caret-option {
display: none;
}
.field-icon-container--invalid:not(:focus-within) {
border-color: var(--signal-danger);
> .field {
border-color: var(--signal-danger);
}
}
/*
* REMOVE THIS IF POSSIBLE
*/
/* @protonmail.com field */
.field--username,
.sign-layout-container .field--username.field--username {
padding-inline-end: var(--padding-right-field-above, 9em);
}
/* special stupid case for signup iframe challenge... not using same styles for the moment */
.sign-layout-container {
.field--username {
padding-block: em(10);
padding-inline: em(16); // design want 42px height (actually 41 to avoid .5px)
}
}
/*
* Specific for input fields
* TO_CHECK if removable
*/
.right-icon,
.right-text,
.left-icon {
inset-block-start: 0;
block-size: #{rem($default-height-fields)} !important; // height of field, need to override `.icon16p`
align-content: center;
}
.right-icon {
inset-inline-end: 0.5em;
}
.right-text {
inset-inline-end: 1em;
&-inner {
padding-block-end: rem(2);
}
}
.left-icon {
inset-inline-start: 0.5em;
}
| 9,439 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base/forms/_index.scss | /* stylelint-disable */
@import
'field',
'field-two',
'textarea',
'checkbox',
'radio',
'toggle',
'label';
| 9,440 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base/forms/_label.scss | /* label */
// $label-width defined in global vars
.label {
padding-block-start: 0.5em;
inline-size: var(--label-width, $label-width);
padding-inline-end: 0.5em;
max-inline-size: 100%;
flex-shrink: 0;
&.pt-0 {
padding-block-start: 0;
}
&.auto {
inline-size: auto;
}
&--small {
font-size: rem(12);
line-height: 2;
}
}
// case for forms labelled only with icons (calendar popover, etc.)
.form--icon-labels .label {
--label-width: 2.4em;
@include media('<=xsmall') {
--label-width: 1.75em;
}
}
| 9,441 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base/forms/_radio.scss | .radio {
@extend .sr-only;
&-fakeradio {
@extend .checkbox-fakecheck;
border-radius: 50%;
&::before {
content: "";
inline-size: em(10);
block-size: em(10);
margin: auto;
border-radius: 50%;
background: transparent;
transform: scale(0);
transition: 0.15s easing(ease-out-cubic),
0.15s transform easing(ease-out-back);
}
}
&:hover + &-fakeradio {
border-color: var(--interaction-norm);
background-color: var(
--field-focus-background-color,
var(--background-norm)
);
}
@supports not selector(:focus-visible) {
&:focus + &-fakeradio {
border-color: var(--interaction-norm);
box-shadow: 0 0 0 #{$focus-ring-size} var(--focus-ring);
background-color: var(--field-focus-background-color);
color: var(--field-focus-text-color);
}
&:focus:hover + &-fakeradio {
border-color: var(--interaction-norm-hover);
}
}
@supports selector(:focus-visible) {
&:focus-visible + &-fakeradio {
border-color: var(--interaction-norm);
box-shadow: 0 0 0 #{$focus-ring-size} var(--focus-ring);
background-color: var(--field-focus-background-color);
color: var(--field-focus-text-color);
}
&:focus-visible:hover + &-fakeradio {
border-color: var(--interaction-norm-hover);
}
}
&[aria-invalid="true"] + &-fakeradio {
border-color: var(--signal-danger);
background-color: var(--field-background-color);
}
&[disabled] + &-fakeradio {
border-color: var(--field-disabled);
background-color: var(
--field-disabled-background-color,
var(--background-norm)
);
}
/*
* Checked state
*/
&:checked + &-fakeradio {
&::before {
transform: scale(1);
background-color: var(--interaction-norm);
}
}
@supports not selector(:focus-visible) {
&:checked:focus:hover + &-fakeradio {
border-color: var(--interaction-norm-hover);
&::before {
background-color: var(--interaction-norm-hover);
}
}
}
@supports selector(:focus-visible) {
&:checked:focus-visible:hover + &-fakeradio {
border-color: var(--interaction-norm-hover);
&::before {
background-color: var(--interaction-norm-hover);
}
}
}
&:checked[aria-invalid="true"] + &-fakeradio::before {
background-color: var(--signal-danger);
}
&:checked[disabled] + &-fakeradio::before {
background-color: var(--field-disabled);
}
/*
* Modifiers
*/
&--ontop &-fakeradio {
margin-block-start: 0;
}
}
| 9,442 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base/forms/_textarea.scss | .textarea {
min-block-size: rem(36);
padding-block: em(7); // 36px height with wrapper borders, same as buttons
padding-inline: em(16);
border: 1px solid var(--field-norm);
border-radius: var(--border-radius-md);
background-color: var(--field-background-color);
color: var(--field-text-color);
outline: none;
filter: none; // fixes Firefox autofill color
transition: 0.15s easing(ease-out-quint), block-size 0s;
@include media('<=xsmall') {
padding-inline: em(8);
}
@include media('<=small') {
font-size: max(16px, em($base-font-size));
}
.is-drawer-app & {
font-size: em($base-font-size);
}
&:hover,
&.hover {
border-color: var(--field-hover);
background-color: var(--field-hover-background-color);
color: var(--field-hover-text-color);
}
&:focus,
&.focus {
border-color: var(--focus-outline);
box-shadow: 0 0 0 #{$focus-ring-size} var(--focus-ring);
background-color: var(--field-focus-background-color);
color: var(--field-focus-text-color);
}
&.error {
border-color: var(--signal-danger);
}
&.disabled {
border-color: var(--field-disabled);
background-color: var(--field-disabled-background-color);
color: var(--field-disabled-text-color);
pointer-events: none;
&::placeholder {
color: inherit;
}
}
&:-moz-ui-invalid {
// fixes some Firefox issues with HTML5 validation
box-shadow: none;
}
&.unstyled {
&#{&} {
border-color: transparent;
border-radius: 0;
box-shadow: none;
background-color: transparent;
transition: none;
}
}
}
| 9,443 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base | petrpan-code/ProtonMail/WebClients/packages/styles/scss/base/forms/_toggle.scss | @use 'sass:math';
$toggle-width: em(40) !default;
$toggle-width-button: em(24) !default;
.toggle-label {
max-block-size: $toggle-width-button;
}
.toggle-container {
&#{&} {
// specificity issue with flex helpers
position: relative;
z-index: 0; // Create stacking context
display: inline-flex;
inline-size: $toggle-width;
min-block-size: $toggle-width-button;
max-block-size: $toggle-width-button;
border-radius: #{math.div($toggle-width, 2)};
background-color: var(--background-norm);
flex-shrink: 0;
}
&::before {
content: '';
position: absolute;
inset-block: 0;
inset-inline-start: 0;
z-index: 2;
inline-size: #{$toggle-width-button};
transform: translateX(0);
border-radius: $toggle-width-button;
background-color: var(--field-norm);
transition: transform 0.25s easing(ease-out-back), background-color 0.25s easing(ease-out-cubic);
}
&::after {
content: '';
position: absolute;
inset-block: 0;
inset-inline-start: 0;
inline-size: $toggle-width;
z-index: 1;
border-radius: #{math.div($toggle-width, 2)};
border: 1px solid var(--field-norm);
transition: 0.15s easing(ease-out-cubic);
}
& > .toggle-container-text {
position: absolute;
inset-block: 0;
z-index: 2;
display: inline-flex;
border-radius: $toggle-width-button;
inline-size: $toggle-width-button;
&:first-child {
z-index: 3;
inset-inline-start: 0;
color: var(--text-norm);
}
&:last-child {
z-index: 1;
inset-inline-end: 0;
color: var(--interaction-norm-contrast);
}
.toggle-container-img {
margin: auto;
opacity: 0;
transition: opacity 0.15s easing(ease-out-cubic);
}
.toggle-container-loader {
position: absolute;
inset: 0;
z-index: 1;
display: flex;
color: var(--interaction-norm-contrast);
animation: 0.25s easing(ease-out-cubic) forwards anime-toggle-container-loader-fade-in;
@keyframes anime-toggle-container-loader-fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
}
.circle-loader {
margin: auto;
font-size: em(16);
}
}
// will be done later
// &--with-icons {
// }
/**
* states
*/
// checked
&--checked {
.toggle-container-text {
&:first-child {
z-index: 1;
}
&:last-child {
z-index: 3;
.toggle-container-img {
opacity: 1;
}
}
}
&::before {
transform: translateX(#{$toggle-width - $toggle-width-button});
@at-root {
[dir='rtl'] & {
transform: translateX(-#{$toggle-width - $toggle-width-button});
}
}
background-color: var(--interaction-norm);
}
}
// disabled
&--disabled {
cursor: default;
opacity: 0.5;
// disabled but not loading
&:not(.toggle-container--loading) {
box-shadow: none;
background-color: var(--background-strong);
&::before {
background-color: var(--field-norm);
}
&.toggle-container--checked {
&::before {
background-color: var(--interaction-norm);
}
}
}
// disabled loading
&.toggle-container--loading {
.toggle-container-text .toggle-container-img {
opacity: 0;
}
&:not(.toggle-container--checked) {
&::before {
background-color: var(--field-hover);
}
}
&.toggle-container--checked {
&::before {
background-color: var(--interaction-norm-hover);
}
}
}
}
&:not(.toggle-container--disabled) {
&:hover {
&::before {
background-color: var(--field-hover);
}
}
@at-root {
.toggle-container:has(:hover) & {
&::before {
background-color: var(--field-hover);
}
}
}
@supports not selector(:focus-visible:has(a, b)) {
&:focus-within {
&::after {
border-color: var(--focus-outline);
box-shadow: 0 0 0 #{$focus-ring-size} var(--focus-ring);
}
}
}
@supports selector(:focus-visible:has(a, b)) {
&:has(*:focus-visible) {
&::after {
border-color: var(--focus-outline);
box-shadow: 0 0 0 #{$focus-ring-size} var(--focus-ring);
}
}
}
&.toggle-container--checked:hover {
&::before {
background-color: var(--interaction-norm-hover);
}
}
@at-root {
.toggle-container:has(:hover) .toggle-container--checked.toggle-container--checked {
&::before {
background-color: var(--interaction-norm-hover);
}
}
}
&.toggle-container--loading {
.toggle-container-text .toggle-container-img {
opacity: 0;
}
&:not(.toggle-container--checked) {
&::before {
background-color: var(--field-hover);
}
}
&.toggle-container--checked {
&::before {
background-color: var(--interaction-norm-hover);
}
}
}
}
/**
* Sizes
*/
&--small {
margin-block-start: 0.25em;
font-size: 0.8em;
.toggle-container-img {
inline-size: rem(13);
block-size: rem(13);
}
}
}
| 9,444 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_action-card.scss | .action-card {
transition: 0.15s easing(ease-out-quint);
> * + * {
margin-inline-start: rem(16);
}
&:hover,
&:focus {
background-color: var(--interaction-default-hover);
}
}
| 9,445 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_alert.scss | $alert-block-border-width: 3px !default;
[class*='alert-block'] {
padding-block: 0.2em;
padding-inline: 1.2em;
color: var(--text-norm);
border-inline-start-width: $alert-block-border-width;
border-inline-start-style: solid;
overflow-wrap: break-word;
}
@each $color in (info, danger, warning, success) {
$class: '';
@if $color != 'info' {
$class: '--' + $color;
}
.alert-block#{$class} {
border-color: var(--signal-#{$color});
}
}
| 9,446 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_app-infos.scss | .app-infos {
&-fake-meter {
block-size: em(4);
}
&-storage,
&-version {
color: var(--text-weak);
}
a#{&}-storage,
&-version {
&:hover,
&:focus {
color: var(--text-norm);
}
}
&-compact &-name {
@extend .sr-only;
}
}
| 9,447 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_app-link.scss | .aside-link {
border-radius: 50%;
inline-size: rem(32);
block-size: rem(32);
padding: rem(7);
background: var(--interaction-weak);
color: var(--text-norm);
&:hover,
&:focus {
background: var(--interaction-weak-hover);
color: var(--primary);
}
&:active,
&[aria-current='true'] {
background: var(--interaction-weak-active);
color: var(--primary);
}
&-icon {
inline-size: rem(17);
block-size: rem(17);
fill: currentcolor;
}
}
| 9,448 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_apps-dropdown.scss | .apps-dropdown {
&-button {
@extend .interactive;
border-radius: var(--border-radius-md);
border: 1px solid transparent;
margin-inline-end: rem(-4);
inline-size: rem(36);
block-size: rem(36);
color: var(--text-weak);
&:hover {
color: var(--text-norm);
}
}
.dropdown-content ul {
display: grid;
grid-template-columns: repeat(var(--apps-dropdown-repeat), 1fr);
gap: var(--space-6);
justify-items: center;
}
.apps-dropdown-app-name,
.apps-dropdown-logo-wrapper {
transition: 0.25s ease;
}
.apps-dropdown-link {
&:hover {
.apps-dropdown-app-name {
color: var(--text-norm);
}
.apps-dropdown-logo-wrapper {
background-color: var(--interaction-default-hover);
}
}
&,
&:hover,
&:focus,
&:active {
&[aria-current] {
pointer-events: auto;
background-color: transparent;
}
}
@supports not selector(:focus-visible:has(a, b)) {
&:focus,
&:focus-within {
.apps-dropdown-logo-wrapper {
border-color: var(--focus-outline);
box-shadow: 0 0 0 #{$focus-ring-size} var(--focus-ring);
color: var(--text-norm);
&:hover {
background-color: var(--interaction-default-hover);
}
}
}
}
@supports selector(:focus-visible:has(a, b)) {
&:focus-visible,
&:has(*:focus-visible) {
.apps-dropdown-logo-wrapper {
border-color: var(--focus-outline);
box-shadow: 0 0 0 #{$focus-ring-size} var(--focus-ring);
color: var(--text-norm);
&:hover {
background-color: var(--interaction-default-hover);
}
}
}
}
}
}
| 9,449 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_autocomplete.scss | .autocomplete-suggestions {
position: absolute;
z-index: -1;
inset-block-start: calc(100% - 2px);
inset-inline: 0.35em;
min-block-size: 80%;
max-block-size: calc(5 * 2.3em);
overflow: scroll;
background-color: var(--background-norm);
box-shadow: var(--shadow-lifted);
color: var(--text-norm);
border: 1px solid var(--border-norm);
transform: translateY(-1.5em);
opacity: 0;
transition: transform 100ms ease-in, opacity 100ms ease-out 20ms;
&,
div:last-child {
border-end-start-radius: var(--border-radius-md);
border-end-end-radius: var(--border-radius-md);
}
div {
@extend .interactive-pseudo;
&.selected {
background-color: var(--interaction-norm);
color: var(--interaction-norm-contrast);
pointer-events: none;
}
}
.button.button-link {
color: inherit;
}
&--open {
transform: translateY(0);
opacity: 1;
}
}
.autocomplete-input {
z-index: 1;
}
| 9,450 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_badges.scss | [class*='badge-label'] {
@extend .text-uppercase;
@extend .inline-flex;
font-size: rem(11); // to be sure this is the same height everywhere
padding-inline: em(8, 11);
line-height: rem(22);
border-radius: var(--border-radius-full);
}
@each $color in (primary, danger, warning, success, info) {
$prefix: '';
@if $color != 'primary' {
$prefix: 'signal-';
}
.badge-label-#{$color} {
background-color: var(--#{$prefix + $color});
color: var(--#{$prefix + $color}-contrast);
}
}
@each $color in (norm, weak, strong) {
.badge-label-#{$color} {
background-color: var(--background-#{$color});
}
}
| 9,451 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_breadcrumb.scss | .breadcrumb {
&-container {
@extend .border;
}
&-button {
padding: 0.4em;
opacity: 0.3;
color: inherit;
&[disabled][aria-current='step'] {
font-weight: var(--font-weight-bold);
opacity: 1;
color: inherit;
}
}
}
| 9,452 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_button-account.scss | .button-account {
&-container {
border: 1px solid var(--border-norm); // inconsistent with borders...
max-block-size: 50vh;
@include media('<=small') {
max-block-size: none;
}
&-inner {
border-inline-end: 1px solid var(--border-norm); // inconsistent with borders...
}
}
}
| 9,453 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_button-group.scss | @use 'sass:math';
.button-group {
@extend .inline-flex;
@extend .flex-nowrap;
@extend .flex-align-items-stretch;
border-radius: var(--border-radius-md);
background-color: var(--background-norm);
&--no-bg-color {
background-color: transparent;
}
vertical-align: middle;
&-item {
&.is-selected {
pointer-events: none;
}
}
/*
* Solid variant
*/
// medium item
&[class*='button-group-solid'] &-item {
padding-inline: em(12);
&:not(:first-child) {
border-start-start-radius: 0;
border-end-start-radius: 0;
}
&:not(:last-child) {
border-start-end-radius: 0;
border-end-end-radius: 0;
}
}
// small item
&-small[class*='button-group-solid'] &-item {
padding-inline: em(7);
}
// large item
&-large[class*='button-group-solid'] &-item {
padding-inline: em(17, 16);
}
/*
* Ghost variant
*/
// medium vr
&[class*='button-group-ghost'] .vr {
margin-block: em(6);
margin-inline: em(3);
}
// small vr
&-small[class*='button-group-ghost'] .vr {
margin-block: em(4);
margin-inline: em(3);
}
// large vr
&-large[class*='button-group-ghost'] .vr {
margin-block: em(8);
margin-inline: em(3);
}
// medium item
&[class*='button-group-ghost'] &-item {
padding-inline: em(10);
}
// small item
&-small[class*='button-group-ghost'] &-item {
padding-inline: em(5);
}
// large item
&-large[class*='button-group-ghost'] &-item {
padding-inline: em(15);
}
/*
* Outline variant
*/
// medium
&[class*='button-group-outline'] {
padding: em(3);
border: 1px solid var(--button-group-border-color, transparent);
.vr {
margin-block: em(2);
margin-inline: em(3);
}
}
// medium item
&[class*='button-group-outline'] &-item {
padding-block: em(3);
padding-inline: em(8);
border-radius: var(--border-radius-sm);
&.button-for-icon {
padding: em(6);
}
&[aria-expanded='true']:not([aria-controls]) {
border-color: transparent;
}
&[disabled],
&.is-disabled {
&:not([aria-busy='true']) {
background-color: var(--button-default-background-color, transparent);
}
}
}
// small
&-small[class*='button-group-outline'] {
padding: em(2);
.vr {
margin: em(2);
}
}
// small item
&-small[class*='button-group-outline'] &-item {
padding-block: 0;
padding-inline: em(4);
&.button-for-icon {
padding: em(2);
}
}
// large
&-large[class*='button-group-outline'] {
padding: em(4);
.vr {
margin-block: em(2);
margin-inline: em(4);
}
}
// large item
&-large[class*='button-group-outline'] &-item {
padding-block: em(4, 16);
padding-inline: em(12, 16);
&.button-for-icon {
padding-block: em(7, 16);
padding-inline: em(7, 16);
}
}
}
/*
* Button group color variants
*/
@each $color in (norm, weak) {
// Initialize namespace
$group: 'interaction';
.button-group-solid-#{$color},
.button-group-outline-#{$color},
.button-group-ghost-#{$color} {
// For vertical rule
--border-norm: var(--#{dash-join($group, $color, 'major-1')});
}
.button-group-solid-#{$color} {
.button-group-item.is-selected:not([disabled], .is-disabled) {
background-color: var(--#{dash-join($group, $color, 'major-2')});
}
}
.button-group-outline-#{$color} {
--button-group-border-color: var(--#{dash-join($group, $color, 'major-1')});
@supports not selector(:focus-visible) {
.button-group-item:not(:focus) {
border-color: transparent;
}
}
@supports selector(:focus-visible) {
.button-group-item:not(:focus-visible) {
border-color: transparent;
}
}
}
.button-group-outline-#{$color},
.button-group-ghost-#{$color} {
.button-group-item.is-selected:not([disabled], .is-disabled) {
background-color: var(--#{dash-join($group, if($color == 'weak', 'norm', $color))});
color: var(--#{dash-join($group, if($color == 'weak', 'norm', $color), 'contrast')});
}
}
}
| 9,454 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_circle-chart.scss | // be careful to udpate SVG if you want to update this value
$stroke-width: 3px !default;
// this component is used for VPN
// and for the moment on Angular/React sidebar
.circle-chart {
&-background {
stroke: var(--background-strong);
stroke-width: $stroke-width;
fill: transparent;
&--bigger & {
stroke: var(--background-weak);
}
}
&-circle {
stroke: var(--signal-success);
stroke-width: $stroke-width;
fill: transparent;
animation: anime-circle-chart-fill 2s reverse;
transform: rotate(-90deg);
transform-origin: center;
}
&-percent {
fill: var(--text-norm);
}
&-info {
color: var(--text-weak);
}
.circle-bar--medium &-circle {
stroke: var(--signal-warning);
}
.circle-bar--full &-circle {
stroke: var(--signal-danger);
}
}
@keyframes anime-circle-chart-fill {
to {
stroke-dasharray: 0 100;
}
}
| 9,455 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_collapsing-breadcrumb.scss | .collapsing-breadcrumbs {
display: flex;
min-block-size: 2.5em;
padding-block: var(--space-1);
padding-inline-start: var(--space-0);
margin: var(--space-0);
flex-wrap: nowrap;
align-items: center;
}
.collapsing-breadcrumb {
display: flex;
flex: 0 1 auto;
flex-wrap: nowrap;
&:not(#{&}--no-shrink) {
min-inline-size: 1.5em;
}
}
.collapsed-breadcrumb-active button {
background-color: var(--button-hover-background-color);
color: var(--button-hover-text-color);
}
| 9,456 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_color-selector.scss | .color-selector {
&-container {
--color-item-size: #{em(44)};
--color-grid-items: 5;
display: grid;
gap: em(8);
justify-content: center;
grid-template-columns: repeat(var(--color-grid-items), var(--color-item-size));
&-inline {
justify-content: space-between;
}
}
&-input[type='radio'] {
position: absolute;
opacity: 0;
}
&-item {
position: relative;
display: flex;
block-size: var(--color-item-size);
inline-size: var(--color-item-size);
overflow: hidden;
border-radius: 50%;
background-color: var(--color-selector-base);
cursor: pointer;
transition: 0.15s easing(ease-out-quint);
&::before {
content: '';
position: absolute;
inset: 0;
border-radius: 50%;
z-index: 1;
border: em(3) solid transparent;
transition: inherit;
}
&::after {
content: '';
display: block;
inline-size: em(12);
block-size: em(12);
border-radius: 50%;
margin: auto;
background-color: transparent;
transition: inherit;
}
&:hover,
&:focus-within {
&::before {
border-color: var(--color-selector-strong);
}
}
&.is-selected {
&::before {
border-color: var(--color-selector-intense);
}
&::after {
background-color: white;
}
}
}
}
| 9,457 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_dropdown.scss | .dropdown {
/*
The border is set on the parent, but the max height is set on a child container.
This breaks the available size computation because the parent element will be +2 pixels larger than the available max height.
This causes an infinite loop in the floating ui library. To prevent that, border size is subtracted in a calc in the max height set in .dropdown-content.
*/
$border-size: 1;
--custom-max-width: 20em;
--custom-max-height: 30em;
--min-width: 10em;
--max-width: min(var(--custom-max-width, 100vw), 100vw);
--max-height: min(var(--custom-max-height, 100vh), 100vh);
position: fixed;
z-index: $layer-modals;
// NOTE: Don't use logical properties. RTL positioning is done in JS.
/* stylelint-disable */
top: var(--top);
left: var(--left);
/* stylelint-enable */
transform: scale(1);
border-radius: var(--border-radius-md);
box-shadow: var(--shadow-lifted);
border: #{$border-size}px solid var(--border-norm);
background-color: var(--background-norm);
color: var(--text-norm);
animation: 0.15s easing(ease-out-cubic) both anime-dropdown-in-mouse;
@keyframes anime-dropdown-in-mouse {
from {
transform: scale(0.75);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
}
// Out animation
&.is-dropdown-out {
animation-name: anime-dropdown-out-mouse;
@keyframes anime-dropdown-out-mouse {
from {
transform: scale(1);
opacity: 1;
}
to {
transform: scale(0.75);
opacity: 0;
}
}
}
@include transform-origins;
@include media('touch', '<=small') {
&.adaptive-for-touch-screens {
inset: 0;
display: flex;
padding-block: 15%;
padding-inline: 25%;
overflow: hidden;
transform: none;
flex-flow: column nowrap;
justify-content: center;
align-items: center;
border-radius: initial;
box-shadow: none;
border: none;
background-color: var(--backdrop-norm);
animation-name: anime-dropdown-in-touch;
@keyframes anime-dropdown-in-touch {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
// Out animation
&.is-dropdown-out {
animation-name: anime-dropdown-out-touch;
@keyframes anime-dropdown-out-touch {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
}
}
}
@include media('touch', '<=xsmall') {
&.adaptive-for-touch-screens {
padding-inline: 10%;
}
}
/* Backdrop button, meant to override 'autoClose' option on mobile */
&-backdrop {
display: none;
}
@include media('touch', '<=small') {
&.adaptive-for-touch-screens &-backdrop {
position: absolute;
inset: 0;
z-index: 0;
display: block;
inline-size: 100%;
block-size: 100%;
margin: 0;
padding: 0;
border: none;
outline: none;
background: none;
}
}
/* Scrollable frame inside the dropdown */
&-content {
inline-size: var(--width);
block-size: var(--height);
min-inline-size: min(var(--min-width, 1.5em), 100vw);
min-block-size: min(var(--min-height, 1em), 100vh);
max-inline-size: calc(min(var(--available-width, var(--max-width)), var(--max-width)) - #{$border-size * 2}px);
max-block-size: calc(min(var(--available-height, var(--max-height)), var(--max-height)) - #{$border-size * 2}px);
overflow: auto;
border-radius: var(--border-radius-md);
background-color: var(--background-norm);
background-image: radial-gradient(farthest-side at 50% 0, var(--backdrop-norm), transparent),
radial-gradient(farthest-side at 50% 100%, var(--backdrop-norm), transparent);
background-position: 50% 0, 0 100%;
background-size: calc(100% - #{rem(20)}) rem(3);
background-repeat: no-repeat;
&::before,
&::after {
content: '';
position: relative;
z-index: 1;
display: block;
block-size: rem(3);
flex: 0 0 rem(3);
background: var(--background-norm);
}
}
@include media('touch', '<=small') {
&.adaptive-for-touch-screens &-content {
position: relative;
z-index: 1;
inline-size: 100%;
max-inline-size: initial;
max-block-size: initial;
box-shadow: var(--shadow-lifted);
transition: transform 0.1s ease-out;
animation: anime-dropdown-content-scale-in 0.15s ease-out both;
@keyframes anime-dropdown-content-scale-in {
from {
transform: scale(0.8);
}
to {
transform: scale(1);
}
}
}
&.adaptive-for-touch-screens.is-dropdown-out &-content {
animation-name: anime-dropdown-content-scale-out;
@keyframes anime-dropdown-content-scale-out {
from {
transform: scale(1);
}
to {
transform: scale(0.8);
}
}
}
}
&-item {
&-button,
&-link {
@extend .interactive-pseudo-inset;
position: relative;
&::after {
z-index: 2;
}
&,
&:hover,
&:focus-visible,
&:active {
color: var(--text-norm);
text-decoration: none;
}
}
&--delete {
&,
&:hover,
&:focus {
.dropdown-item-button {
color: var(--signal-danger);
}
}
}
& [aria-current='true'],
& &--is-selected {
// Specificity -_-v
&,
&:hover,
&:focus,
&:active {
background-color: var(--interaction-norm);
color: var(--interaction-norm-contrast);
pointer-events: none;
}
@supports not selector(:focus-visible) {
&:focus {
z-index: 0;
background-color: unset;
&::after {
background-color: var(--interaction-norm);
box-shadow: 0 0 0 #{$focus-ring-size} var(--focus-ring);
z-index: -1;
}
}
}
@supports selector(:focus-visible) {
&:focus-visible {
z-index: 0;
background-color: unset;
&::after {
background-color: var(--interaction-norm);
box-shadow: 0 0 0 #{$focus-ring-size} var(--focus-ring);
z-index: -1;
}
}
}
}
// Dropdown item container which contains several elements
// Created for specific use case in the mail composer
&-container {
@extend .interactive;
&,
&:hover,
&:focus-visible,
&:active {
color: var(--text-norm);
text-decoration: none;
}
&.active {
background-color: var(--interaction-default-hover);
}
&.dropdown-item--is-selected {
&,
&:hover,
&:focus,
&:active {
pointer-events: all;
}
}
.dropdown-item-button {
background-color: transparent;
&:hover,
&:focus,
&:active {
background-color: transparent;
}
}
}
}
&-item-hr {
block-size: 0;
box-sizing: content-box;
border-block-start: 1px solid var(--border-norm);
}
&-search {
position: sticky;
inset-block-start: 0;
padding: 1rem;
background-color: var(--background-norm);
box-shadow: var(--shadow-norm);
z-index: 1;
&-no-result {
color: var(--text-weak);
padding-block: rem(40);
padding-inline: rem(10);
letter-spacing: rem(0.25);
}
}
&--is-searchable {
.dropdown-content::before {
content: none;
}
}
}
| 9,458 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_editable-section.scss | .editable-section-container {
display: inline-grid;
grid-template-columns: min-content minmax(5em, 1fr);
& > .border-bottom {
padding-block-end: 1em;
}
& > :not(.border-bottom) {
margin-block-start: 1em;
}
// not enough place
&--size-tablet {
@include media('<=#{em(780, 16)}') {
--label-width: 15em;
}
}
@include media('<=small') {
grid-template-columns: auto;
gap: 0.5em;
& > .pb-0 {
padding-block-end: 0;
}
& > :not(.border-bottom) {
margin-block-start: 0;
}
}
}
| 9,459 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_ellipsis-loader.scss | .ellipsis-loader {
display: inline-block;
inline-size: 1.3em;
font-family: $font-family-monospace;
letter-spacing: -0.2em;
vertical-align: baseline;
text-align: start;
white-space: pre;
pointer-events: none;
&::before {
content: ' ';
animation: anime-ellipsis-loading 1s steps(1, start) infinite;
}
}
@keyframes anime-ellipsis-loading {
0% {
content: ' ';
}
25% {
content: '.';
}
50% {
content: '..';
}
75% {
content: '...';
}
}
| 9,460 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_fab.scss | .fab {
&#{&} {
// Specificity -_-v
position: fixed;
inset-block-end: em(64);
inset-inline-end: var(--right, 1.6em);
z-index: $layer-floating-action-buttons;
block-size: rem(56);
inline-size: rem(56);
border-radius: 50%;
padding: 0.5em;
box-shadow: var(--shadow-lifted);
transition: inset-block-end 0.5s easing(ease-out-quart);
&--inBackground {
z-index: 0;
}
@include media('>small') {
inset-block-end: 1em;
}
}
}
| 9,461 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_file-preview.scss | .file-preview {
position: fixed;
inset: 0;
z-index: $layer-previewer;
display: flex;
flex: 1 1 auto;
flex-direction: column;
background-color: var(--file-preview-background-color, var(--background-norm));
color: var(--file-preview-text-color);
&-container {
position: relative;
display: flex;
inline-size: 100%;
overflow: auto;
flex-flow: column wrap;
flex: 1 1 auto;
}
&-filename {
max-inline-size: calc(50% - 5em);
}
&-text {
inline-size: 100%;
max-inline-size: rem(800);
padding: 2rem;
margin-inline: auto;
margin-block: var(--space-1) var(--space-8); // So the highlight in case of textarea is fully visible on the top too.
background-color: whitesmoke;
color: black;
flex: 1 1 auto;
word-break: break-word;
white-space: pre-wrap;
}
&-image {
position: absolute;
inset-block-start: 0;
inset-inline-start: 0;
margin: auto;
max-inline-size: none;
object-fit: contain;
&-out {
animation: anime-image-preview-out 0.2s ease-in-out forwards;
}
}
&-loading {
position: absolute;
inset-block-end: 0;
block-size: 2.5em;
}
}
@keyframes anime-image-preview-out {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
| 9,462 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_full-loader.scss | // Init values
$animation-duration: 3s !default;
$second-circle-time-offset: 0.125s !default;
// We need to adjust animation for each size.
$stroke-map: (
default: 4.5,
bold: 6.5,
xbold: 15,
) !default;
.full-loader {
// We need a different duration than each circle for the whole loader
// to have an animation that seems visually "random", so here, duration +20% and ease.
animation: anime-loader-rotation #{$animation-duration * 1.2} ease-in-out infinite;
will-change: transform;
@keyframes anime-loader-rotation {
from {
transform: rotate(0);
}
to {
transform: rotate(360deg);
}
}
&-circle {
transform-origin: 50%;
fill: none;
stroke: currentcolor;
stroke-width: map-get($stroke-map, default);
will-change: transform;
animation: $animation-duration linear infinite;
&:nth-of-type(1) {
animation-name: anime-loader-orbit-x;
}
&:nth-of-type(2) {
animation-name: anime-loader-orbit-y;
animation-delay: $second-circle-time-offset;
}
}
@each $name, $value in $stroke-map {
@if $name != 'default' {
&.is-#{$name} &-circle {
stroke-width: $value;
&:nth-of-type(1) {
animation-name: #{'anime-loader-orbit-x-' + $name};
}
&:nth-of-type(2) {
animation-name: #{'anime-loader-orbit-y-' + $name};
}
}
}
@each $axis in (x, y) {
@keyframes #{'anime-loader-orbit-' + $axis + if($name == 'default', '', '-' + $name)} {
0% {
transform: #{'rotate' + $axis + '(0)'};
stroke-width: $value;
}
25% {
stroke-width: $value * 2;
}
50% {
stroke-width: $value;
}
75% {
stroke-width: $value * 2;
}
100% {
transform: #{'rotate' + $axis + '(360deg)'};
stroke-width: $value;
}
}
}
}
}
| 9,463 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_index.scss | /* stylelint-disable */
/* Components | Alphabetical order */
@import
'action-card',
'app-infos',
'app-link',
'apps-dropdown',
'autocomplete',
'badges',
'alert',
'breadcrumb',
'button-account',
'button-group',
'circle-chart',
'collapsing-breadcrumb',
'color-selector',
'dropdown',
'editable-section',
'ellipsis-loader',
'fab',
'file-preview',
'full-loader',
'input-button',
'item-initials',
'label-stack',
'meter-bar',
'minicalendar',
'modal',
'multi-select',
'notification',
'overview-grid',
'pill',
'progress-bar',
'scrollshadow',
'select',
'simple-table',
'spotlight',
'star-button',
'stepdots',
'sticky-title',
'tabs',
'topnav',
'treeview',
'user-dropdown',
'wizard';
| 9,464 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_input-button.scss | .input-button.button {
--button-default-border-color: var(--field-norm);
--button-default-background-color: var(--background-norm);
--button-default-text-color: var(--text-norm);
--button-hover-border-color: var(--field-hover);
--button-hover-background-color: var(--interaction-default-hover);
--button-hover-text-color: var(--text-norm);
--button-active-border-color: var(--interaction-norm);
--button-active-background-color: var(--interaction-default-active);
--button-active-text-color: var(--text-norm);
inline-size: em(36);
padding: em(7); // Same as inputs
}
.input-button-input {
&:focus + .input-button {
--button-default-background-color: var(--interaction-default-hover);
--button-default-text-color: var(--text-norm);
}
&:checked + .input-button {
--button-default-border-color: var(--interaction-norm);
--button-default-background-color: var(--interaction-norm);
--button-default-text-color: var(--interaction-norm-contrast);
--button-hover-border-color: var(--interaction-norm-hover);
--button-hover-background-color: var(--interaction-norm-hover);
--button-hover-text-color: var(--interaction-norm-contrast);
--button-active-border-color: var(--interaction-norm-active);
--button-active-background-color: var(--interaction-norm-active);
--button-active-text-color: var(--interaction-norm-contrast);
}
&:checked:focus + .input-button {
--button-default-background-color: var(--interaction-norm-hover);
--button-default-text-color: var(--interaction-norm-contrast);
}
}
| 9,465 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_item-initials.scss | .item-icon {
inline-size: rem($conversation-icon-size);
block-size: rem($conversation-icon-size);
font-size: rem(12);
background-color: var(--background-strong);
}
.item-sender-image {
background-color: white; // background color forced to display sender image logo
transform: scale(1.0); // crazy fix for bleeding bg color on radius.
}
| 9,466 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_label-stack.scss | @use 'sass:math';
.label-stack {
--item-wide: 10em;
--item-narrow: 1.5em;
--item-scale: #{math.div(2, 3)}; // 0.666…
font-size: em(12);
font-weight: var(--font-weight-semibold); // Overrides when unread email context
&.max-w-full {
--item-wide: 100%;
}
&-item,
&-overflow-count {
border-radius: 1em;
line-height: 1.5;
}
&-item {
min-inline-size: var(--item-narrow);
max-inline-size: var(--item-wide);
margin: 0.125em;
overflow: hidden;
background-color: var(--label-bg, var(--background-strong));
color: white;
&-inner {
padding-inline: em(8, 12);
border-radius: inherit;
text-align: start;
&.with-delete {
padding-inline-end: em(4, 12);
}
}
&-inner:not(#{&}-button) &-text {
cursor: default;
user-select: all;
}
&-button {
transition: 0.15s easing(ease-out-quint);
&:hover,
&:focus-visible {
background-color: var(--label-bg-hover, var(--background-strong));
}
&:active {
background-color: var(--label-bg-active, var(--background-strong));
}
}
&-delete {
padding-inline: 0 em(2, 12);
& &-icon {
display: block;
margin: auto;
}
}
}
&-overflow-count {
background-color: var(--background-strong);
margin-inline-start: 0.125em;
cursor: pointer;
& > * {
display: block;
padding-inline: 0.25em 0.375em;
color: var(--text-norm);
}
}
&:not(.is-stacked) {
margin: -0.125em;
}
&.is-stacked {
overflow: hidden;
align-items: center;
flex-wrap: nowrap;
.label-stack-item {
overflow: hidden;
margin: 0;
transition: transform 0.1s 0.2s easing(ease-out-quart), max-inline-size 0.2s 0s easing(ease-out-quart);
&:hover,
&:focus-within,
&:first-child {
transition-delay: 0s, 0.075s;
}
&:not(:first-child) {
--button-opacity: 0;
max-inline-size: var(--item-narrow);
transform: scale(var(--item-scale));
}
&-inner,
&-delete-icon {
opacity: var(--button-opacity, 1);
transition: opacity 0.2s 0.1s easing(ease-out-quart);
}
&-delete {
overflow: hidden;
}
}
@include media('<=small') {
.label-stack-item-delete {
display: none;
}
}
@include media('>small') {
&:hover,
&:focus-within {
.label-stack-item {
// Avoid glitch effect on first-child
&:first-child:not(:hover, :focus-within) {
--button-opacity: 0;
max-inline-size: var(--item-narrow);
transform: scale(var(--item-scale));
transition-delay: 0.2s, 0s;
}
&:not(:first-child):hover,
&:not(:first-child):focus-within {
--button-opacity: 1;
max-inline-size: var(--item-wide);
transform: scale(1);
}
}
}
}
}
}
| 9,467 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_meter-bar.scss | .meter-bar {
--size: #{em(10)};
--meter-bar-background-color: var(--border-norm);
--meter-bar-thumb-color-success: var(--signal-success);
inline-size: 100%;
overflow: hidden;
background-color: var(--meter-bar-background-color);
&,
&-thumb {
block-size: var(--size);
}
&-thumb {
min-inline-size: 3%;
background: var(--meter-bar-thumb-color-success);
&--warning {
background: var(--signal-warning);
}
&--danger {
background: var(--signal-danger);
}
}
&:not(.is-squared),
&:not(.is-squared) &-thumb {
border-radius: calc(var(--size) / 2);
}
&.is-thin {
--size: #{em(4)};
}
}
| 9,468 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_minicalendar.scss | .minicalendar {
// Size of each cell width and height when `fixedSize`property is set.
--fixed-cell-size: #{em(34)};
min-inline-size: rem(150);
max-inline-size: rem(400);
font-size: rem(12);
&-grid,
&-weeknumbers,
&-weekdays,
&-monthdays {
display: grid;
}
&-weeknumbers,
&-weekdays,
&-monthdays {
grid-gap: 1px 0;
user-select: none;
& > * {
display: flex;
justify-content: center;
align-items: stretch;
inline-size: var(--cell-width, auto);
// Chrome since v94 has a jiggling bug provoked by a cascade of minicalendar re-sizings at
// the threshold for the scrollbar to appear in the sidebar.
// We use a rather edgy browser check to avoid using aspect-ratio in Chrome because of this bug
@supports (aspect-ratio: 1 / 1) and (-moz-appearance: none) {
aspect-ratio: 1 / 1;
}
@supports (not (aspect-ratio: 1 / 1)) or (not (-moz-appearance: none)) {
block-size: var(--cell-height, initial);
}
}
}
&-grid {
grid-gap: 1px;
&:not(.with-weeknumbers) {
grid-template-columns: 7fr; // It could be 1fr, but well… just for you to understand ^^
grid-template-rows: auto;
/* stylelint-disable-next-line declaration-block-no-redundant-longhand-properties */
grid-template-areas:
'weekdays'
'monthdays';
}
&.with-weeknumbers {
grid-template-columns: 1fr 1px 7fr;
grid-template-rows: auto;
/* stylelint-disable-next-line declaration-block-no-redundant-longhand-properties */
grid-template-areas:
'weeknumbers rule weekdays'
'weeknumbers rule monthdays';
}
&.is-fixed-size {
--cell-width: var(--fixed-cell-size);
}
// Chrome since v94 has a jiggling bug provoked by a cascade of minicalendar re-sizings at
// the threshold for the scrollbar to appear in the sidebar.
// We use a rather edgy browser check to avoid using aspect-ratio in Chrome because of this bug
@supports (not (aspect-ratio: 1 / 1)) or (not (-moz-appearance: none)) {
// Ensure the aspect ratio while waiting for aspect-ratio property
--cell-height: var(--computed-cell-width, var(--fixed-cell-size));
}
}
&-weeknumbers {
grid-area: weeknumbers;
grid-template-columns: 1fr;
grid-template-rows: repeat(var(--week-count, 4), 1fr);
}
// Use a vertical rule instead of a border the use the grid gaps for spacing
&-vr {
grid-area: rule;
}
&-weekdays {
grid-area: weekdays;
grid-template-columns: repeat(var(--weekdays-count, 7), 1fr);
grid-template-rows: auto;
color: var(--text-weak);
& > * {
// No buttons for weekdays, so no need to stretch
align-items: center;
}
.current-weekday {
color: var(--mini-calendar-today-color);
}
}
&-monthdays {
grid-area: monthdays;
grid-template-columns: repeat(var(--cols, 7), 1fr);
grid-template-rows: repeat(var(--rows, 4), 1fr);
}
&-weeknumber,
&-day {
@extend .interactive-pseudo;
position: relative;
inline-size: 100%;
border-radius: var(--border-radius-sm);
&[aria-pressed='true'] {
background: var(--interaction-weak);
color: var(--text-norm);
&:hover {
background: var(--interaction-weak-hover);
}
&:active {
background: var(--interaction-weak-active);
}
}
}
&-day {
// This is the 'selected' and 'current' marker, placed below the number by z-index
&::before {
content: '';
position: absolute;
inset: 0;
z-index: 0;
border-radius: var(--border-radius-sm);
border: 1px solid transparent;
pointer-events: none;
transition: 0.15s easing(ease-out-quad);
}
&-number {
position: relative;
z-index: 1;
}
&--selected {
&::before {
background: var(--interaction-norm);
}
}
&--selected:hover,
&--selected:focus-visible {
&::before {
background: var(--interaction-norm-hover);
}
}
&--selected:active {
&::before {
background: var(--interaction-norm-active);
}
}
&--selected &-number {
font-weight: var(--font-weight-bold);
color: var(--interaction-norm-contrast);
}
&[aria-current='date'] {
font-weight: var(--font-weight-bold);
color: var(--mini-calendar-today-color);
&::before,
&::after {
border-color: var(--mini-calendar-today-color);
}
}
&--out-of-month {
color: var(--text-weak);
// Separate style of days out of month from the other ones when part of a range
&[aria-pressed='true'] {
background: var(--background-weak);
color: var(--text-weak);
}
}
&--range:not(#{&}--range-bound-start) {
border-start-start-radius: 0;
border-end-start-radius: 0;
}
&--range:not(#{&}--range-bound-end) {
border-start-end-radius: 0;
border-end-end-radius: 0;
}
}
}
| 9,469 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_modal.scss | $modal-width: 50% !default;
$modal-max-width: rem(700) !default;
$modal-breakpoint-width: 52em !default;
$modal-breakpoint-height: 22em !default;
$breakpoint-low-height-modal: em(500, 16) !default;
$modal-max-height: 80% !default;
$modal-wider-width: 70% !default;
$modal-wider-max-width: rem(1000) !default;
$modal-full-dimension: 98% !default;
$modal-full-max-width: rem(1280) !default;
$modal-intermediate-width: rem(480);
$modal-smaller-width: 28em !default;
$modal-tiny-width: em(288) !default;
/* overlay covers everything */
.modal-overlay {
position: fixed;
inset: 0;
background: var(--backdrop-norm);
z-index: $layer-modals;
animation: anime-modal-overlay-in ease 0.5s 1 normal;
}
.modal-container {
position: fixed;
inset: 0;
display: flex;
justify-content: center;
flex-direction: column;
z-index: $layer-modals;
// -webkit-tap-highlight-color: rgb(255 255 255 / 0);
&.is-behind-backdrop {
z-index: $layer-modals - 1;
}
/* for very large inputs in modals, like rich text editor */
.field-container--full {
inline-size: calc(100% - var(--label-width, #{$label-width}));
@include media('<=#{em(1360, 16)}') {
inline-size: $field-container;
}
@include media('<=#{em(830, 16)}') {
inline-size: calc(100% - var(--label-width, #{$label-width}));
}
@include media('<=small') {
inline-size: 100%;
}
}
}
.modal-overlay--out {
animation: anime-modal-overlay-out ease 0.5s 1 normal;
animation-fill-mode: forwards;
}
@keyframes anime-modal-overlay-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes anime-modal-overlay-out {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
.modal {
position: relative;
inline-size: $modal-max-width;
max-block-size: $modal-max-height;
max-inline-size: $modal-max-width;
background: var(--modal-background-color);
color: var(--modal-text-color);
padding: 0;
overflow: hidden;
border-radius: var(--border-radius-lg);
box-shadow: var(--shadow-lifted);
animation: anime-modal-in ease 0.15s 1 normal;
animation-fill-mode: both;
animation-delay: 0.1s; // stupid fix for Safari crazy display bug
margin: auto;
display: flex;
flex-direction: column;
cursor: default;
}
@keyframes anime-modal-in {
0% {
opacity: 0;
transform: scale(0.8);
}
100% {
opacity: 1;
transform: scale(1);
}
}
@keyframes anime-modal-out {
0% {
opacity: 1;
transform: scale(1);
}
100% {
opacity: 0;
transform: scale(0.8);
}
}
.modal--out {
animation: anime-modal-out ease 0.15s 1 normal;
animation-fill-mode: both;
}
.modal--auto {
inline-size: auto;
}
.modal--intermediate {
inline-size: $modal-intermediate-width;
}
.modal--smaller {
inline-size: $modal-smaller-width;
}
.modal--tiny {
inline-size: $modal-tiny-width;
border-radius: var(--border-radius-lg);
}
.modal--wider {
inline-size: $modal-wider-width;
max-inline-size: $modal-wider-max-width;
}
.modal--full {
inline-size: $modal-full-dimension;
max-inline-size: $modal-full-dimension;
block-size: $modal-full-dimension;
max-block-size: $modal-full-dimension;
margin: 1%;
}
.modal--height-auto {
block-size: auto;
max-block-size: $modal-full-dimension;
margin-block: 1% 1%;
}
.modal--no-outline {
&#{&} {
&:focus:focus-visible {
outline: none;
}
}
}
.modal-close {
position: absolute;
inset-block-start: 0;
inset-inline-end: 0;
@extend .flex;
overflow: hidden;
font-size: 1.25em;
z-index: 1;
}
// not defined, left this in case of
// .modal-close:focus,
// .modal-close:hover,
// .modal-close:active {
// }
// .modal-close:hover,
// .modal-close:active {
// }
.modal-content {
display: flex;
flex-direction: column;
flex: 1 1 auto;
overflow: hidden;
position: relative;
}
.modal-header {
padding-block: rem(30) rem(15);
padding-inline: rem(30);
flex: 0;
flex-shrink: 0;
}
.modal-title {
font-size: rem(22);
line-height: 1.5;
margin-block-end: 0;
}
.modal-footer {
padding-block: rem(15) rem(30);
padding-inline: rem(30);
flex: 0;
flex-shrink: 0;
[class*='button'] {
// only for Safari the ugly
min-block-size: rem(34);
}
// single button on right
[class*='button']:only-child {
margin-inline-start: auto;
}
// for vertically displayed buttons
&.flex-column {
[class*='button'] + [class*='button'] {
margin-block-start: 0.5em;
}
}
}
.modal-content-inner {
position: relative;
overflow: hidden auto;
flex: 1 1 auto;
padding-block: 0;
padding-inline: rem(30);
background: var(--modal-background-color) no-repeat;
& > p:first-child {
margin-block-start: 0;
}
& > p:last-child {
margin-block-end: 0;
}
}
// adaptation for labels
$label-shorter-width: 10em !default;
.modal--shorter-labels .label {
inline-size: var(--label-shorter-width, $label-shorter-width);
}
@include media('<=small') {
.modal--shorter-labels .on-mobile-flex-column .label {
inline-size: 100%;
}
}
// modal with title visually hidden
.modal-header--no-title {
padding-block-start: rem(20);
}
@include media('height<=#{$breakpoint-low-height-modal}') {
.modal {
max-block-size: $modal-full-dimension;
}
.modal-footer {
padding-block-end: rem(10);
}
.modal-header {
padding-block: rem(10) rem(5);
}
}
// small viewports
@include media('<=#{$modal-breakpoint-width}') {
.modal:not(.modal--tiny) {
margin: 1%;
min-inline-size: 0;
inline-size: 98%;
max-inline-size: 98%;
max-block-size: 98%;
align-self: center;
}
.modal--tiny {
max-inline-size: 95%;
max-block-size: 95%;
}
}
@include media('>xlarge') {
.modal--full {
max-inline-size: $modal-full-max-width;
margin-inline: auto;
}
}
| 9,470 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_multi-select.scss | .multi-select {
&-container {
border-radius: var(--border-radius-md);
border: 1px solid var(--field-norm);
background-color: var(--field-background-color);
transition: box-shadow 0.15s easing(ease-out-quint); // Use the same transition as input fields, but only for box-shadow (outline)
&:focus,
&:focus-within,
&:focus-visible {
border-color: var(--focus-outline);
box-shadow: 0 0 0 #{$focus-ring-size} var(--focus-ring);
background-color: var(--field-focus-background-color);
}
}
}
| 9,471 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_notification.scss | .notifications-container {
position: fixed;
inset-block-end: calc(em(24) + env(safe-area-inset-bottom));
inset-inline-start: 50%;
z-index: $layer-notifications;
transform: translateX(-50%);
filter: drop-shadow(var(--shadow-lifted));
@at-root {
[dir='rtl'] & {
transform: translateX(50%);
}
}
&--shifted {
inset-block-end: calc(var(--shift-custom-y) + env(safe-area-inset-bottom));
}
}
.notification {
position: absolute;
display: flex;
inset-block-end: var(--top-custom);
align-items: center;
overflow: hidden;
border-radius: var(--border-radius-lg);
background-color: var(--background-invert);
color: var(--text-invert);
inline-size: max-content;
max-inline-size: min(#{em(400)}, calc(100vw - 2em));
padding-block: em(8);
padding-inline: em(12) em(4);
transform: translateX(-50%);
transition: inset-block-end 0.35s easing(ease-out-quad);
@at-root {
[dir='rtl'] & {
transform: translateX(50%);
}
}
.button {
--button-default-text-color: inherit;
--button-hover-text-color: inherit;
--button-active-text-color: inherit;
margin-block: em(-6);
}
.link {
color: inherit;
}
&__icon {
margin-inline: 0 em(8);
flex-shrink: 0;
}
&__content {
display: flex;
align-items: center;
padding-inline-end: em(8);
word-break: break-word;
hyphens: auto;
> span {
word-break: break-word;
hyphens: auto;
}
.notification__button {
white-space: nowrap;
align-self: center;
margin-inline: em(8) em(-6);
flex-shrink: 0;
// spacing between two buttons
& + & {
margin-inline-start: em(2);
}
}
.circle-loader {
// make sure the loader is the last child or 2nd to last in case
// the "loading" text for screen readers is added
flex-shrink: 0;
&:last-child,
&:nth-last-child(2) {
margin-inline-start: em(8);
}
}
.notification__button + .circle-loader {
margin-inline-start: em(16);
}
}
&:not(#{&}--has-close-button) &__content {
.button {
margin-inline-end: em(-8);
}
}
&__close-button {
flex-shrink: 0;
}
&--in {
animation-duration: 0.35s;
animation-fill-mode: both;
animation-timing-function: easing(ease-in-out);
animation-name: anime-notification-in;
}
&--out {
animation-duration: 0.3s;
animation-fill-mode: both;
animation-timing-function: easing(ease-in-out);
animation-name: anime-notification-out;
}
&--out-duplicate {
animation-duration: 0.3s;
animation-fill-mode: both;
animation-timing-function: easing(ease-in-out);
animation-name: anime-notification-out-duplicate;
}
&--error,
&--warning {
background-color: var(--signal-danger);
color: var(--signal-danger-contrast);
}
}
@keyframes anime-notification-in {
0% {
opacity: 0;
transform: translateY(60%);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
@keyframes anime-notification-out {
0% {
opacity: 1;
transform: translateY(0);
}
100% {
opacity: 0;
transform: translateY(-20%);
}
}
@keyframes anime-notification-out-duplicate {
0% {
opacity: 1;
transform: translateY(0);
}
100% {
opacity: 0;
transform: translateY(0);
}
}
.global-loader {
z-index: $layer-notifications;
}
| 9,472 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_overview-grid.scss | .overview-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(#{rem(250)}, 1fr));
grid-auto-flow: row dense;
grid-gap: rem(20);
&-item {
&--tall {
grid-row: span 2;
}
&--full {
grid-column: 1 / -1;
}
}
}
| 9,473 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_pill.scss | .pill {
background-color: var(--background-weak);
text-shadow: none;
&.invalid {
border-color: var(--signal-danger);
color: var(--signal-danger);
.composer-addresses-item-label {
border-inline-end-color: currentcolor;
}
}
}
| 9,474 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_progress-bar.scss | @use 'sass:math';
@mixin progress-bar-size($size: 0.5em) {
block-size: $size;
border-radius: #{math.div($size, 2)};
&::-webkit-progress-bar {
border-radius: #{math.div($size, 2)};
}
&::-webkit-progress-value {
border-radius: #{math.div($size, 2)};
}
&::-moz-progress-bar {
border-radius: #{math.div($size, 2)};
}
}
.progress-bar {
@include progress-bar-size;
background: var(--background-weak);
color: var(--signal-info);
appearance: none;
&::-webkit-progress-bar {
background-color: var(--background-weak);
}
&::-webkit-progress-value {
background: var(--signal-info);
transition: 0.25s inline-size easing(ease-in-out-quint);
}
&::-moz-progress-bar {
background: var(--signal-info);
transition: 0.25s inline-size easing(ease-in-out-quint);
}
&::-ms-fill {
border-color: currentcolor;
}
@each $variant,
$color
in (
norm: var(--interaction-norm),
disabled: var(--background-strong),
running: var(--signal-info),
success: var(--signal-success),
warning: var(--signal-warning),
error: var(--signal-danger)
)
{
&--#{$variant} {
color: $color;
&::-webkit-progress-value {
background: $color;
}
&::-moz-progress-bar {
background: $color;
}
}
}
&.is-thin {
@include progress-bar-size(0.25em);
}
}
| 9,475 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_scrollshadow.scss | $scrollshadow-height: rem(5) !default;
.scrollshadow {
&-sticky {
position: sticky;
display: block;
block-size: $scrollshadow-height;
&--top {
inset-block-start: 0;
background-image: radial-gradient(farthest-side at 50% 0, var(--background-strong), transparent);
}
&--bottom {
inset-block-end: 0;
background-image: radial-gradient(farthest-side at 50% 100%, var(--background-strong), transparent);
}
}
&-static {
position: absolute;
display: block;
inset-inline: 0;
block-size: $scrollshadow-height;
background: var(--background-norm);
&--top {
inset-block-start: 0;
}
&--bottom {
inset-block-end: 0;
}
}
}
| 9,476 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_select.scss | .select-dropdown {
&--togglable {
.dropdown-item {
[aria-current='true'],
&--is-selected {
&,
&:hover,
&:focus,
&:active {
pointer-events: all;
}
}
}
}
}
| 9,477 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_simple-table.scss | .simple-table {
@extend .border-collapse;
@extend .border-none;
--table-border-color: var(--border-norm);
&--border-weak {
--table-border-color: var(--border-weak);
}
inline-size: 100%;
caption {
transform: scale(0);
}
td,
th {
padding: var(--space-2);
border-block-end: 1px solid var(--table-border-color);
}
// NEW RESPONSIVE TABLES
&--responsive {
@include media('<=medium') {
td:not(.no-mobile, .no-tablet) {
display: block;
margin: 0;
padding: 0;
border: none;
}
thead {
display: none;
}
tr {
display: block;
}
}
}
&--responsive-stacked {
@include media('<=medium') {
tr {
margin-block-end: var(--space-2);
border-block-end: 1px solid var(--table-border-color);
}
td {
padding-block-end: var(--space-2);
}
}
}
&--responsive-cards {
@include media('<=medium') {
tr {
padding: var(--space-3);
border: 1px solid var(--table-border-color);
border-radius: var(--border-radius-lg);
&:not(:last-child) {
margin-block-end: var(--space-3);
}
}
td {
&:not(:last-child) {
padding-block-end: var(--space-2);
}
}
}
}
&--responsive &__th-small {
display: none;
@include media('<=medium') {
display: flex;
align-content: center;
font-weight: var(--font-weight-medium);
color: var(--text-weak);
font-size: 0.86em;
margin: 0;
}
}
// END
th:not(#{&}-row-th) {
text-align: start;
&.text-center {
text-align: center;
}
&.text-right {
text-align: end;
}
}
// no style for this case
&-row-th {
font-weight: var(--font-weight-normal);
}
/* alternate bg for rows */
&--alternate-bg-row tbody tr:nth-child(odd) {
background-color: var(--background-weak);
}
&--is-hoverable tbody tr {
@media (hover: hover) {
&:hover,
&:focus-within {
background-color: var(--interaction-default-hover);
}
}
}
tr#{&}-sticky-row {
td,
th {
position: sticky;
inset-block-start: 0;
background: var(--background-norm);
z-index: 1;
&::after {
content: '';
position: absolute;
inset-block-start: 100%;
inset-inline: 0;
z-index: -1;
block-size: rem(10);
background: linear-gradient(to bottom, rgb(0 0 0 / var(--shadow-norm-opacity)) 0%, transparent 100%);
pointer-events: none;
transition: opacity 0.125s ease-out;
}
}
}
tr#{&}-sticky-row#{&}-sticky-row--is-on-top {
td,
th {
&::after {
opacity: 0;
}
}
}
/* border-table */
&--border {
&,
th,
td {
border: 1px solid var(--table-border-color);
}
}
&--has-actions {
&#{&} {
// Specificity -_-v
td,
th {
&:last-child {
text-align: end;
}
}
}
}
// TODO: refactor this
@include media('<=medium') {
&--responsive#{&}--has-actions {
td,
th {
&:last-child {
text-align: start;
}
}
}
}
}
.alternate-table-bg-row-rounded {
@extend .border-none;
inline-size: 100%;
border-spacing: 0; // no border-collapse for radius ^^
td,
th {
padding: var(--space-2);
}
/* alternate bg for rows */
tbody tr:nth-child(odd) {
// bg on all cells
> * {
background-color: var(--background-weak);
}
// radiuses
> :first-child {
border-start-start-radius: var(--border-radius-lg);
border-end-start-radius: var(--border-radius-lg);
}
> :last-child {
border-start-end-radius: var(--border-radius-lg);
border-end-end-radius: var(--border-radius-lg);
}
}
}
| 9,478 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_spotlight.scss | @use 'sass:math';
.spotlight {
$arrow-width: 1em;
position: fixed;
z-index: $layer-tooltips;
min-inline-size: 10em;
max-inline-size: 20em;
transform: scale(1);
border-radius: var(--border-radius-md);
background-color: var(--background-norm);
box-shadow: var(--shadow-lifted);
border: 1px solid var(--border-norm);
text-align: start;
word-break: break-word;
animation: 0.15s ease-out both anime-spotlight-in;
@keyframes anime-spotlight-in {
from {
transform: scale(0.75);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
}
// Out animation
&.is-spotlight-out {
animation-name: anime-spotlight-out;
@keyframes anime-spotlight-out {
from {
transform: scale(1);
opacity: 1;
}
to {
transform: scale(0.75);
opacity: 0;
}
}
}
@include transform-origins;
&-inner {
position: relative;
z-index: 1;
padding-block: 1em;
padding-inline: 1.5em 3em;
border-radius: var(--border-radius-md);
color: var(--text-norm);
background-color: var(--background-norm);
}
// Pseudo-elements to make arrows
&::before {
content: '';
position: absolute;
z-index: 0;
inline-size: $arrow-width;
block-size: $arrow-width;
transform: rotate(45deg);
border: inherit;
background-color: var(--background-norm);
pointer-events: none;
speak: none;
}
&--top,
&--top-start,
&--top-end {
&::before {
inset-block-end: -#{math.div($arrow-width, 2)};
}
}
&--bottom,
&--bottom-start,
&--bottom-end {
&::before {
inset-block-start: -#{math.div($arrow-width, 2)};
}
}
&--right,
&--right-start,
&--right-end {
&::before {
inset-inline-start: -#{math.div($arrow-width, 2)};
}
}
&--left,
&--left-start,
&--left-end {
&::before {
inset-inline-end: -#{math.div($arrow-width, 2)};
}
}
&--top,
&--bottom {
&::before {
inset-inline-start: calc(50% - #{math.div($arrow-width, 2)});
}
}
// the + 0.5px is just to avoid a glitch
&--top-start,
&--bottom-start {
&::before {
inset-inline-start: max(calc(var(--arrow-offset, 0) - #{math.div($arrow-width, 2)}) + 0.5px, 0px);
}
}
&--top-end,
&--bottom-end {
&::before {
inset-inline-end: max(calc(var(--arrow-offset, 0) - #{math.div($arrow-width, 2)}) + 0.5px, 0px);
}
}
&--left,
&--right {
&::before {
inset-block-start: calc(50% - #{math.div($arrow-width, 2)});
}
}
&--left-start,
&--right-start {
&::before {
inset-block-start: max(calc(var(--arrow-offset, 0) - #{math.div($arrow-width, 2)}), 0px);
}
}
&--left-end,
&--right-end {
&::before {
inset-block-end: max(calc(var(--arrow-offset, 0) - #{math.div($arrow-width, 2)}), 0px);
}
}
&-close {
position: absolute;
inset-block-start: 0.5em;
inset-inline-end: 0.5em;
z-index: 1;
}
&--no-side-radius {
// remove glitches caused by border-radiuses when arrow is in edges ^^
&.spotlight {
&--top,
&--top-start,
&--top-end {
&::before {
border-block-start: 0;
border-inline-start: 0;
}
}
&--bottom,
&--bottom-start,
&--bottom-end {
&::before {
border-block-end: 0;
border-inline-end: 0;
}
}
&--top-end,
&--left-end {
&,
& .spotlight-inner {
border-end-end-radius: 0;
}
}
&--top-start,
&--right-end {
&,
& .spotlight-inner {
border-end-start-radius: 0;
}
}
&--bottom-start,
&--right-start {
&,
& .spotlight-inner {
border-start-start-radius: 0;
}
}
&--bottom-end,
&--left-start {
&,
& .spotlight-inner {
border-start-end-radius: 0;
}
}
}
}
&--with-illustration {
max-inline-size: 28em;
}
&--large {
max-inline-size: 30em;
}
}
| 9,479 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_star-button.scss | // star button
.starbutton {
/*
* We need to override the color, no matter the specificity of the button
* so we can use `!important` in this situation.
* no focus state, only focus-visible
*/
&:focus-visible,
&:hover,
&--is-starred {
color: var(--favorite-icon-color) !important;
}
}
| 9,480 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_stepdots.scss | .step-dots {
&-item:not(:last-child) {
margin-inline-end: 0.5em;
}
&-dot {
inline-size: rem(8);
block-size: rem(8);
background-color: var(--interaction-weak);
color: var(--text-norm);
transition: background-color 0.25s easing(ease);
&:focus,
&:hover,
&:active {
background-color: var(--interaction-norm);
color: var(--interaction-norm-contrast);
}
&[aria-selected='true'] {
background-color: var(--text-norm);
color: var(--text-invert);
}
}
}
| 9,481 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_sticky-title.scss | $sticky-title-height: rem(100) !default;
.sticky-title {
position: sticky;
inset-block-start: 0;
box-shadow: 0 5px 5px 0 rgb(0 0 0 / var(--shadow-norm-opacity));
padding-block: 0.5em;
padding-inline: 0.75em;
background: inherit;
z-index: 20;
&--on-top {
box-shadow: none;
}
&--no-padding {
padding: 0;
}
}
.container-section-sticky {
padding-block: 0;
padding-inline: 2em;
inline-size: 100%;
max-inline-size: 120ch; // avoid too long lines
margin-inline: auto auto;
@include media('>xlarge') {
max-inline-size: 75vw;
}
&--full-width {
max-inline-size: none;
}
&-section {
margin-block-end: rem(80);
&--single-calendar-section {
// temporary margin by hand until better global solution found
margin-block-start: em(54);
@include media('<=small') {
// full alignment not possible
margin-block-start: 0;
}
}
}
}
/* trick for fixing anchor links */
.header-height-anchor {
position: absolute;
inset-block-start: -#{$sticky-title-height};
}
// not sticky on mobile
@include media('<=small') {
.sticky-title:not(.on-mobile-remain-sticky) {
position: static;
box-shadow: none;
}
.container-section-sticky-section {
margin-block-end: rem(80);
}
.header-height-anchor {
position: static;
inset-block-start: 0;
}
}
| 9,482 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_tabs.scss | .tabs {
&-list {
&-item {
min-inline-size: auto;
}
&-link {
inset-block-start: 1px;
padding-block: 0.5em;
padding-inline: 0.75em;
border-block-end: 2px solid transparent;
color: var(--text-weak);
transition: 0.15s easing(ease-out-quint);
&:hover,
&:focus {
border-block-end-color: var(--border-norm);
color: var(--text-norm);
}
&[aria-selected='true'] {
border-block-end-color: var(--interaction-norm);
color: var(--text-norm);
}
&[disabled] {
opacity: 0.4;
cursor: default;
pointer-events: none;
}
}
&--fullWidth {
inline-size: 100%;
}
&--fullWidth &-item {
flex: 1 1 0;
}
&--fullWidth &-link {
inline-size: 100%;
}
}
&-indicator {
position: absolute;
inset-block-end: -1px;
inset-inline: 0;
block-size: 0;
transform-origin: left center;
@at-root {
[dir='rtl'] & {
transform-origin: right center;
}
}
transform: translateX(var(--translate)) scaleX(var(--scale));
border-block-end: 2px solid var(--interaction-norm);
transition: transform 0.15s easing(ease-out-quad);
}
}
| 9,483 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_topnav.scss | .topnav-link {
&--blackfriday::before {
content: '';
position: absolute;
inline-size: rem(7);
block-size: rem(7);
background: var(--signal-danger);
border-radius: 50%;
inset-inline-start: calc(#{rem(17.5)} + #{rem(15)});
inset-block-start: calc(50% - #{rem(14)});
}
}
.topnav-list > li:not(:last-child) {
margin-inline-end: 0.25em;
/* Decrease margins (was 1em) */
@include media('<=#{em(1500, 16)}') {
margin-inline-end: 1px;
}
}
.topnav-icon {
margin-inline-end: 0.5em;
}
.topnav-vr {
@include media('<=large') {
display: none;
}
}
// code to collapse all elements except upgrade button (topnav-listItem--noCollapse)
@mixin collapse-all-four-except-upgrade {
.topnav-list--four-elements {
.topnav-listItem:not(.topnav-listItem--noCollapse) {
// we collapse text as general case
.navigation-title {
// equivalent of .sr-only, but impossible to extend in a breakpoint
border: 0;
clip: rect(0 0 0 0);
block-size: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
inline-size: 1px;
}
.topnav-icon {
margin-inline-end: 0;
&.expand-caret {
margin-inline-start: 0.25em;
}
}
}
}
}
// code to collapse all elements with NO exception
@mixin collapse-all-four-no-exception {
.topnav-list--four-elements {
.topnav-link {
padding-inline: rem(5);
}
.topnav-listItem:not(.topnav-listItem--noCollapse) {
.navigation-title {
// collapse for ALL without any exception
// equivalent of .sr-only, but impossible to extend in a breakpoint
border: 0;
clip: rect(0 0 0 0);
block-size: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
inline-size: 1px;
}
}
.topnav-icon {
margin-inline-end: 0;
}
.topnav-link--blackfriday::before {
inset-inline-start: calc(#{rem(5)} + #{rem(15)});
}
.topnav-link--notification {
.notification-dot {
inset-inline-end: 0.1em;
inset-block-start: 0.1em;
}
}
}
}
@mixin collapse-all-items-no-exception {
.topnav-link {
// Specificity -_-v
&#{&} {
padding-inline: rem(5);
}
}
.topnav-listItem:not(.topnav-listItem--noCollapse) {
.navigation-title {
// collapse for ALL without any exception
// equivalent of .sr-only, but impossible to extend in a breakpoint
border: 0;
clip: rect(0 0 0 0);
block-size: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
inline-size: 1px;
}
}
.topnav-icon {
&#{&} {
// Specificity -_-v
margin-inline-end: 0;
}
}
.topnav-link--blackfriday::before {
inset-inline-start: calc(#{rem(5)} + #{rem(15)});
}
}
@include media('<=xlarge') {
@include collapse-all-four-except-upgrade;
}
// special fix for Hungarian looooooooong text
[lang='hu'] {
@include media('<=#{em(1650, 16)}') {
@include collapse-all-four-except-upgrade;
}
@include media('<=#{em(1050, 16)}') {
@include collapse-all-four-no-exception;
}
}
@include media('<=#{em(940, 16)}') {
@include collapse-all-four-no-exception;
}
@include media('<=#{em(800, 16)}') {
@include collapse-all-items-no-exception;
}
@include media('<=small') {
.topnav-icon {
// Specificity -_-v
&#{&} {
inline-size: rem(24);
block-size: rem(19); // to align with user drop down
margin-inline-end: 0;
}
}
.topnav-listItem:not(.topnav-listItem--noCollapse) {
.navigation-title {
// collapse for ALL without any exception
// equivalent of .sr-only, but impossible to extend in a breakpoint
border: 0;
clip: rect(0 0 0 0);
block-size: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
inline-size: 1px;
}
}
.topnav-list--four-elements .topnav-link {
padding-inline: rem(10);
}
.topnav-list--four-elements .topnav-link--blackfriday::before,
.topnav-link--blackfriday::before {
inset-inline-start: calc(#{rem(10)} + #{rem(22)});
inset-block-start: calc(50% - #{rem(18)});
}
.topnav-link--notification {
&#{&} {
.notification-dot {
inset-inline-end: 0.15em;
inset-block-start: 0.15em;
}
}
}
}
@include media('<=xsmall') {
.topnav-list--four-elements .topnav-link,
.topnav-link {
padding-inline: rem(2);
}
.topnav-list--four-elements .topnav-link--blackfriday::before,
.topnav-link--blackfriday::before {
inset-inline-start: calc(#{rem(5)} + #{rem(22)});
}
}
| 9,484 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_treeview.scss | @use 'sass:math';
$treeview-border-width: 1px !default;
$treeview-indentation-margin: rem(30) !default;
.treeview-item {
border-block-end: $treeview-border-width solid var(--border-norm);
margin-block-end: -$treeview-border-width;
$arrow-width: rem(9) !default;
$arrow-height: rem(7) !default;
$circle-size: rem(8) !default;
&--move-inside,
&--move-top,
&--move-bottom {
&::before {
content: '';
position: absolute;
}
}
&--move-inside {
background-color: var(--background-weak);
&::before {
inset-inline-start: -$arrow-width;
block-size: 0;
inline-size: 0;
border: $arrow-height solid transparent;
border-inline-start-color: var(--interaction-norm);
border-inline-start-width: $arrow-width;
}
}
&--move-top,
&--move-bottom {
&::before {
inset-inline-start: -#{math.div($circle-size, 2)};
block-size: $circle-size;
inline-size: $circle-size;
border-radius: 50%;
background: var(--interaction-norm);
}
}
&--move-inside#{&}--self-grabbed {
// no primary color on the self grabbed element
&::before {
border-inline-start-color: var(--border-norm);
}
}
&--move-top::before {
inset-block-start: -#{math.div($circle-size, 2)};
}
&--move-bottom::before {
inset-block-end: -#{math.div($circle-size, 2)};
}
&--move-top::after,
&--move-bottom::after {
content: '';
position: absolute;
inset-inline: 0;
block-size: 1px;
background: var(--interaction-norm);
}
&--move-top::after {
inset-block-start: 0;
}
&--move-bottom::after {
inset-block-end: -1px;
}
.treeview-item .treeview-item {
padding-inline-start: $treeview-indentation-margin;
&.treeview-item--move-inside {
background: linear-gradient(
to right,
transparent 0,
transparent #{$treeview-indentation-margin},
var(--background-weak) #{$treeview-indentation-margin}
);
&::before {
inset-inline-start: calc(-#{$arrow-width} + #{$treeview-indentation-margin});
}
}
&.treeview-item--move-top,
&.treeview-item--move-bottom {
&::before {
inset-inline-start: calc(-#{math.div($circle-size, 2)} + #{$treeview-indentation-margin});
}
}
&--move-top::after,
&--move-bottom::after {
inset-inline-start: #{$treeview-indentation-margin};
}
}
}
| 9,485 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_user-dropdown.scss | .user-dropdown {
&-button {
@include media('<=small') {
flex-direction: row-reverse;
inline-size: 100%;
padding: var(--space-2);
border: 1px solid var(--border-weak);
border-radius: var(--border-radius-lg);
transition: none;
}
.user-initials {
background-color: var(--interaction-default);
transition: 0.15s easing(ease-out-quint), background-position 0s;
}
&:hover,
&:focus {
.user-initials {
background-color: var(--interaction-default-hover);
}
}
&:active,
&.is-active,
&[aria-expanded='true'] {
.user-initials {
background-color: var(--interaction-default-active);
}
}
&::after {
border-radius: var(--border-radius-lg);
@include media('>=small') {
border-radius: var(--border-radius-md);
}
@include media('>=large') {
inset: -$focus-ring-size;
}
}
}
&-text {
&#{&} {
// Specificity -_-v
max-inline-size: rem(200);
text-align: start;
@include media('>medium') {
text-align: end;
}
@include media('>=small', '<=large') {
display: none;
}
}
}
}
// used on switch account, summary section and user dropdown
.user-initials {
&#{&} {
// Specificity -_-v
min-inline-size: rem(28);
min-block-size: rem(28);
}
}
.userDropdown {
@include media('<small') {
--width: calc(100vw - 30px) !important;
}
}
| 9,486 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/components/_wizard.scss | @use 'sass:math';
$height-wizard: rem(6) !default;
$size-current-pin: rem(16) !default;
.wizard {
block-size: $height-wizard;
display: flex;
&-container {
padding-inline-start: rem(2); // "optical" alignment, difficult to align text and circle ^^
}
&-marker {
display: flex;
inline-size: $size-current-pin;
block-size: $size-current-pin;
margin-inline-start: -1px; // trick for high zoom level ^^
border-radius: 50%;
position: relative;
inset-block-start: -#{$height-wizard - rem(1)};
background-image: radial-gradient(
circle,
var(--primary) 0,
var(--primary) #{math.div($height-wizard, 2)},
transparent #{math.div($height-wizard, 2)}
);
}
&-marker-icon {
&#{&} {
fill: var(--primary-contrast);
}
}
&-item {
background: var(--background-strong);
position: relative;
&:not(:last-child) {
@extend .flex-item-fluid;
}
// positionned first element always with a aria-current/is-complete
&:first-child {
background: none;
background-image: linear-gradient(
to left,
var(--background-strong) 0,
var(--background-strong) calc(100% - #{math.div($height-wizard, 2)}),
transparent calc(100% - #{math.div($height-wizard, 2)})
);
}
&:last-child {
background: none;
background-image: linear-gradient(
to right,
var(--background-strong) 0,
var(--background-strong) 50%,
transparent 50%
);
&.is-complete::after {
content: none;
}
}
&.is-complete {
.wizard-marker {
background-color: var(--primary);
position: relative;
inset-block-start: -#{$height-wizard - rem(1)};
}
}
&[aria-current='step'] {
.wizard-marker {
background-image: radial-gradient(
circle,
var(--primary-contrast) 0,
var(--primary-contrast) #{math.div($height-wizard, 2)},
var(--primary) #{math.div($height-wizard, 2)}
);
}
}
&.is-complete::before {
content: '';
background: var(--primary);
}
&.is-complete::after {
content: '';
position: relative;
display: block;
inline-size: 100%;
block-size: $height-wizard;
inset-block-start: -$size-current-pin;
background-color: var(--primary);
}
}
&-container--no-text-displayed &-item[aria-current='step'] &-item-inner {
@extend .invisible;
}
&-label {
flex: 1;
text-align: center;
&:first-child {
text-align: start;
}
&:last-child {
text-align: end;
}
&.is-complete {
opacity: 0.5;
}
&[aria-current='step'] {
font-size: 1em;
font-weight: var(--font-weight-semibold);
}
}
}
| 9,487 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/layout/_context-bar.scss | .context-bar {
background: var(--background-strong);
@include media('>medium') {
inline-size: $context-bar-width;
min-inline-size: rem($context-bar-min-width);
max-inline-size: $context-bar-max-width;
border-inline-start: 1px solid var(--border-norm);
}
@include media('<=medium') {
border-block-start: 1px solid var(--border-norm);
}
&-inner {
position: sticky;
inset-block-start: 0;
padding: 2em;
}
}
| 9,488 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/layout/_index.scss | /* stylelint-disable */
@import
'context-bar',
'navigation',
'structure',
'sub-settings-section',
'toolbar';
| 9,489 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/layout/_navigation.scss | $padding-inline-start-link: var(--space-3) !default;
$padding-inline-end-link: var(--space-2) !default;
.navigation > .navigation-list,
.navigation > div > .navigation-list {
&:first-child {
padding-block-start: $focus-ring-size; // make some space on the top for keyboard focus outline
}
&:last-child {
padding-block-end: rem(20); // make some space between the end of the list and the storage indicator
}
}
.navigation-link,
.navigation-link-header-group {
block-size: rem(36);
padding-inline: $padding-inline-start-link $padding-inline-end-link;
text-decoration: none;
display: flex;
align-items: center;
inline-size: 100%;
h3 {
font-size: inherit;
}
}
// specificity...
.navigation-link-header-group {
&#{&}:not(#{&}--expandable) {
padding-inline: calc($padding-inline-start-link + 0.8em) $padding-inline-end-link;
color: var(--text-weak);
}
}
// accounts sidebar spacing
.navigation-list:not(:first-child)
> .navigation-link-header-group:first-child:not(.navigation-link-header-group--expandable) {
position: relative;
margin-block-start: var(--space-4);
}
.navigation-link-header-group--expandable {
padding-block: 0; // no padding for this case, it's in the element to avoid shift
}
.navigation-icon {
color: var(--text-weak);
transition: color 0.15s easing(ease-out-quint);
&-empty {
inline-size: rem(16);
}
}
.navigation-refresh {
display: none;
}
.navigation-link {
@extend .interactive;
position: relative;
border-radius: var(--border-radius-md);
border: 1px solid transparent;
&:hover,
&:focus {
text-decoration: none;
.navigation-icon {
color: inherit;
}
}
&--collapsible {
padding-block: rem(5.5);
}
}
// special case for calendar, label has checkbox inside
label.navigation-link {
@supports not selector(:focus-visible) {
&:focus {
background-color: unset;
border-color: var(--focus-outline);
box-shadow: 0 0 0 #{$focus-ring-size} var(--focus-ring);
}
}
@supports selector(:focus-visible) {
&:focus {
background-color: unset;
border-color: transparent;
box-shadow: none;
}
&:focus-within {
background-color: unset;
border-color: var(--focus-outline);
box-shadow: 0 0 0 #{$focus-ring-size} var(--focus-ring);
}
}
}
.navigation-link-child {
padding-inline-start: calc(#{rem(10)} + #{$padding-inline-start-link});
}
[aria-current='page'].navigation-link {
background-color: var(--navigation-current-item-background-color);
color: var(--navigation-current-item-text-color);
font-weight: var(--font-weight-bold);
.navigation-link {
color: var(--text-norm);
}
&:hover .navigation-icon:not(.navigation-icon--expand),
.navigation-icon {
color: inherit;
}
.navigation-refresh {
display: inline-flex;
}
}
// labels/folders sections
.navigation-link-header-group-link {
@extend .interactive;
block-size: rem(36);
border: 1px solid transparent;
border-radius: var(--border-radius-md);
color: var(--text-weak);
padding-inline: $padding-inline-start-link $padding-inline-end-link;
@supports selector(:focus-visible) {
// had to do this because of Safari
outline: unset;
}
&:hover {
color: var(--text-norm);
}
&[aria-expanded='true'],
&:focus-within {
background: var(--interaction-default);
color: var(--text-weak);
&:hover {
background: var(--interaction-default-hover);
color: var(--text-norm);
}
}
&[aria-expanded='false']:focus-within:not(:hover) {
color: var(--text-weak);
}
.navigation-icon--expand {
color: var(--text-weak);
}
}
.navigation-link-header-group-control {
@extend .interactive;
padding: 0.5em;
border: 1px solid transparent;
border-radius: var(--border-radius-md);
color: var(--text-weak);
.navigation-icon--expand {
color: var(--text-weak);
}
&:hover {
color: var(--text-norm);
.navigation-icon {
color: inherit;
}
}
}
.navigation-link--expand:focus,
.navigation-link--expand:hover,
.navigation-link-header-group-link:hover {
.navigation-icon--expand {
color: inherit;
}
}
/* items counters */
.navigation-counter-item {
border-radius: var(--border-radius-sm);
background: var(--navigation-item-count-background-color);
font-size: em(11);
font-variant: tabular-nums;
line-height: em(20, 11);
text-align: center;
color: var(--navigation-item-count-text-color);
transition: 0.15s easing(ease-out-quint);
&--transparent {
background: transparent;
color: inherit;
}
&--weak {
background: transparent;
color: var(--text-weak);
.active & {
color: currentcolor;
}
}
&:empty {
display: none; // removes a bug on Webkit
}
// prevent layout shift when font-weight changes
&[data-unread-count]::after {
content: attr(data-unread-count);
font-weight: var(--font-weight-bold);
display: block;
block-size: 0;
overflow: hidden;
visibility: hidden;
}
}
/* Sub folders */
.navigation-item {
&-dropdown-opened {
& .group-hover\:hidden {
display: none;
}
& .group-hover\:opacity-100 {
opacity: 1;
&-no-width {
inline-size: auto;
}
}
}
[data-level='1'] {
padding-inline-start: rem(8);
}
[data-level='2'] {
padding-inline-start: rem(16);
}
}
/* Sub-navigation */
.navigation-sublist {
margin-inline-start: $padding-inline-start-link;
overflow: hidden;
opacity: 1;
transition:
visibility 0s ease,
transform 0.5s ease,
opacity 0.5s ease,
max-block-size 0.5s ease;
transform-origin: top center;
transform: scale(1, 1);
max-block-size: 44em;
visibility: visible;
transition-delay: 0s;
&[aria-hidden='true'] {
display: block;
opacity: 0;
max-block-size: 0;
visibility: hidden;
transform: scale(1, 0);
transition-duration: 0s, 0.25s, 0.25s, 0.25s;
transition-delay: 0.5s, 0s, 0s, 0s;
}
}
.navigation-subitem {
margin-inline-start: rem(7);
}
.navigation-sublink {
@extend .interactive;
border-inline-start: 2px solid var(--border-norm);
display: block;
padding-block: rem(7.5);
padding-inline: rem(15) rem(10);
text-decoration: none;
&[aria-current='true'] {
background-color: var(--navigation-current-item-background-color);
color: var(--navigation-current-item-text-color);
border-inline-start: 2px solid var(--navigation-current-item-marker-color);
font-weight: var(--font-weight-bold);
}
}
| 9,490 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/layout/_structure.scss | @use 'sass:math';
@import '~@proton/styles/scss/lib';
/* fix bug on Chrome */
body {
@extend .no-scroll;
block-size: 100%;
}
/* === page === */
html,
.app-root,
.content-container {
block-size: 100%;
}
.app-root-loader {
position: fixed;
inset: 0;
// Static because css variables can't be reached on that components
background: var(--background-norm, white);
color: var(--text-norm, black);
}
.app-noscript {
position: fixed;
inset: 0;
display: flex;
justify-content: center;
align-items: center;
padding: 3em;
font-size: 1.2em;
// Static because css variables can't be reached on that components
background: white;
color: black;
}
.content {
background-color: var(--sidebar-background-color);
color: var(--sidebar-text-color, var(--text-norm));
}
.header {
padding-block: var(--space-1);
padding-inline: var(--space-3) var(--space-2);
block-size: rem($header-height-small);
flex-shrink: 0;
background-color: var(--header-background-color);
color: var(--header-text-color, var(--text-norm));
@include media('>small') {
padding-block: var(--space-3);
padding-inline: var(--space-2) rem(10);
block-size: rem($header-height);
}
&--drawer {
block-size: rem($header-height);
}
}
.searchbox {
--field-background-color: var(--background-weak);
--field-hover-background-color: var(--field-background-color);
--field-focus-background-color: var(--search-field-focus-background);
--field-disabled-background-color: var(--field-background-color);
inline-size: clamp(
#{rem(340)},
calc(100vw * #{math.div($conversations-column-width, 100%)} - #{rem(20)}),
#{rem(520)}
);
max-inline-size: 100%;
min-inline-size: rem(340);
&--adaptWidth {
inline-size: clamp(
340px,
calc(var(--width-conversation-column, calc(100vw * #{math.div($conversations-column-width, 100%)})) - #{rem(20)}),
#{rem(520)}
);
max-inline-size: calc(
100vw - #{rem(450)} - #{$width-sidebar}px - #{rem(20)} - var(--drawer-width)
); // Same max width as list
}
.input {
--field-text-color: var(--color-weak);
--field-placeholder-color: var(--text-weak);
border-color: var(--background-weak);
block-size: rem(36);
line-height: 1;
}
button {
--button-default-text-color: var(--color-weak);
}
}
.footer {
padding-block: rem(10);
padding-inline: 0 rem(15);
flex-shrink: 0;
background-color: var(--header-background-color);
color: var(--header-text-color, var(--text-norm));
}
.sidebar {
inline-size: rem($width-sidebar);
visibility: visible;
transition: visibility 0s ease, transform 0s ease, inline-size 0s ease, opacity 1s ease;
transition-delay: 0s;
overflow: auto;
background-color: var(--sidebar-background-color);
color: var(--sidebar-text-color, var(--text-norm));
@include media('<=small') {
position: fixed;
inset: 0;
z-index: $layer-mobile-navigation;
inline-size: 100%;
max-inline-size: rem(272);
max-block-size: none;
padding-block-start: 1em;
transform-origin: 0 50%;
transition: 0s visibility ease, 0.25s transform ease, inline-size 0s ease, opacity 1s ease;
transition-delay: 0s;
&[data-expanded='false'] {
transform: translateX(-100%);
@at-root {
[dir='rtl'] & {
transform: translateX(100%);
}
}
visibility: hidden;
transition-delay: 0.25s, 0s;
}
&[aria-hidden='true'] {
transform: translateX(0);
}
}
&-backdrop {
display: none;
@include media('<=small') {
display: block;
background-color: var(--backdrop-norm);
position: fixed;
inset: 0;
z-index: $layer-mobile-navigation - 1;
}
}
}
.logo-container {
padding-block: 0;
padding-inline: var(--space-4);
& > a {
display: flex;
align-self: baseline;
&::after {
border-radius: var(--border-radius-md);
}
}
@include media('>small') {
block-size: rem($header-height);
inline-size: rem($width-sidebar);
& > a {
align-self: center;
}
}
}
.hamburger {
@include media('<=small') {
flex-shrink: 0; // this has to stay
margin-inline-end: 0.1em; // just for not touching the text on hover state :)
}
}
.topnav-container {
@include media('<=small') {
flex-shrink: 0; // this has to stay
margin-inline-start: auto; // case of mail display
}
}
.main {
overflow: hidden;
border-inline-start: var(--main-border-width) solid var(--border-weak);
box-shadow: var(--main-box-shadow);
background: var(--background-norm);
@include media('<=small') {
margin-inline-end: 0;
border-radius: 0;
border-inline-start-width: 0;
// Drawer specific
border-start-end-radius: 0;
border-inline-end-width: 0;
}
}
.main-area {
color: var(--text-norm);
overflow: auto;
&.no-scroll {
overflow: hidden;
}
&-border {
border-block-start: 1px solid var(--border-weak);
}
&-rounded--left {
@include media('>small') {
border-inline-start: 1px solid var(--border-weak);
border-start-start-radius: var(--border-radius-lg);
}
}
&-rounded--right {
@include media('>small') {
border-inline-end: 1px solid var(--border-weak);
border-start-end-radius: var(--border-radius-lg);
overflow: hidden;
}
}
}
.main-area--with-toolbar {
@extend .main-area;
border-radius: 0;
}
// only for Safari mobile shitty way to handle vh unit
$height-for-tablet: 5em !default;
$height-for-mobile: 8em !default;
.main-area--padding-fix {
padding-block-end: $height-for-tablet;
}
.main-area-content--padding-fix::after {
content: '';
display: flex;
inline-size: 100%;
block-size: $height-for-tablet;
}
@include media('<=small') {
.main-area--padding-fix {
padding-block-end: $height-for-mobile;
// thanks Apple for the fixed toolbar at the bottom
}
.main-area-content--padding-fix::after {
block-size: $height-for-mobile;
}
}
.main-full {
block-size: 100%;
overflow: auto;
background-color: var(--background-norm);
}
.main-area--no-header {
@extend .main-area;
// height: 100vh; // create a crazy bug on Safari on VPN
max-block-size: 100%;
}
.main-area--with-toolbar--no-header {
@extend .main-area--with-toolbar;
}
.main-area-content {
background: var(--background-norm);
}
.main-area--row-mode .items-column-list {
inline-size: 100%;
min-inline-size: initial;
max-inline-size: initial;
}
| 9,491 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/layout/_sub-settings-section.scss | @import '~@proton/styles/scss/lib';
.sub-settings-section {
&-anchor {
inset-inline-start: rem(-22);
padding-inline-end: rem(6); // Cover the title to avoid it disappearing and reappearing when hovering
}
}
| 9,492 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/layout/_toolbar.scss | .toolbar {
--padding-toolbar-button: #{em(9)};
--padding-toolbar-button-dropdown: #{em(9)};
--height-toolbar-button: #{rem(36)};
position: relative;
z-index: 1;
background-color: var(--toolbar-background-color);
color: var(--toolbar-text-color);
&:not(#{&}--in-container) {
border-block-end: 1px solid var(--toolbar-border-bottom-color);
}
// this adds the same border radius as .main
// needed to fix a bug in safari where the toolbar escapes overflow: hidden
border-start-start-radius: var(--border-radius-md);
// only set border radius when drawer is shown
// same naming as .main--bordered
&--bordered {
border-start-end-radius: var(--border-radius-md);
}
&--heavy {
block-size: rem(45);
}
&--in-container {
block-size: 100%;
}
&-button {
@extend .interactive;
position: relative;
display: flex;
flex-shrink: 0;
align-items: center;
padding-inline: var(--padding-toolbar-button);
border-radius: var(--border-radius-md);
border: 1px solid transparent;
block-size: var(--height-toolbar-button);
&--small {
--height-toolbar-button: #{rem(28)};
}
&--small-icon {
--padding-toolbar-button: #{em(5)};
--padding-toolbar-button-dropdown: #{em(5)};
}
// Increase click area to toolbar height
&::before {
content: '';
position: absolute;
inset: em(-6);
}
&--dropdown {
padding-inline: var(--padding-toolbar-button-dropdown);
&-more-selections {
--padding-toolbar-button-dropdown: 0;
--height-toolbar-button: rem(20) !important;
}
}
}
&-separator {
inline-size: 1px;
background: var(--toolbar-separator-color);
}
.vr.vr {
block-size: rem(24);
align-self: center;
border-inline-end-color: var(--toolbar-border-bottom-color);
}
button[aria-disabled='true'],
.toolbar-button[aria-disabled='true'] {
opacity: 0.5;
pointer-events: none;
}
// new select
.select {
@extend .interactive;
border-color: transparent;
background-color: unset;
color: currentcolor;
block-size: auto;
margin-inline: 0.25em;
border-radius: var(--border-radius-md);
}
// select all
.select-all {
&-wrapper {
block-size: rem(28);
&:hover {
background: var(--interaction-default-hover);
button {
background-color: transparent;
}
}
&:has(:hover, :focus, [aria-expanded='true']) {
background: var(--interaction-default-hover);
button {
background-color: transparent;
}
}
}
.checkbox-fakecheck {
margin-inline-end: 0;
}
}
@include media('<=small') {
border-radius: 0;
}
&-page-number-dropdown {
&#{&} {
min-inline-size: em(64);
padding: 0;
display: block;
text-align: center;
}
span {
margin-inline: em(1);
}
}
}
| 9,493 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/lib/_body-before.scss | /**
* Add a pseudo-element '::before' on body tag with a wanted content
* @param {String} $value-content - The wanted content
* @param {Boolean} $display-none - Display or not this content
* @returns {String} - The CSS rule for adding the content inside a pseudo-element on body tag
*/
@mixin body-before($value-content, $display-none: false) {
@if $value-content != '' {
body::before {
content: '#{$value-content}';
@if $display-none == true {
display: none;
}
}
} @else {
@warn '$value-content not specified';
}
}
| 9,494 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/lib/_config.scss | @use 'sass:math';
@use 'im-to-em' as *;
$base-font-size: 14 !default; // if "14" then 1em = 14px
$base-line-height: math.div(20, $base-font-size) !default; // Design specs says 20px
$title-sizes: (
h1: 36,
h2: 28,
h3: 20,
h4: 18,
h5: 17,
h6: 16,
) !default;
// Use typo helpers on demand
$use-other-typo-helpers: true !default;
$use-other-line-height-helpers: true !default;
// fonts
/* stylelint-disable-next-line value-keyword-case */
$font-family-monospace: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
monospace !default;
// Breakpoints for include-media
$breakpoints: im-to-em(
(
'xlarge': 1500px,
'large': 1100px,
'medium': 910px,
'small': 680px,
'xsmall': 450px,
)
) !default;
// specific breakpoints
$breakpoint-for-drawer: 1400px; // Temporary breakpoint used to display the drawer app. When useActiveBreakpoints will be refactored, this breakpoint will disappear
// Media expressions for include-media
$media-expressions: (
'all': 'all',
'screen': 'screen',
'print': 'print',
'mouse': '(hover: hover) and (pointer: fine)',
'touch': '(hover: hover) and (pointer: coarse), (hover: none)',
'landscape': '(orientation: landscape)',
'portrait': '(orientation: portrait)',
'reduced-motion': '(prefers-reduced-motion: reduce)',
) !default;
// RTL
// RTL = Right To Left =>
// to adapt a website in a language that is written from right to left
// designed for multilingual websites with LTR et RTL
$rtl-option: true !default;
// Custom scrollbar everywhere
$custom-scroll: true !default;
// hyphens
$hyphenation: false !default;
// clear floats
$use-clearleft-right: false !default;
$use-clearhidden: false !default;
$use-clearfix: false !default;
// basic premise: default user setting for font size is at 16 pixels in the browser
// you should NEVER update this value, however… who can predict the future…
$root-default-font-size: 16 !default;
// others
$use-reset-button: true !default;
$use-vertical-align-img-iframe: true !default;
$use-ie-calc-font-fallback: false !default;
$use-old-ie-fallbacks: true !default;
$use-height-auto-img: true !default;
$use-height-auto-td: true !default;
$use-height-auto-table: true !default;
// default config for webpack
$path-images: '~@proton/styles/assets/img/illustrations/' !default;
// variables for global layouts, allowing you to use calc for components and adapt quickly if needed
$header-height: 60 !default;
$header-height-small: 44 !default;
$width-sidebar: 250 !default; // main navigation
$toolbar-height: 44 !default;
$context-bar-width: 25vw !default; // context bar on the right
$context-bar-min-width: 300 !default;
$context-bar-max-width: 400 !default;
$default-height-fields: 36 !default;
/* stylelint-disable-next-line */
$focus-ring-size: 0.1875rem; // 3px
$conversations-column-width: 35% !default; // used also to align search bar on top
$label-width: 18em !default;
$conversation-icon-size: 32 !default;
// Z-indexes for stacking management
$layer-upper: 10;
$layer-dropzone: 100;
$layer-floating-action-buttons: 200;
$layer-drawer: 300;
$layer-floating-frames: 400;
$layer-previewer: 500;
$layer-transfer-manager: 600;
$layer-mobile-navigation: 700;
$layer-modals: 800;
$layer-notifications: 900;
$layer-tooltips: 1000;
| 9,495 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/lib/_dash-join.scss | /**
* Convert a list of arguments into a string seperated by dashes
* @param {String} $args - A list of arguments
* @returns {String} - The converted into a strings joined with dashes
*/
@function dash-join($args...) {
$result: null;
$first-add: true;
$glue: '-';
@for $i from 1 through length($args) {
$e: nth($args, $i);
@if $e != null and $e != '' {
$result: if($i == 1 or $first-add == true, #{$e}, #{$result}#{$glue}#{$e});
$first-add: false;
}
}
@return $result;
}
| 9,496 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/lib/_easing.scss | /**
* Easing functions for transitions and animations
* Learn more at http://easings.net/
* @param {String} $type - The wanted easing name
* @returns {String} - The easing function, using cubic-bezier
*/
@function easing($type: 'ease') {
$value: '';
@if $type == 'linear' {
$value: '0, 0, 1, 1';
} @else if $type == 'ease' {
$value: '0.25, 0.1, 0.25, 1';
} @else if $type == 'ease-in' {
$value: '0.42, 0, 1, 1';
} @else if $type == 'ease-out' {
$value: '0, 0, 0.58, 1';
} @else if $type == 'ease-in-out' {
$value: '0.42, 0, 0.58, 1';
} @else if $type == 'ease-in-sine' {
$value: '0.12, 0, 0.39, 0';
} @else if $type == 'ease-in-quad' {
$value: '0.11, 0, 0.5, 0';
} @else if $type == 'ease-in-cubic' {
$value: '0.32, 0, 0.67, 0';
} @else if $type == 'ease-in-quart' {
$value: '0.5 , 0, 0.75, 0';
} @else if $type == 'ease-in-quint' {
$value: '0.64, 0, 0.78, 0';
} @else if $type == 'ease-in-expo' {
$value: '0.7 , 0, 0.84, 0';
} @else if $type == 'ease-in-circ' {
$value: '0.55, 0, 1, 0.45';
} @else if $type == 'ease-in-back' {
$value: '0.36, 0, 0.66, -0.56';
} @else if $type == 'ease-out-sine' {
$value: '0.61, 1, 0.88, 1';
} @else if $type == 'ease-out-quad' {
$value: '0.5, 1, 0.89, 1';
} @else if $type == 'ease-out-cubic' {
$value: '0.33, 1, 0.68, 1';
} @else if $type == 'ease-out-quart' {
$value: '0.25, 1, 0.5, 1';
} @else if $type == 'ease-out-quint' {
$value: '0.22, 1, 0.36, 1';
} @else if $type == 'ease-out-expo' {
$value: '0.16, 1, 0.3, 1';
} @else if $type == 'ease-out-circ' {
$value: '0, 0.55, 0.45, 1';
} @else if $type == 'ease-out-back' {
$value: '0.34, 1.56, 0.64, 1';
} @else if $type == 'ease-in-out-sine' {
$value: '0.37, 0, 0.63, 1';
} @else if $type == 'ease-in-out-quad' {
$value: '0.45, 0, 0.55, 1';
} @else if $type == 'ease-in-out-cubic' {
$value: '0.65, 0, 0.35, 1';
} @else if $type == 'ease-in-out-quart' {
$value: '0.76, 0, 0.24, 1';
} @else if $type == 'ease-in-out-quint' {
$value: '0.83, 0, 0.17, 1';
} @else if $type == 'ease-in-out-expo' {
$value: '0.87, 0, 0.13, 1';
} @else if $type == 'ease-in-out-circ' {
$value: '0.85, 0, 0.15, 1';
} @else if $type == 'ease-in-out-back' {
$value: '0.68, -0.6, 0.32, 1.6';
} @else {
@error "'#{$type}' is not a correct value for easing().";
}
@return cubic-bezier(unquote($value));
}
| 9,497 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/lib/_em.scss | @use 'sass:math';
@use 'sass:string';
/**
* Calculate an em value from a px value
* @param {Number} $px - A value to be converted in em
* @param {Number} $base - The base pixel value of the app
* @return {Number} - The $px value converted in em
*/
@function em($px, $base: $base-font-size) {
// Remove 'px' unit if present
$value: if(string.slice($px * 0 + '', 2, -1) == 'px', math.div($px, 1px), $px);
@return (math.div($value, $base)) * 1em;
}
| 9,498 |
0 | petrpan-code/ProtonMail/WebClients/packages/styles/scss | petrpan-code/ProtonMail/WebClients/packages/styles/scss/lib/_im-to-em.scss | @use 'sass:math';
/**
* Convert a $breakpoint map from px to em
* This function is specific to include-media library
* @param {Map} $breakpoints - A include-media breakpoint map
* @param {Number} $base-value - The base pixel value of the app for media queries
* @return {Map} - The $breakpoints map converted in em
*/
@function im-to-em($breakpoints, $base-value: 16px) {
$new-breakpoints: ();
@each $name, $value in $breakpoints {
$em-value: (math.div($value, $base-value)) * 1em;
$new-breakpoints: map-merge(
$new-breakpoints,
(
$name: $em-value,
)
);
}
@return $new-breakpoints;
}
| 9,499 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.