{"id":15478657,"url":"https://github.com/sunesimonsen/less-border-layout","last_synced_at":"2025-06-28T02:32:11.778Z","repository":{"id":4802807,"uuid":"5955994","full_name":"sunesimonsen/less-border-layout","owner":"sunesimonsen","description":"An example showing how to do","archived":false,"fork":false,"pushed_at":"2014-10-14T13:49:00.000Z","size":1654,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T21:03:44.874Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sunesimonsen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-09-25T20:16:02.000Z","updated_at":"2017-11-28T01:40:58.000Z","dependencies_parsed_at":"2022-08-18T22:01:14.398Z","dependency_job_id":null,"html_url":"https://github.com/sunesimonsen/less-border-layout","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunesimonsen%2Fless-border-layout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunesimonsen%2Fless-border-layout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunesimonsen%2Fless-border-layout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunesimonsen%2Fless-border-layout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunesimonsen","download_url":"https://codeload.github.com/sunesimonsen/less-border-layout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250263365,"owners_count":21401844,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T04:06:37.413Z","updated_at":"2025-04-22T14:51:00.223Z","avatar_url":"https://github.com/sunesimonsen.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Less border layout\n\nLessCSS mixins for doing border layouts in web-pages.\n\nInstall:\n\n    npm install less-border-layout\n\n## Less border layout example\n\nThis example shows how to do border layouts using Less mixins.\n\n![Border layout](https://raw.github.com/sunesimonsen/less-border-layout/master/examples/images/border-layout.png)\n\nYou can see the example [here](http://sunesimonsen.github.io/less-border-layout/examples/).\n\nindex.html:\n\n``` html\n    \u003c!DOCTYPE html\u003e\n    \u003chtml\u003e\n      \u003chead\u003e\n        \u003clink rel=\"stylesheet/less\" type=\"text/css\" href=\"style.less\"\u003e\n        \u003cscript src=\"less.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n      \u003c/head\u003e\n      \u003cbody\u003e\n        \u003cdiv class=\"layout main\"\u003e\n          \u003cdiv class=\"layout top\"\u003e\u003c/div\u003e\n          \u003cdiv class=\"layout left\"\u003e\u003c/div\u003e\n          \u003cdiv class=\"layout center content\"\u003e\n            \u003cdiv class=\"layout top\"\u003e\u003c/div\u003e\n            \u003cdiv class=\"layout center\"\u003e\u003c/div\u003e\n            \u003cdiv class=\"layout right\"\u003e\u003c/div\u003e\n          \u003c/div\u003e\n          \u003cdiv class=\"layout right\"\u003e\u003c/div\u003e\n          \u003cdiv class=\"layout bottom\"\u003e\u003c/div\u003e\n        \u003c/div\u003e\n      \u003c/body\u003e\n    \u003c/html\u003e\n```\n\nStyle.less:\n\n    @import \"../layouts.less\";\n    @import \"../border-layout.less\";\n\n    .layout.main {\n        min-width: 600px;\n        min-height: 400px;\n\n        .border-layout-top(100px);\n        .border-layout-left(150px);\n        .border-layout-right(200px);\n        .border-layout-bottom(50px);\n\n        .content {\n            .border-layout-top(40px);\n            .border-layout-right(60px);\n        }\n    }\n\n## Advanced example\n\n[Click here to open the advanced example](http://sunesimonsen.github.com/less-border-layout/examples/advanced.html \"Advanced example\")\n\n\u003ca href=\"http://sunesimonsen.github.com/less-border-layout/examples/advanced.html\"\u003e\n\u003cimg src=\"https://raw.github.com/sunesimonsen/less-border-layout/gh-pages/examples/images/border-layout-advanced-thumb.png\" alt=\"Border layout example\"\u003e\n\u003c/a\u003e\n\n## License: BSD-3-Clause\n\nCopyright (c) 2013, Sune Simonsen\nAll rights reserved.\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n1) Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n\n2) Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\n3) Neither the name of the ORGANIZATION nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunesimonsen%2Fless-border-layout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunesimonsen%2Fless-border-layout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunesimonsen%2Fless-border-layout/lists"}