Git Product home page Git Product logo

puppertino's Introduction

Puppertino Stars Puppertino's contributors Follow Puppertino_css Follow Codedgar_dev Puppertino Logo

Welcome to Puppertino V 1.0!

Hi! Welcome to Puppertino! Puppertino is a framework meant to mimic the look of macOS and follow the human guidelines. Puppertino is a Framework created to be lightweight, modular, and cool looking!

NOTE: Puppertino does not include any responsive system, you must use Bootstrap, Flexbox Grid, Skeleton, or some other responsive Framework along with it.

In a nutshell

Lightweight

I'm focused on making Puppertino as Lightweight as possible, I want it to become a big framework, but not at the cost of weight and performance. So to keep it small, I won't be adding AnimateCSS, or any other framework (No matter how cool it is) on top of Puppertino. And to make it more lightweight, I have implemented my second point.

Modular

I'm developing Puppertino to be used with only the components you need or to be used as a complete framework. Choosing the components that you need may help you throw some extra KB that you don't need in your website or app.

Cool looking

This is the most important part of Puppertino! This also means that I can go out of the main components of macOS and human guidelines in the future to add other things that I think maybe necessary or great to have in the framework. In any case, coolness, it's my main focus with Puppertino.

Current Components

Puppertino currently includes:

  • Buttons
  • Switches
  • Actions
  • Form Elements (Inputs, select, form validation)
  • Modals
  • Icons
  • Font Layout
  • Segmented Controls
  • Tabs
  • Shadows
  • NEW! Dark Mode
  • Color Palette

Yeah... That's all. But no worries! I'm working on adding new components every day!

Usage

You can use Puppertino in 3 ways (for now):

  1. You can download the newfull.css file located in the /dist/ directory. Download this if you are sure that you need at least half of the elements that are present in Puppertino.
  2. Download every component CSS that you need from the /dist/ folder. Such as buttons or form elements or other components. While it maybe tedious to download them one by one, this can help you to save some KBs in your website. :)
  3. You can now download the SCSS version of Puppertino, also located in /dist/. (Deprecated)

Docs

Find all the documentation, examples, and list of components and how to use them at https://codedgar.github.io/Puppertino/.

License

Puppertino is free to use and abuse under the open-source MIT license.

About the creator

I'm Edgar Pérez. And I make cool websites :)

puppertino's People

Contributors

codedgar avatar gaurav-nelson avatar jesusrobot avatar pronoy2108 avatar rilexus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

puppertino's Issues

Shadows in darkmode

When changing to dark mode via the button on https://codedgar.github.io/Puppertino/examples/dark_mode.html, it seems that there are no shadows visible in the shadow components.

I understand it defeats the purpose of having shadows in darkmode, but maybe you can get "inspiration" from one of the options how others tried to solve it?

Light mode (shadows clearly visible):
image

Dark mode:
image

Potential solutions:

  1. https://codyhouse.co/nuggets/beautiful-css-shadows
  2. https://meta.discourse.org/t/suggestion-regarding-the-box-shadow-of-the-dark-theme-composer/77102

Workstation:

  • Win 11
  • Chrome, Firefox, Opera, Edge, Brave: seeing the same behavior
  • Latest GA version

OS X scrollbar

Could you make famoust OS X scrollbar to be part of this?

I think scrollbar very vital, yet missing piece.

Bug in line 1326 in full.css

There's a bug in line 1326 in full.css.

The line says:
"bottom: 20%;"

Just comment it out or remove it, it will make the "OK" button too big if it is set.

full.css code:

@media (max-width: 568px) {
.p-modal {
/* bottom: 20%; user edit from alex */
left: 15%;
top: unset;
width: 70vw;
}

GitHub labels

To make github issues more obvious, we should introduce some labels like: feature, bug, feature request and more

Hey is there any way i can get in touch with the creator about this project

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Stylelinter

To enforce a guide line we should install and configure style linter

Vue support

At some point it would be nice to support Vue

GitHub hooks

To enforce a code guide line we should setup at least a pre commit hook which runs all the linters.

ios sizing

Simple issue - the sizing on an ios device seems wrong - for example the mobile bottom nav is huge compared to native... Thanks! Nick

Prettier

No prettier is configured yet. To enforce a guide line, we should setup prettier.

Npm Package

Hey there devs.

I was interested to code with Puppertino and I want to use it with Next.js

Big Sur Look and Feel

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
Have the framework updated to support the current macOS version -- Big Sur 11.*

Describe alternatives you've considered
This is the best package I've found so -- none really.

"actions.js" is missing

Describe the bug
The link to "actions.js" in the documentation (section: actions) doesn't work anymore as the file doesn't exist in the repository.
Because of this action buttons won't work.
I opened up dev tools and figured out on the documentation tag (bottom of body tag) there is a script tag containing the required javascript to use actions. I just copied this script and now the example code provided in the docs works just fine.
So I believe it probably wasn't intended that actions.js got removed from the repository.

Additional context
Referring to this page: https://codedgar.github.io/Puppertino/examples/actions.html

Fix
Following script tag was copied from the html page to make actions work as intended:

<script type="text/javascript">
    (function (document) {

        var p_actions = document.querySelectorAll("[data-p-open-actions]");
        var actions = document.querySelectorAll(".p-action-big-container");
        var cancel_action = document.querySelectorAll("[data-p-cancel-action]");

        for (var item of p_actions) {
            item.addEventListener("click", function (event) {
                event.preventDefault();
                var selector = this.getAttribute("data-p-open-actions");
                if (selector.length == 0) {
                    console.warn(
                        "Error. The data-p-open-action attribute is empty, please add the ID of the action you want to open."
                    );
                    return false;
                }
                document.querySelector(".p-action-background").classList.add("nowactive");
                document.body.classList.add("p-modal-opened");
                document.querySelector(selector).classList.add("active");
            });
        }

        for (var element of cancel_action) {
            element.addEventListener("click", function (event) {
                event.preventDefault();
                document.querySelector(".p-action-big-container.active").classList.remove("active");
                document.querySelector(".p-action-background").classList.remove("nowactive");
                document.body.classList.remove("p-modal-opened");
            });
        }

        document
            .querySelector(".p-action-background")
            .addEventListener("click", function (event) {
                event.preventDefault();
                var opened_action = document.querySelector(".p-action-big-container.active");
                if (opened_action.getAttribute("data-p-close-on-outside") == "true") {
                    event.stopPropagation();
                    opened_action.classList.remove("active");
                    document
                        .querySelector(".p-action-background")
                        .classList.remove("nowactive");
                    document.body.classList.remove("p-modal-opened");
                }
            });

        for (var action of actions) {
            action.addEventListener("click", function (event) {
                event.stopPropagation();
            });
        }
    })(document)
</script>

This should probably be included in the repository again as actions.js :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.