Skip to content

Commit

Permalink
Initial drop-in
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Mar 16, 2023
1 parent 499a7d1 commit 6a77803
Show file tree
Hide file tree
Showing 442 changed files with 32,499 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
theme.css
.DS_STORE
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

## [15.2.0](https://github.com/primefaces/primeng-sass-theme/tree/15.2.0) (2023-03-16)

- Initial release
12 changes: 6 additions & 6 deletions LICENSE → LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License
The MIT License (MIT)

Copyright (c) 2023 PrimeTek
Copyright (c) 2016-2023 PrimeTek

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# primeng-sass-theme
PrimeNG Theming with SASS
# PrimeNG Theming with SASS
25 changes: 25 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "primeng-sass-theme",
"version": "15.2.0",
"description": "PrimeNG Sass Theme",
"homepage": "https://primeng.org/",
"repository": {
"type": "git",
"url": "git+https://github.com/primefaces/primeng-sass-theme.git"
},
"keywords": [
"primeng",
"angular",
"ui framework",
"component framework",
"ui library",
"component library",
"material",
"bootstrap"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/primefaces/primeng-sass-theme/issues"
}
}

18 changes: 18 additions & 0 deletions theme-base/_colors.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
:root {
@if variable-exists(colors) {
@each $name, $color in $colors {
@for $i from 0 through 5 {
@if ($i == 0) {
--#{$name}-50:#{tint($color, (5 - $i) * 19%)};
}
@else {
--#{$name}-#{$i * 100}:#{tint($color, (5 - $i) * 19%)};
}
}

@for $i from 1 through 4 {
--#{$name}-#{($i + 5) * 100}:#{shade($color, $i * 15%)};
}
}
}
}
68 changes: 68 additions & 0 deletions theme-base/_common.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
* {
box-sizing: border-box;
}

.p-component {
font-family: $fontFamily;
font-size: $fontSize;
font-weight: $fontWeight;
}

.p-component-overlay {
background-color: $maskBg;
transition-duration: $transitionDuration;
}

.p-disabled, .p-component:disabled {
opacity: $disabledOpacity;
}

.p-error {
color: $errorColor;
}

.p-text-secondary {
color: $textSecondaryColor;
}

.pi {
font-size: $primeIconFontSize;
}

.p-link {
font-size: $fontSize;
font-family: $fontFamily;
border-radius: $borderRadius;

&:focus {
@include focused();
}
}

.p-component-overlay-enter {
animation: p-component-overlay-enter-animation 150ms forwards;
}

.p-component-overlay-leave {
animation: p-component-overlay-leave-animation 150ms forwards;
}

.p-component-overlay {
@keyframes p-component-overlay-enter-animation {
from {
background-color: transparent;
}
to {
background-color: var(--maskbg);
}
}

@keyframes p-component-overlay-leave-animation {
from {
background-color: var(--maskbg);
}
to {
background-color: transparent;
}
}
}
102 changes: 102 additions & 0 deletions theme-base/_components.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
@import '_mixins';
@import '_common';
@import '_colors';

//Input
@import './components/input/_autocomplete';
@import './components/input/_calendar';
@import './components/input/_cascadeselect';
@import './components/input/_checkbox';
@import './components/input/_chips';
@import './components/input/_colorpicker';
@import './components/input/_dropdown';
@import './components/input/_editor';
@import './components/input/_inputgroup';
@import './components/input/_inputmask';
@import './components/input/_inputnumber';
@import './components/input/_inputswitch';
@import './components/input/_inputtext';
@import './components/input/_listbox';
@import './components/input/_multiselect';
@import './components/input/_password';
@import './components/input/_radiobutton';
@import './components/input/_rating';
@import './components/input/_selectbutton';
@import './components/input/_slider';
@import './components/input/_togglebutton';
@import './components/input/_treeselect';

//Button
@import './components/button/_button';
@import './components/button/_speeddial';
@import './components/button/_splitbutton';

//Data
@import './components/data/_carousel';
@import './components/data/_datatable';
@import './components/data/_dataview';
@import './components/data/_filter';
@import './components/data/_fullcalendar';
@import './components/data/_orderlist';
@import './components/data/_organizationchart';
@import './components/data/_paginator';
@import './components/data/_picklist';
@import './components/data/_timeline';
@import './components/data/_tree';
@import './components/data/_treetable';
@import './components/data/_virtualscroller';

//Panel
@import './components/panel/_accordion';
@import './components/panel/_card';
@import './components/panel/_divider';
@import './components/panel/_fieldset';
@import './components/panel/_panel';
@import './components/panel/_scrollpanel';
@import './components/panel/_splitter';
@import './components/panel/_tabview';
@import './components/panel/_toolbar';

//Overlay
@import './components/overlay/_confirmpopup';
@import './components/overlay/_dialog';
@import './components/overlay/_overlaypanel';
@import './components/overlay/_sidebar';
@import './components/overlay/_tooltip';

//File
@import './components/file/_fileupload';

//Menu
@import './components/menu/_breadcrumb';
@import './components/menu/_contextmenu';
@import './components/menu/_dock';
@import './components/menu/_megamenu';
@import './components/menu/_menu';
@import './components/menu/_menubar';
@import './components/menu/_panelmenu';
@import './components/menu/_slidemenu';
@import './components/menu/_steps';
@import './components/menu/_tabmenu';
@import './components/menu/_tieredmenu';

//Messages
@import './components/messages/_inlinemessage';
@import './components/messages/_message';
@import 'components/messages/toast';

//MultiMedia
@import './components/multimedia/_galleria';
@import './components/multimedia/_image';

//Misc
@import './components/misc/_avatar';
@import './components/misc/_badge';
@import './components/misc/_blockui';
@import './components/misc/_chip';
@import './components/misc/_inplace';
@import './components/misc/_progressbar';
@import './components/misc/_scrolltop';
@import './components/misc/_skeleton';
@import './components/misc/_tag';
@import './components/misc/_terminal';
Loading

0 comments on commit 6a77803

Please sign in to comment.