Code Monkey home page Code Monkey logo

crib's Introduction

Сборка проекта на реакт для хостинга Сначала попробовать просто прописать homePage npm run build npm install -g serve serve -s build

RewriteEngine On RewriteBase / RewriteRule ^index.html$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule . /index.html [L]

@media screen and (min-width: 320px) and (max-width: 767px) {

}

/* //----------------------------------------------------------------------TABLET----------------------------------------------------- */ @media screen and (min-width: 768px) and (max-width: 1199px) {

} /* "//-------------------------------------------------------DESKTOP----------------------------------------------------------------- */ @media (min-width: 1200px) {

}

ФОРМУЛА РАССЧЕТА РАЗМЕРА ЕЛЕМЕНТА В ТАБЛИЦЕ. --item: 2; // количество елементов в стороке. --indent: 30px; гэп. flex-basis: calc((100% - var(--indent) * (var(--item) - 1)) / var(--item));

@mixin mq($screen) { $mobile: 480px; $tablet: 768px; $desktop: 1366px; -------------------------миксин для все экранов------------------ @if $screen == mobile-only { @media screen and (max-width: #{$tablet - 0.02}) { @content; } } @else if $screen == mobile-only-land { @media screen and (max-width: #{$tablet - 0.02}) and (orientation: landscape) { @content; } } @else if $screen == mobile-small { @media screen and (max-width: #{$mobile - 0.02}) { @content; } } @else if $screen == mobile { @media screen and (min-width: $mobile) { @content; } } @else if $screen == tablet-only { @media screen and (min-width: $tablet) and (max-width: #{$desktop - 0.02}) { @content; } } @else if $screen == tablet { @media screen and (min-width: $tablet) { @content; } } @else if $screen == desktop { @media screen and (min-width: $desktop) { @content; } } @else if $screen == notDesktop { @media screen and (max-width: #{$desktop - 0.02}) { @content; } } @else if $screen == retina { @media screen and (min-device-pixel-ratio: 2), screen and (-moz-min-device-pixel-ratio: 2), screen and (-o-min-device-pixel-ratio: 2/1), screen and (-webkit-min-device-pixel-ratio: 2), screen and (min-resolution: 192dpi), screen and (min-resolution: 2dppx) { @content; } } }

crib's People

Contributors

whataivan avatar

Stargazers

 avatar

Watchers

 avatar

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.