Initial Commit - NG UI
[osm/NG-UI.git] / src / assets / scss / mixins / _rounded-corners.scss
1 /*
2  Copyright 2020 TATA ELXSI
3
4  Licensed under the Apache License, Version 2.0 (the 'License');
5  you may not use this file except in compliance with the License.
6  You may obtain a copy of the License at
7
8     http://www.apache.org/licenses/LICENSE-2.0
9
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15
16  Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in)
17  */
18 /**
19  * @ file contains @mixin functions for border radius
20  * example: @include roundedCorners(10);
21  */
22
23 // Rounded Corner has equal radius
24 @mixin roundedCorners($size) {
25     border-radius: $size + px;
26 }
27
28 // Rounded Corner for percentage values
29 @mixin roundedCornersPercentage($size) {
30     border-radius: $size;
31 }
32
33 // Rounded Corner for Top left/right
34 @mixin roundedTop($size) {
35     border-radius: $size + px $size + px 0 0;
36 }
37
38 // Rounded Corner for Top Left alone
39 @mixin roundedTopLeft($size) {
40     border-radius: $size + px 0 0 0;
41 }
42
43 // Rounded Corner for Top Right alone
44 @mixin roundedTopRight($size) {
45     border-radius: 0 $size + px 0 0;
46 }
47
48 // Rounded Corner for Bottom left/right
49 @mixin roundedBottom($size) {
50     border-radius: 0 0 $size + px $size + px;
51 }
52
53 // Rounded Corner  for Bottom Left alone
54 @mixin roundedBottomLeft($size) {
55     border-radius: 0 0 0 $size + px;
56 }
57
58 // Rounded Corner for Bottom Right alone
59 @mixin roundedBottomRight($size) {
60     border-radius: 0 0 $size + px 0;
61 }
62
63 // Rounded Corner for Left Top/Bottom
64 @mixin roundedLeft($size) {
65     border-radius: $size + px 0 0 $size + px;
66 }
67
68 // Rounded Corner for Right Top/Bottom
69 @mixin roundedRight($size) {
70     border-radius: 0 $size + px $size + px 0;
71 }
72
73 // Shorthand for all four corners rounded equally
74 @mixin circularCorners($size) {
75     border-radius: $size;
76 }
77
78 // Border bottom left radius
79 @mixin roundedBottomLeftRadius($sive) {
80     border-bottom-left-radius: $sive + px;
81 }
82
83 // Border bottom right radius
84 @mixin roundedBottomRightRadius($sive) {
85     border-bottom-right-radius: $sive + px;
86 }
87
88 // Border top left radius
89 @mixin roundedTopLeftRadius($sive) {
90     border-top-left-radius: $sive + px;
91 }
92
93 // Border top right radius
94 @mixin roundedTopRightRadius($sive) {
95     border-top-right-radius: $sive + px;
96 }