Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
retain.css
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郑晓
retain.css
Commits
0bfb50e8
Commit
0bfb50e8
authored
Nov 15, 2023
by
zhengxiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: update version
parent
061c242b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
retain.min.css
retain.min.css
+3
-3
No files found.
retain.min.css
View file @
0bfb50e8
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
@charset
"UTF-8"
;
@charset
"UTF-8"
;
/*!
/*!
* retain.css
* retain.css
* Version - 1.0.
1
* Version - 1.0.
4
* Licensed under the Hippocratic License 2.1 - http://firstdonoharm.dev
* Licensed under the Hippocratic License 2.1 - http://firstdonoharm.dev
*
*
* Copyright (c) 2023 zhengxiao
* Copyright (c) 2023 zhengxiao
*/
[
retain
]
{
--retain-border-color
:
#d4d4d4
;
--retain-border-radius
:
40px
;
position
:
relative
;
position
:
relative
!important
}
[
retain
~=
"border:bottom"
]
:after
,[
retain
~=
"border:top"
]
:before
{
background
:
var
(
--retain-border-color
);
content
:
""
;
height
:
1px
;
left
:
0
;
pointer-events
:
none
;
position
:
absolute
;
right
:
0
}
[
retain
~=
"border:top"
]
:before
{
top
:
0
}
[
retain
~=
"border:bottom"
]
:after
{
bottom
:
0
}
[
retain
~=
"border:left"
]
:before
,[
retain
~=
"border:right"
]
:after
{
background
:
var
(
--retain-border-color
);
bottom
:
0
;
content
:
""
;
pointer-events
:
none
;
position
:
absolute
;
top
:
0
;
width
:
1px
}
[
retain
~=
"border:left"
]
:before
{
left
:
0
}
[
retain
~=
"border:right"
]
:after
{
right
:
0
}
[
retain
~=
border
]
:after
{
border
:
1px
solid
var
(
--retain-border-color
)}
[
retain
~=
border
]
:after
,[
retain
~=
round
]
:after
{
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
;
content
:
""
;
height
:
100%
;
left
:
0
;
pointer-events
:
none
;
position
:
absolute
;
top
:
0
;
width
:
100%
}
[
retain
~=
round
]
:after
{
border
:
1px
solid
var
(
--retain-border-color
);
border-radius
:
var
(
--retain-border-radius
)}
@media
(
-webkit-min-device-pixel-ratio
:
1.5
),(
min-device-pixel-ratio
:
1.5
),(
min-resolution
:
1.5dppx
),(
min-resolution
:
144dpi
){
[
retain
~=
"border:bottom"
]
:after
,[
retain
~=
"border:top"
]
:before
{
-webkit-transform
:
scaleY
(
.5
);
transform
:
scaleY
(
.5
)}
[
retain
~=
"border:left"
]
:before
,[
retain
~=
"border:right"
]
:after
{
-webkit-transform
:
scaleX
(
.5
);
transform
:
scaleX
(
.5
)}
[
retain
~=
border
]
:after
,[
retain
~=
round
]
:after
{
height
:
200%
;
-webkit-transform
:
scale
(
.5
);
transform
:
scale
(
.5
);
width
:
200%
}
[
retain
~=
"border:left"
]
:before
,[
retain
~=
"border:top"
]
:before
,[
retain
~=
border
]
:after
,[
retain
~=
round
]
:after
{
-webkit-transform-origin
:
0
0
;
transform-origin
:
0
0
}
[
retain
~=
"border:bottom"
]
:after
,[
retain
~=
"border:right"
]
:after
{
-webkit-transform-origin
:
100%
100%
;
transform-origin
:
100%
100%
}}
@media
(
-webkit-device-pixel-ratio
:
1.5
){
[
retain
~=
"border:bottom"
]
:after
,[
retain
~=
"border:top"
]
:before
{
-webkit-transform
:
scaleY
(
.6666
);
transform
:
scaleY
(
.6666
)}
[
retain
~=
"border:left"
]
:before
,[
retain
~=
"border:right"
]
:after
{
-webkit-transform
:
scaleX
(
.6666
);
transform
:
scaleX
(
.6666
)}
[
retain
~=
border
]
:after
,[
retain
~=
round
]
:after
{
height
:
150%
;
-webkit-transform
:
scale
(
.6666
);
transform
:
scale
(
.6666
);
width
:
150%
}}
@media
(
-webkit-device-pixel-ratio
:
3
){
[
retain
~=
"border:bottom"
]
:after
,[
retain
~=
"border:top"
]
:before
{
-webkit-transform
:
scaleY
(
.3333
);
transform
:
scaleY
(
.3333
)}
[
retain
~=
"border:left"
]
:before
,[
retain
~=
"border:right"
]
:after
{
-webkit-transform
:
scaleX
(
.3333
);
transform
:
scaleX
(
.3333
)}
[
retain
~=
border
]
:after
,[
retain
~=
round
]
:after
{
height
:
300%
;
-webkit-transform
:
scale
(
.3333
);
transform
:
scale
(
.3333
);
width
:
300%
}}
*/
[
retain
]
{
--retain-border-color
:
#d4d4d4
;
--retain-border-radius
:
40px
;
position
:
relative
;
position
:
relative
!important
}
[
retain
~=
"border:bottom"
]
:after
,[
retain
~=
"border:top"
]
:before
{
background
:
var
(
--retain-border-color
);
content
:
""
;
height
:
1px
;
left
:
0
;
pointer-events
:
none
;
position
:
absolute
;
right
:
0
}
[
retain
~=
"border:top"
]
:before
{
top
:
0
}
[
retain
~=
"border:bottom"
]
:after
{
bottom
:
0
}
[
retain
~=
"border:left"
]
:before
,[
retain
~=
"border:right"
]
:after
{
background
:
var
(
--retain-border-color
);
bottom
:
0
;
content
:
""
;
pointer-events
:
none
;
position
:
absolute
;
top
:
0
;
width
:
1px
}
[
retain
~=
"border:left"
]
:before
{
left
:
0
}
[
retain
~=
"border:right"
]
:after
{
right
:
0
}
[
retain
~=
border
]
:after
{
border
:
1px
solid
var
(
--retain-border-color
)}
[
retain
~=
border
]
:after
,[
retain
~=
round
]
:after
{
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
;
content
:
""
;
height
:
100%
;
left
:
0
;
pointer-events
:
none
;
position
:
absolute
;
top
:
0
;
width
:
100%
}
[
retain
~=
round
]
:after
{
border
:
1px
solid
var
(
--retain-border-color
);
border-radius
:
var
(
--retain-border-radius
)}
@media
(
-webkit-min-device-pixel-ratio
:
1.5
),(
min-device-pixel-ratio
:
1.5
),(
min-resolution
:
1.5dppx
),(
min-resolution
:
144dpi
){
[
retain
~=
"border:bottom"
]
:after
,[
retain
~=
"border:top"
]
:before
{
-webkit-transform
:
scaleY
(
.5
);
transform
:
scaleY
(
.5
)}
[
retain
~=
"border:left"
]
:before
,[
retain
~=
"border:right"
]
:after
{
-webkit-transform
:
scaleX
(
.5
);
transform
:
scaleX
(
.5
)}
[
retain
~=
border
]
:after
,[
retain
~=
round
]
:after
{
height
:
200%
;
-webkit-transform
:
scale
(
.5
);
transform
:
scale
(
.5
);
width
:
200%
}
[
retain
~=
round
]
:after
{
border-radius
:
calc
(
var
(
--retain-border-radius
)
*
2
)}
[
retain
~=
"border:left"
]
:before
,[
retain
~=
"border:top"
]
:before
,[
retain
~=
border
]
:after
,[
retain
~=
round
]
:after
{
-webkit-transform-origin
:
0
0
;
transform-origin
:
0
0
}
[
retain
~=
"border:bottom"
]
:after
,[
retain
~=
"border:right"
]
:after
{
-webkit-transform-origin
:
100%
100%
;
transform-origin
:
100%
100%
}}
@media
(
-webkit-device-pixel-ratio
:
1.5
){
[
retain
~=
"border:bottom"
]
:after
,[
retain
~=
"border:top"
]
:before
{
-webkit-transform
:
scaleY
(
.6666
);
transform
:
scaleY
(
.6666
)}
[
retain
~=
"border:left"
]
:before
,[
retain
~=
"border:right"
]
:after
{
-webkit-transform
:
scaleX
(
.6666
);
transform
:
scaleX
(
.6666
)}
[
retain
~=
border
]
:after
,[
retain
~=
round
]
:after
{
height
:
150%
;
-webkit-transform
:
scale
(
.6666
);
transform
:
scale
(
.6666
);
width
:
150%
}
[
retain
~=
round
]
:after
{
border-radius
:
calc
(
var
(
--retain-border-radius
)
*
1.5
)}}
@media
(
-webkit-device-pixel-ratio
:
3
){
[
retain
~=
"border:bottom"
]
:after
,[
retain
~=
"border:top"
]
:before
{
-webkit-transform
:
scaleY
(
.3333
);
transform
:
scaleY
(
.3333
)}
[
retain
~=
"border:left"
]
:before
,[
retain
~=
"border:right"
]
:after
{
-webkit-transform
:
scaleX
(
.3333
);
transform
:
scaleX
(
.3333
)}
[
retain
~=
border
]
:after
,[
retain
~=
round
]
:after
{
height
:
300%
;
-webkit-transform
:
scale
(
.3333
);
transform
:
scale
(
.3333
);
width
:
300%
}
[
retain
~=
round
]
:after
{
border-radius
:
calc
(
var
(
--retain-border-radius
)
*
3
)}}
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment