@smwb/ui-css 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui.css +70 -7
- package/package.json +8 -2
package/dist/ui.css
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");
|
|
2
2
|
.smwb-appbar {
|
|
3
|
+
box-sizing: border-box;
|
|
3
4
|
padding: 0 16px;
|
|
4
5
|
display: flex;
|
|
5
6
|
align-items: center;
|
|
@@ -4019,7 +4020,7 @@
|
|
|
4019
4020
|
outline-offset: 2px;
|
|
4020
4021
|
}
|
|
4021
4022
|
.smwb-carousel {
|
|
4022
|
-
max-width: 412px;
|
|
4023
|
+
max-width: var(--smwb-carousel-max-width, 412px);
|
|
4023
4024
|
}
|
|
4024
4025
|
.smwb-carousel__inner {
|
|
4025
4026
|
position: relative;
|
|
@@ -4028,8 +4029,8 @@
|
|
|
4028
4029
|
text-align: center;
|
|
4029
4030
|
overflow: hidden;
|
|
4030
4031
|
cursor: pointer;
|
|
4031
|
-
margin-left: -4px;
|
|
4032
|
-
margin-right: -4px;
|
|
4032
|
+
margin-left: calc(-1 * var(--smwb-carousel-gap, 4px));
|
|
4033
|
+
margin-right: calc(-1 * var(--smwb-carousel-gap, 4px));
|
|
4033
4034
|
touch-action: pan-y;
|
|
4034
4035
|
}
|
|
4035
4036
|
.smwb-carousel__layer {
|
|
@@ -4040,20 +4041,24 @@
|
|
|
4040
4041
|
}
|
|
4041
4042
|
.smwb-carousel__slide {
|
|
4042
4043
|
flex-shrink: 0;
|
|
4043
|
-
padding-left: 4px;
|
|
4044
|
-
padding-right: 4px;
|
|
4044
|
+
padding-left: var(--smwb-carousel-gap, 4px);
|
|
4045
|
+
padding-right: var(--smwb-carousel-gap, 4px);
|
|
4045
4046
|
}
|
|
4046
4047
|
.smwb-carousel__slide-inner {
|
|
4047
4048
|
border-radius: 28px;
|
|
4048
4049
|
overflow: hidden;
|
|
4049
4050
|
will-change: width;
|
|
4050
4051
|
}
|
|
4052
|
+
.smwb-carousel__slide-inner_clickable {
|
|
4053
|
+
cursor: zoom-in;
|
|
4054
|
+
}
|
|
4051
4055
|
.smwb-carousel__slide-inner img {
|
|
4052
|
-
height: 205px;
|
|
4053
|
-
aspect-ratio: 0.9;
|
|
4056
|
+
height: var(--smwb-carousel-cell-height, 205px);
|
|
4057
|
+
aspect-ratio: var(--smwb-carousel-aspect-ratio, 0.9);
|
|
4054
4058
|
object-fit: cover;
|
|
4055
4059
|
width: 100%;
|
|
4056
4060
|
user-select: none;
|
|
4061
|
+
-webkit-user-drag: none;
|
|
4057
4062
|
}
|
|
4058
4063
|
.smwb-carousel__navigation {
|
|
4059
4064
|
display: flex;
|
|
@@ -4080,6 +4085,64 @@
|
|
|
4080
4085
|
align-items: center;
|
|
4081
4086
|
justify-content: center;
|
|
4082
4087
|
}
|
|
4088
|
+
.smwb-carousel__fullscreen-content {
|
|
4089
|
+
position: relative;
|
|
4090
|
+
width: 100%;
|
|
4091
|
+
height: 100%;
|
|
4092
|
+
display: flex;
|
|
4093
|
+
align-items: center;
|
|
4094
|
+
justify-content: center;
|
|
4095
|
+
}
|
|
4096
|
+
.smwb-carousel__fullscreen-stage {
|
|
4097
|
+
position: relative;
|
|
4098
|
+
width: 100%;
|
|
4099
|
+
height: 100%;
|
|
4100
|
+
overflow: hidden;
|
|
4101
|
+
touch-action: pan-y;
|
|
4102
|
+
}
|
|
4103
|
+
.smwb-carousel__fullscreen-track {
|
|
4104
|
+
display: flex;
|
|
4105
|
+
width: 100%;
|
|
4106
|
+
height: 100%;
|
|
4107
|
+
will-change: transform;
|
|
4108
|
+
}
|
|
4109
|
+
.smwb-carousel__fullscreen-slide {
|
|
4110
|
+
flex: 0 0 100%;
|
|
4111
|
+
display: flex;
|
|
4112
|
+
align-items: center;
|
|
4113
|
+
justify-content: center;
|
|
4114
|
+
}
|
|
4115
|
+
.smwb-carousel__fullscreen-slide img {
|
|
4116
|
+
max-width: 96vw;
|
|
4117
|
+
max-height: 92vh;
|
|
4118
|
+
width: auto;
|
|
4119
|
+
height: auto;
|
|
4120
|
+
object-fit: contain;
|
|
4121
|
+
user-select: none;
|
|
4122
|
+
-webkit-user-drag: none;
|
|
4123
|
+
}
|
|
4124
|
+
.smwb-carousel__fullscreen-arrow,
|
|
4125
|
+
.smwb-carousel__fullscreen-close {
|
|
4126
|
+
position: absolute;
|
|
4127
|
+
z-index: 1;
|
|
4128
|
+
cursor: pointer;
|
|
4129
|
+
color: #fff;
|
|
4130
|
+
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
|
|
4131
|
+
}
|
|
4132
|
+
.smwb-carousel__fullscreen-arrow {
|
|
4133
|
+
top: 50%;
|
|
4134
|
+
transform: translateY(-50%);
|
|
4135
|
+
}
|
|
4136
|
+
.smwb-carousel__fullscreen-arrow_prev {
|
|
4137
|
+
left: 16px;
|
|
4138
|
+
}
|
|
4139
|
+
.smwb-carousel__fullscreen-arrow_next {
|
|
4140
|
+
right: 16px;
|
|
4141
|
+
}
|
|
4142
|
+
.smwb-carousel__fullscreen-close {
|
|
4143
|
+
top: 16px;
|
|
4144
|
+
right: 16px;
|
|
4145
|
+
}
|
|
4083
4146
|
.smwb-accordion {
|
|
4084
4147
|
display: flex;
|
|
4085
4148
|
flex-direction: column;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smwb/ui-css",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Prebuilt aggregate stylesheet for the @smwb design system (compiled from @smwb/ui-styles). Framework-agnostic — shared by the React and SolidJS libraries.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": [
|
|
@@ -19,7 +19,13 @@
|
|
|
19
19
|
"build": "lessc -rp=/ ../styles/less/components.less ./dist/ui.css"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@smwb/ui-styles": "^1.0.
|
|
22
|
+
"@smwb/ui-styles": "^1.0.4",
|
|
23
23
|
"less": "^4.6.4"
|
|
24
|
+
},
|
|
25
|
+
"homepage": "https://sourcecraft.dev/elfenmail/ui",
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+https://git.sourcecraft.dev/elfenmail/ui.git",
|
|
29
|
+
"directory": "packages/ui-css"
|
|
24
30
|
}
|
|
25
31
|
}
|