picturepan2 / devices.css Goto Github PK
View Code? Open in Web Editor NEWDevices.css - Modern devices crafted in pure CSS
Home Page: https://devicescss.xyz
License: MIT License
Devices.css - Modern devices crafted in pure CSS
Home Page: https://devicescss.xyz
License: MIT License
First of all thank you very much for producing such beautiful crafts of the device.
I have observed a small problem that many of the device crafts are not continuously rounded, such as this iPhone 14 Pro.
There is an explanation about continuous corners at this link.
I'm curious if this is due to a limitation in CSS itself?
The code below makes all elements in the device container to be block level, that's not a good idea I suppose.
.device,
.device * {
&,
&::before,
&::after {
box-sizing: border-box;
display: block;
}
}
Line 3 in f8a06c1
Can you please add support for iPhone 11 Pro Max?
Thank you
i want to know if i could put an iframe to call another webpage in the screen space
On the demo pages , the buttons that are supposed to change a device's color do not function. I see a tooltip telling me the CSS class but nothing else happens.
Tested in Chrome, Edge, and Firefox on desktop, Chrome on Android.
Also, there's a warning in the console about using document.write
Seems the version in npm is quite outdated, can you please publish the latest package in npm?
https://www.npmjs.com/package/devices.css
Thanks!
This is great! I was wondering if there's an easy way to display the iPad Pro in landscape mode, instead of portrait?
I've spent a bunch of time trying to get these devices to scale when displayed on a mobile screen and can't seem to get them to work correctly. Using something like transform shrinks the device but also screws up any alignment and puts it off the page.
Has anyone tried to show a video mp4 file inside the device-content. I tried adding it in index.html and also tried to replace background-image src file in css, but its an mp4, so of course this way didn't work either.
Any suggestions or has anyone already successfully done this?
When using the apple watch device by itself on a page, it's missing the $device-silver-panel
variable on line 33:
border: 2px solid lighten($device-silver-panel, 2%);
Are you planning on supporting importing the individual devices as they are needed?
Kinda like (Bulma)[http://bulma.io/documentation/overview/modular/] with its .sass
files - Would require everything to be rewritten as sass but I guess that would be easier to do early on?
Could you please add the following devices?
iPhone 12, iPhone 11, Samsung S20, Google Pixel 5
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.